Skip to content

PKI CA Login REST API

ckelleyRH edited this page Jun 10, 2021 · 7 revisions

Request

  • Method: GET

  • Path: /ca/rest/account/login

  • Authentication: Not required

  • Content: None

  • Success code: 200

Source

Example

curl \
  -k \
  -s \
  -H "Accept: application/json" \
  --user caadmin:Secret.123 \
  https://localhost.localdomain:8443/ca/rest/account/login | python -m json.tool
{
    "Attributes": {
        "Attribute": []
    },
    "id": "caadmin",
    "FullName": "caadmin",
    "Email": "[email protected]",
    "Roles": {
        "Role": [
            "Administrators",
            "Certificate Manager Agents",
            "Enterprise CA Administrators",
            "Enterprise KRA Administrators",
            "Enterprise OCSP Administrators",
            "Enterprise RA Administrators",
            "Enterprise TKS Administrators",
            "Enterprise TPS Administrators",
            "Security Domain Administrators"
        ]
    }
}
Clone this wiki locally