Operations related to service user management.
Service Users are API-only users. Service Users are created in, and have access to, a single account. This account is the account associated with the API key that was used to create the Service User via the API. Owner and Cluster Admin level users in an account can create Service Users. The user who creates a Service User automatically becomes an Administrator of that Service User. Administrators of a Service User may invite additional Cluster Admin users to be Controllers of that user. Owner users in an account automatically have Administrator-level access to all Service Users in that account.
A Service User may not have multiple API keys of the same type, however an account can create multiple Service Users.
Successfully retrieved service users' information
[- {
- "administrators": [
- "testadministrator"
], - "apiKeys": {
- "allowedApiKeyTypes": [
- {
- "displayName": "Monitoring",
- "name": "MONITORING"
}, - {
- "displayName": "Read Only Provisioning",
- "name": "PROVISIONING_READONLY"
}, - {
- "displayName": "Provisioning",
- "name": "PROVISIONING"
}, - {
- "displayName": "User Management",
- "name": "USER_MANAGEMENT"
}
], - "apiKeys": [
- {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••7ac6a",
- "keyType": "MONITORING",
- "username": "testservice"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••a8e61",
- "keyType": "PROVISIONING",
- "username": "testservice"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••68268",
- "keyType": "PROVISIONING_READONLY",
- "username": "testservice"
}
]
}, - "displayName": "testservice",
- "email": "testservice@test.com",
- "role": "CLUSTER_ADMIN",
- "username": "testserviceuser"
}, - {
- "administrators": [
- "testadministrator"
], - "apiKeys": {
- "allowedApiKeyTypes": [
- {
- "displayName": "Monitoring",
- "name": "MONITORING"
}, - {
- "displayName": "Read Only Provisioning",
- "name": "PROVISIONING_READONLY"
}
], - "apiKeys": [
- {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••41702",
- "keyType": "MONITORING",
- "username": "testservice2"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••23c46",
- "keyType": "PROVISIONING_READONLY",
- "username": "testservice2"
}
]
}, - "displayName": "testservice2",
- "email": "testservice+2@test.com",
- "role": "READ_ONLY",
- "username": "testservice2"
}
]
This endpoint can be used to create a service user. The created service user will be under the account that the API key used is associated with. The requester user will be the administrator of the created service user.
Successfully created a service user
Request data is invalid
{- "username": "test_service_user",
- "email": "test_service_user@test.com",
- "profile": "READ_ONLY",
- "displayName": "service user",
- "validationMessages": {
- "property1": "string",
- "property2": "string"
}
}
{- "administrators": [
- "testadministrator"
], - "apiKeys": {
- "allowedApiKeyTypes": [
- {
- "displayName": "Monitoring",
- "name": "MONITORING"
}, - {
- "displayName": "Read Only Provisioning",
- "name": "PROVISIONING_READONLY"
}, - {
- "displayName": "Provisioning",
- "name": "PROVISIONING"
}, - {
- "displayName": "User Management",
- "name": "USER_MANAGEMENT"
}
], - "apiKeys": [
- {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "apiKeyType": "MONITORING",
- "key": "efababd41583c022f191248ec8a7ac6a",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "apiKeyType": "PROVISIONING",
- "key": "13aa50408c56765569cc5f5eb65a8e61",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "apiKeyType": "PROVISIONING_READONLY",
- "key": "73b3c11632c39eed21d0b14d1ec68268",
- "username": "service_user1"
}
]
}, - "displayName": "testservice",
- "email": "testservice@test.com",
- "role": "CLUSTER_ADMIN",
- "username": "testservice"
}
Successfully retrieved a service user's information
{- "administrators": [
- "testadministrator"
], - "apiKeys": {
- "allowedApiKeyTypes": [
- {
- "displayName": "Monitoring",
- "name": "MONITORING"
}, - {
- "displayName": "Read Only Provisioning",
- "name": "PROVISIONING_READONLY"
}, - {
- "displayName": "Provisioning",
- "name": "PROVISIONING"
}, - {
- "displayName": "User Management",
- "name": "USER_MANAGEMENT"
}
], - "apiKeys": [
- {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "apiKeyType": "MONITORING",
- "key": "•••••••••••••••••••••••••••7ac6a",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••a8e61",
- "keyType": "PROVISIONING",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••68268",
- "keyType": "PROVISIONING_READONLY",
- "username": "service_user1"
}
]
}, - "displayName": "testservice",
- "email": "testservice@test.com",
- "role": "CLUSTER_ADMIN",
- "username": "testservice"
}
This endpoint can be used to update a service user's data. The updatable data are display name, role, and the administrators.
Successfully updated a service user
Request data is invalid
{- "displayName": "service user",
- "profile": "READ_ONLY",
- "administrators": [
- "string"
], - "validationMessages": {
- "property1": "string",
- "property2": "string"
}
}
{- "administrators": [
- "testadministrator"
], - "apiKeys": {
- "allowedApiKeyTypes": [
- {
- "displayName": "Monitoring",
- "name": "MONITORING"
}, - {
- "displayName": "Read Only Provisioning",
- "name": "PROVISIONING_READONLY"
}, - {
- "displayName": "Provisioning",
- "name": "PROVISIONING"
}, - {
- "displayName": "User Management",
- "name": "USER_MANAGEMENT"
}
], - "apiKeys": [
- {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "apiKeyType": "MONITORING",
- "key": "•••••••••••••••••••••••••••7ac6a",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••a8e61",
- "keyType": "PROVISIONING",
- "username": "service_user1"
}, - {
- "account": "28c57513-7fae-4297-af6f-07fbf5356f08",
- "key": "•••••••••••••••••••••••••••68268",
- "keyType": "PROVISIONING_READONLY",
- "username": "service_user1"
}
]
}, - "displayName": "testservice",
- "email": "testservice@test.com",
- "role": "CLUSTER_ADMIN",
- "username": "testservice"
}
Successfully generated an API key
Request data is invalid
{- "apiKeyType": "MONITORING",
- "validationMessages": {
- "property1": "string",
- "property2": "string"
}
}
{- "account": "175dc592-26c2-4563-ac29-5d54e16aa344",
- "apiKeyType": "MONITORING",
- "cidrAllowList": [
- "127.0.0.1/32",
- "127.0.0.2/32"
], - "key": "1f396892fdfv65c0f57e95123b8cf9f7",
- "username": "testapikeyserviceuser"
}
Successfully revoked an API key
Request data is invalid
{- "apiKeyType": "MONITORING",
- "validationMessages": {
- "property1": "string",
- "property2": "string"
}
}
{- "resource": "resource cannot be null."
}
Successfully updated IP restrictions for an API key
Request data is invalid
{- "cidrAllowList": [
- "127.0.0.1/31",
- "127.0.0.1/32"
]
}
{- "apiKeyType": "apiKeyType cannot be null.",
- "username": "username cannot be null."
}
Successfully rotated an API key
Request data is invalid
{- "account": "175dc592-26c2-4563-ac29-5d54e16aa344",
- "apiKeyType": "MONITORING",
- "cidrAllowList": [
- "127.0.0.1/32",
- "127.0.0.2/32"
], - "key": "1f396892fdfv65c0f57e95123b8cf9f7",
- "username": "testapikeyserviceuser"
}