Updating Issuers
Use the patch /v1/cckm/oci/issuers/{id}
API to update an issuer with the given id.
Syntax
curl -k 'https://127.0.0.1/api/v1/cckm/oci/issuers/a1a3de51-ba20-41af-9ae7-4a2144015308' -X PATCH -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n "name": "issuerOne",\n "jwks_uri_protected": true,\n "client_id": "9a2cdcd6f0144acbbed0ef6c700cedb3",\n "client_secret": "00d58fb9-80ee-4aac-bfd0-dde628a89fcf"\n}' --compressed
Here, {id}
is the resource ID of the issue on the CipherTrust Manager.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
client_id | string | Client ID for accessing a protected jwks_uri. |
client_secret | string | Client secret for accessing a protected jwks_uri. |
jwks_uri_protected | boolean | Specifies whether jwks URI is protected. Set to true for a protected, false for an unprotected jwks URI. For issuer, always set jwks_uri_protected to true . |
name | string | Name of the issuer. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/oci/issuers/a1a3de51-ba20-41af-9ae7-4a2144015308' -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIzNmYwYTFlMS1jMzIzLTQ1MDctODY3NC00NzlmZTMzNTJmNWEiLCJzdWIiOiJsb2NhbHxiMzVkNmEyZS05NmRiLTQzMzItOTRjNy00Y2Q5NjI1N2U3ZTgiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiYzEyYWMzZWEtNWM0Yi00ZTM2LWJjMGYtNGY4MzExY2JkOGRjIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImYwMTUxMTNiLTM4ZGEtNDMyNC04MDY2LTkyMDEzYmM4NzI2ZiIsImlhdCI6MTY2NTU2NjgzNiwiZXhwIjoxNjY1NTY3MTM2fQ.8fH7MTkAdfHzBSuZo29_9ZCqT1fJHhWChNLGTMtFmXA' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n "name": "issuerOne",\n "jwks_uri_protected": true,\n "client_id": "9a2cdcd6f0144acbbed0ef6c700cedb3",\n "client_secret": "00d58fb9-80ee-4aac-bfd0-dde628a89fcf"\n}' --compressed
Example Response
{
"id": "9a82d3cc-c79f-478f-b6f6-c3b480c0b400",
"uri": "kylo:kylo:cckm:abcd",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2022-09-22T21:22:03.959447Z",
"updatedAt": "2022-09-22T21:24:35.503393Z",
"name": "issuerOne",
"jwks_uri_protected": true,
"client_id": "clientId",
"openid_config_url": "https://www.example.com",
"issuer": "issuer",
"jwks_uri": "https://www.example.com"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.