Foreman API to delete host certificate

Hi,

To clean the host certificate we are using the following puppet command:

··· --------------------------------------------------------- *puppet cert clean * ---------------------------------------------------------

Is there any equivalent Foreman API to do the same?

Thanks and Regards,
Amrit

> Hi,
>
> To clean the host certificate we are using the following puppet command:
>
> ---------------------------------------------------------
> puppet cert clean <client_certificate>
> ---------------------------------------------------------
>
> Is there any equivalent Foreman API to do the same?
>

When deleting a host in foreman, that is managed and has a puppet ca
attribute, this will be auto executed.

there is a proxy api which has that ability, but its aimed to be used by
foreman itself, if you don't use foreman, thats an option for you to use.

Ohad

··· On Wed, Nov 30, 2016 at 8:54 AM, Amrit Atmajit wrote:

Thanks and Regards,
Amrit


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

I wrote an Application that runs in the Install stage that uses the Puppet
API to regenerate certificates.
you could check out the following doco on
it https://docs.puppet.com/puppet/latest/reference/http_api/http_api_index.html

··· On Wednesday, 30 November 2016 17:54:15 UTC+11, Amrit Atmajit wrote: > > Hi, > > To clean the host certificate we are using the following puppet command: > > --------------------------------------------------------- > *puppet cert clean * > --------------------------------------------------------- > > Is there any equivalent Foreman API to do the same? > > Thanks and Regards, > Amrit >