PKI CA Delete Group REST API - dogtagpki/pki GitHub Wiki

Request

  • Path: /ca/rest/admin/groups/{groupID}

  • Method: DELETE

  • Authentication: Client certificate

  • Parameters:

    • groupID: string

  • Content: None

Source

GroupService.removeGroup()

Example

curl \
  -k \
  -s \
  -X "DELETE" \
  --user caadmin:Secret.123 \
  https://localhost.localdomain:8443/ca/rest/admin/groups/Enterprise%20TPS%20Administrators
  • Second run, group no longer exists:

curl \
  -k \
  -s \
  -X "DELETE" \
  -H "Accept: application/json" \
  --user caadmin:Secret.123 \
  https://localhost.localdomain:8443/ca/rest/admin/groups/Enterprise%20TPS%20Administrators | python -m json.tool
{
    "Attributes": {
        "Attribute": []
    },
    "ClassName": "com.netscape.certsrv.base.ResourceNotFoundException",
    "Code": 404,
    "Message": "No such object."
}
⚠️ **GitHub.com Fallback** ⚠️