Error
A valid request URL is required to generate request examples{
"srn": "srn2:service-token#a1B2c3D4e5F6g7H8",
"description": "CI pipeline token for nightly ingestion",
"accessKey": "a1B2c3D4e5F6g7H8",
"secretKey": "<string>",
"bearerToken": "<string>",
"ttl": 123,
"createdAt": "2024-09-04T00:28:30.876+00:00",
"lastUpdatedAt": "2024-09-04T00:28:30.876+00:00",
"createdBy": "srn:zone:user:default:abcd1234",
"lastUpdatedBy": "srn:zone:user:default:abcd1234"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}Service tokens
Create a service token
Creates a service token and returns its access key, secret key, and the full bearer token
(st-<accessKey>-<secretKey>). Save the secret key and bearer token from this response: they cannot be
retrieved again.
A new token has no permissions. Assign it a role with POST /roles/{roleSrn}/create-assignment,
using subjectType: service-token and the access key as the subject.
POST
/
service-tokens
Error
A valid request URL is required to generate request examples{
"srn": "srn2:service-token#a1B2c3D4e5F6g7H8",
"description": "CI pipeline token for nightly ingestion",
"accessKey": "a1B2c3D4e5F6g7H8",
"secretKey": "<string>",
"bearerToken": "<string>",
"ttl": 123,
"createdAt": "2024-09-04T00:28:30.876+00:00",
"lastUpdatedAt": "2024-09-04T00:28:30.876+00:00",
"createdBy": "srn:zone:user:default:abcd1234",
"lastUpdatedBy": "srn:zone:user:default:abcd1234"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}Authorizations
Response
The new token, including its secret key.
Was this page helpful?

