-
Notifications
You must be signed in to change notification settings - Fork 154
PKI CA Add Group REST API
ckelleyRH edited this page Jun 10, 2021
·
4 revisions
-
Path:
/ca/rest/admin/groups -
Method:
POST -
Authentication: client certificate
curl \
-k \
-s \
-X POST \
-H "Content-Type:application/json" \
-H "Accept: application/json" \
-d '{
"id": "foo-group",
"GroupID": "foo-group",
"Description": "foo people",
"Link": {
"rel": "self",
"href": "https://localhost.localdomain:8443/ca/rest/admin/groups/foo-group",
"type": "application/xml"}
}' \
--user caadmin:Secret.123 \
https://localhost.localdomain:8443/ca/rest/admin/groups/ | python -m json.tool
{
"id": "foo-group",
"GroupID": "foo-group",
"Description": "foo people",
"Link": {
"rel": "self",
"href": "https://localhost.localdomain:8443/ca/rest/admin/groups/foo-group",
"type": "application/xml"
}
}
|
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |