Project

General

Profile

Actions

Bug #36810

open

API link to remove certificates of puppetca user hosts is not exists

Added by Andrey Muratov 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

For one of my automation tasks, I need to delete the certificate of one particular workstation that is being serviced by Foreman.
I want to automate this by using a python script or ansible task.
I could not find how to approach this functionality through the foreman API.

The URL turns out like this:
https://foreman.com/smart_proxies/1#certificates

The link that is displayed when hovering over the “Revoke” button:
https://foreman.com/smart_proxies/1/puppetca/test
When I try to follow this link in the browser, I get error 404 (The page you were looking for doesn’t exist.)
After clicking the “Revoke” button through the interface, a form appears with two buttons - “confirm” and “cancel”. I need to figure out how to “click the confirm button” via the API

When searching for an api link to this action, I found that the last link registered for the api is: https://foreman.com/api/smart_proxies/1/

(orig. issue - https://community.theforeman.org/t/how-to-remove-certificates-of-puppetca-user-hosts/34945)


Files

clipboard-202310090940-w3xse.png View clipboard-202310090940-w3xse.png 129 KB Andrey Muratov, 10/09/2023 06:40 AM

No data to display

Actions

Also available in: Atom PDF