Get configuration info
GET /usermgmt/v1/usermgmt/config
This API allows users to view configuration information for the user management environment and LDAP.
Request
Path Parameters
Query Parameters
includeAll
boolean
Set to true to return all configurations.
Response
200 - Success.
auto_signup
boolean
Automatically approve users who request access, without explicit admin approval.
comment
string
externalLDAPHost
string
The customer's LDAP server to use for authentication.
If unset, then it means an external LDAP server is not used.
externalLDAPMechanism
string
Indicates the LDAP mechanism to use.
externalLDAPPort
number
Port number. (Default=389)
externalLDAPSuffix
string
This is used to complete the full distinguished name (DN) to identify a user entry.
For example, a suffix could be something like "ou=People,dn=ibm,dn=com". Then if the username is "testuser", the full DN for that user would be "uid=testuser,ou=People,dn=ibm,dn=com".
ibm_product
string
ibm_product_name
string
show_user_approval
boolean
dark_login_theme
boolean
is_saas
boolean
externalAuth
boolean
default_main_url
string
configure_iam_link
string
ibm_default_product_name
string
permissions
array
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
Update configuration
PUT /usermgmt/v1/usermgmt/config
This API allows users with an administrator role to update configuration values.
Request
Request Body
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
Get authorization token
POST /icp4d-api/v1/authorize
This API generates a bearer token for a user using their Cloud Pak for Data credentials.
Request
Request Body
loginCredentials
username
Required *
string
IBM Cloud Pak for Data username.
password
string
IBM Cloud Pak for Data password.
api_key
string
IBM Cloud Pak for Data API key.
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
token
string
The bearer token associated with a username.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
GET /usermgmt/v1/usermgmt/users
This API allows users to view and filter a list of user details on the platform.
Details include user info, groups, roles, and permissions related to the user.
Request
Path Parameters
Query Parameters
includeAll
boolean
Set to true to return all users including users in pending/denied access states.
search_str
string
Specify search string for pattern matching.
permissions
string
Comma-separated string. Return list of users with one of the permissions.
user_roles
string
Comma-separated string. Return list of users with one of the roles.
roles
string
Comma-separated string. Return list of users with one of the roles assigned individually or through User-Groups.
negate_user_roles
boolean
Flag to retrieve users that do not belong to mentioned user_roles.
any_role
boolean
Flag to retrieve users having at least one role assigned.
no_roles
boolean
Flag to retrieve users having no roles assigned.
user_groups
string
Comma-separated string. Return list of group_ids.
negate_user_groups
boolean
Flag to retrieve users that do not belong to mentioned user_groups.
include_users_count
boolean
Flag to retrieve count of all Cloud Pak for Data users.
offset
number
Offset required for pagination.
limit
number
Max number of records to return in a page.
sort_by
string
Sort user records based on a specific column.
sort_order
string
Sorting order either ascending or descending.
include_session_info
boolean
Set to true to return sessions of each user.
include_groups
boolean
Set to true to return groups for each user.
include_profile_picture
boolean
Set to true to return profile icon for each user.
Response
200 - Success.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
Get user by ID
GET /usermgmt/v1/usermgmt/user/{uid}
This API allows users to view details about one user via their user ID.
Request
Path Parameters
uid
Required *
string
Query for user profile by given user ID.
Query Parameters
include_session_info
boolean
Set to true to return sessions of the user.
Response
200 - Success.
authenticator
string
The authenticator for the user.
created_timestamp
number
The date and time that the user account was created.
current_account_status
string
The current status of the user's account.
deletable
boolean
Indicate whether user is deletable.
displayName
string
The name that is displayed for this user.
string
The user's unique email address.
group_roles
array
groups
array
internal_user
boolean
Internal users will not show up in the get all users request.
last_modified_timestamp
number
Milliseconds from epoch. Tracks when this record was last updated.
permissions
array
profile_picture
string
Base64 encoded image.
role
string
The role assigned to the user.
uid
string
The unique identifier for the user.
user_roles
array
The roles assigned to the user.
username
string
The user name.
misc
object
Collection of trivial miscellaneous user attributes.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
POST /usermgmt/v1/user
This API allows users with an administrator role to grant Cloud Pak for Data platform access to a user.
The password field should not be included when creating a user authenticated via an external identity provider such as LDAP/SAML/IAM. It is highly encouraged to authenticate users via an external identity provider.
The email field must be unique. An error code 400 will be returned if the email address is already in use.
Request
Request Body
User
authenticator
string
The authenticator for the user.
created_timestamp
number
The date and time that the user account was created.
current_account_status
string
The current status of the user's account.
deletable
boolean
Indicate whether user is deletable.
displayName
string
The name that is displayed for this user.
string
The user's unique email address.
group_roles
array
groups
array
internal_user
boolean
Internal users will not show up in the get all users request.
last_modified_timestamp
number
Milliseconds from epoch. Tracks when this record was last updated.
permissions
array
profile_picture
string
Base64 encoded image.
role
string
The role assigned to the user.
uid
string
The unique identifier for the user.
user_roles
array
The roles assigned to the user.
username
Required *
string
The user name.
misc
object
Collection of trivial miscellaneous user attributes.
Path Parameters
Query Parameters
migrated
boolean
Set to true when this endpoint is used for migration purposes.
Response
200 - Success.
uid
string
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
Get users by ID
GET /usermgmt/v1/users
This API allows users to view a list of user details filtered by user IDs.
Request
Path Parameters
Query Parameters
uids
string
Comma-separated string of user IDs.
count_only
boolean
Flag to send numbers of users in response.
Response
200 - Success.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
POST /usermgmt/v1/user/bulk
This API allows users with an administrator role to grant Cloud Pak for Data platform access to multiple users.
The password field should not be included when creating a user authenticated via an external identity provider such as LDAP/SAML/IAM. It is highly encouraged to authenticate users via an external identity provider.
The email field must be unique. Any user who has the email address that is already in use will not get access granted.
Request
Request Body
List of user objects.
Path Parameters
Query Parameters
Response
200 - Success.
result
array
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
500 - Internal Server Error.
Get current user info
GET /usermgmt/v1/user/currentUserInfo
This API allows the current logged in user to view their user details.
Request
Path Parameters
Query Parameters
Response
200 - Success.
authenticator
string
The authenticator for the user.
created_timestamp
number
The date and time that the user account was created.
current_account_status
string
The current status of the user's account.
deletable
boolean
Indicate whether user is deletable.
displayName
string
The name that is displayed for this user.
string
The user's unique email address.
group_roles
array
groups
array
internal_user
boolean
Internal users will not show up in the get all users request.
last_modified_timestamp
number
Milliseconds from epoch. Tracks when this record was last updated.
permissions
array
profile_picture
string
Base64 encoded image.
role
string
The role assigned to the user.
uid
string
The unique identifier for the user.
user_roles
array
The roles assigned to the user.
username
string
The user name.
misc
object
Collection of trivial miscellaneous user attributes.
401 - Unauthorized.
404 - Not Found.
Get current user's token expiry
GET /usermgmt/v1/user/tokenExpiry
This API allows the current logged in user to view their token expiry details.
Request
Path Parameters
Query Parameters
Response
200 - Success.
exp
number
Expiration timestamp (seconds elapsed since epoch).
token_expiry_time
string
Hours until expiration from when the token was created.
401 - Unauthorized.
Get user by name
GET /usermgmt/v1/user/{username}
This API allows users to view details about a user via their username.
Request
Path Parameters
username
Required *
string
The user name.
Query Parameters
Response
200 - Success.
authenticator
string
The authenticator for the user.
created_timestamp
number
The date and time that the user account was created.
current_account_status
string
The current status of the user's account.
deletable
boolean
Indicate whether user is deletable.
displayName
string
The name that is displayed for this user.
string
The user's unique email address.
group_roles
array
groups
array
internal_user
boolean
Internal users will not show up in the get all users request.
last_modified_timestamp
number
Milliseconds from epoch. Tracks when this record was last updated.
permissions
array
profile_picture
string
Base64 encoded image.
role
string
The role assigned to the user.
uid
string
The unique identifier for the user.
user_roles
array
The roles assigned to the user.
username
string
The user name.
misc
object
Collection of trivial miscellaneous user attributes.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
PUT /usermgmt/v1/user/{username}
This API allows users with an administrator role to update a user's account details via the user's username.
The email field must be unique. An error code 400 will be returned if the email address is already in use.
Request
Request Body
updateUserParamsBody
Updated user object.
displayName
string
The name that is displayed for this user.
string
The user's unique email address.
user_roles
Required *
array
The roles assigned to the user.
Path Parameters
username
Required *
string
Name of the user to update.
Query Parameters
add_roles
boolean
If `true`, roles are added to current roles. Otherwise, roles are overwritten.
Response
200 - Success.
uid
string
UID of the updated user.
messageCode
string
message
string
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
DELETE /usermgmt/v1/user/{username}
This API allows users with an administrator role to delete a user via their username.
Note the initial 'admin' user cannot be deleted.
Important: When you delete users, they lose access to the assets that they own, such as projects or deployment spaces. Adding a user with the same ID does not give that user access to the assets that are associated with that ID.
Request
Path Parameters
username
Required *
string
Name of the user to delete.
Query Parameters
Response
200 - Success.
uid
string
UID of the updated user.
messageCode
string
message
string
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Renew token
POST /usermgmt/v1/user/renewToken
This API allows the current logged in user to renew their token and session cookie.
Request
Path Parameters
Query Parameters
expiry_time
string
Token expiry time.
Response
200 - Success.
token
string
csrf_token
string
messageCode
string
message
string
400 - Bad Request.
401 - Unauthorized.
GET /usermgmt/v1/user/apiKey
This API allows the current logged in user to generate a new API key.
Note that generating a new API key will revoke the older key.
Request
Path Parameters
Query Parameters
Response
200 - Success.
apiKey
string
messageCode
string
message
string
400 - Bad Request.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Could not find the user associated with the token.
500 - Internal Server Error.
Revoke API key
DELETE /usermgmt/v1/user/apiKey
This API allows the current logged in user to delete their current API key.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
message
string
400 - Bad Request.
401 - Unauthorized.
404 - Could not find the user associated with the token.
500 - Internal Server Error.
Log out
GET /usermgmt/v1/usermgmt/logout
This API allows the current logged in user to log out.
Request
Response
302 - Found. Redirecting to <url>.
401 - Unauthorized.
POST /usermgmt/v1/user/changemypassword
This API allows the current logged in user to change their password.
This cannot be done if the user was authenticated via LDAP/SAML/IAM.
Request
Request Body
changePasswordBody
password
Required *
string
The new password.
currentPassword
Required *
string
The current password.
Path Parameters
Query Parameters
Response
401 - Unauthorized.
404 - Not Found.
default - Success.
POST /usermgmt/v1/user/changeuserpassword
This API allows users with an administrator role to change a user's password.
This cannot be done for a user authenticated via LDAP/SAML/IAM.
Request
Request Body
changeUserPasswordBody
username
Required *
string
The user name.
password
Required *
string
The new password.
Path Parameters
Query Parameters
Response
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
default - Success.
Update current user profile
PUT /usermgmt/v2/own_profile
This API allows the current logged in user to update their user profile.
Request
Path Parameters
Query Parameters
dark_mode
boolean
Flag to set theme for user profile.
Response
200 - Success.
uid
string
UID of the updated user.
messageCode
string
message
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
Test LDAP configuration
POST /usermgmt/v1/preauth/validateConfig
This API allows users to test their LDAP configuration.
Request
Request Body
validateConfigRequestBody
auto_signup
Required *
boolean
Automatically approve users who request access, without explicit admin approval.
externalLDAPEmailField
Required *
string
Email field in a user entry.
externalLDAPFirstNameField
Required *
string
First name field in a user entry.
externalLDAPGroupField
Required *
string
Group field in a user entry.
externalLDAPGroupMemberField
Required *
string
Member field in a LDAP group entry.
externalLDAPGroupSearchBase
Required *
string
Point in the LDAP tree where groups are searched from.
externalLDAPGroupSearchField
Required *
string
LDAP field used for Group search criteria.
externalLDAPHost
Required *
string
The LDAP server's host.
externalLDAPLastNameField
Required *
string
Last name field in a user entry.
externalLDAPPort
Required *
number
The LDAP server's port.
externalLDAPPrefix
Required *
string
The LDAP server's prefix.
externalLDAPSearchBase
Required *
string
The LDAP server's search base.
externalLDAPSearchField
Required *
string
The LDAP server's search field.
externalLDAPSearchUser
Required *
string
The LDAP server's search user.
password
Required *
string
The password for login in clear text.
username
Required *
string
The user name for login.
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
401 - Unauthorized.
500 - Internal Server Error.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
503 - LDAP Service Unavailable.
Get LDAP users
POST /usermgmt/v2/ldap/users
This API allows users to view and filter a list of LDAP users.
Request
Request Body
search_field
Required *
string
Search field to filter by.
search_string
Required *
string
Value for the search field to filter by.
limit
number
Limit on the number of users to get.
Path Parameters
Query Parameters
Response
200 - Success.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Get LDAP groups
POST /usermgmt/v2/ldap/groups
This API allows users to view and filter a list of LDAP groups.
Request
Request Body
search_string
Required *
string
Search value to filter groups by.
limit
number
Limit on the number of groups to get.
Path Parameters
Query Parameters
Response
200 - Success.
dn
string
The LDAP group's distinguished name (DN).
name
string
The LDAP group's name.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Get user groups
GET /usermgmt/v2/groups
This API allows users to view and filter a list of user group details.
Request
Path Parameters
Query Parameters
group_identifiers
string
Comma-separated string of group identifiers.
role_identifiers
string
Comma-separated string of role identifiers.
include_members
boolean
Set to true to include details about users in this group.
Response
200 - Success.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Create user group
POST /usermgmt/v2/groups
This API allows users with an administrator role to create a user group.
Request
Request Body
createUserGroupBody
name
string
Name of the user group.
description
string
More detailed information about the user group.
account_id
number
Unique ID identifying the account that the user group is associated with.
role_identifiers
array
Path Parameters
Query Parameters
Response
201 - Created.
created_at
string
created_by
string
description
string
group_id
string
message
string
name
string
updated_at
string
messageCode
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
409 - Conflict.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Update user group
PATCH /usermgmt/v2/groups/{group_id}
This API allows users with an administrator role to update user group information.
Request
Request Body
patchUserGroupBody
name
string
Name of the user group.
description
string
More detailed information about the user group.
account_id
number
Unique ID identifying the account that the user group is associated with.
add_role_identifiers
array
remove_role_identifiers
array
Path Parameters
group_id
Required *
number
Unique ID indentifying the User-Group.
Query Parameters
Response
200 - Success.
group_id
number
message
string
messageCode
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
409 - Conflict.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Delete user group
DELETE /usermgmt/v2/groups/{group_id}
This API allows users with an administrator role to delete a user group.
Request
Path Parameters
group_id
Required *
number
Unique ID indentifying the User-Group.
Query Parameters
Response
200 - Created.
group_id
number
message
string
messageCode
string
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
Get group members
GET /usermgmt/v2/groups/{group_id}/members
This API allows users to view details about users associated with a certain group.
Request
Path Parameters
group_id
Required *
number
User-Group identifier
Query Parameters
include_user_details
boolean
`True` if `user_details` are required in response.
offset
number
Offset required for pagination.
limit
number
Max number of records to return in a page.
sort_by
string
Sorting the user records based upon specific column.
sort_order
string
Sorting order either ascending or descending.
Response
200 - Success.
results
array
messageCode
string
message
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Add members to a group
POST /usermgmt/v2/groups/{group_id}/members
This API allows users with an administrator role to add users to a group.
Request
Request Body
MembershipRules
Payload containing LDAP groups and/or UIDs.
ldap_groups
array
List of LDAP distinguished names to be added to the group.
idp_groups
array
List of groups coming from the IAM's IDP.
user_identifiers
array
List of UIDs to be added to the group.
attribute_rules
object
The necessary object to construct the rules based on user attributes.
logical_operator
Required *
string
rules
Required *
array
Path Parameters
group_id
Required *
number
User-Group identifier.
Query Parameters
Response
200 - Success.
group_id
number
message
string
messageCode
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
Delete group member
DELETE /usermgmt/v2/groups/{group_id}/members/{uid}
This API allows users with an administrator role to delete a user from a user group.
Request
Path Parameters
group_id
Required *
number
User-Group identifier.
uid
Required *
number
The user's unique identifier.
Query Parameters
Response
200 - Success.
group_id
number
user_id
number
message
string
messageCode
string
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
GET /usermgmt/v2/groups/{group_id}/membership_rules
This API allows users to view membership rule details for a group.
Membership rules define who can be a member of a group.
For example, the group membership rule 'uid=1000330999' states that the user with UID 1000330999 is a member of that group.
Similarly, the rule 'ldapGroup="CN=marketing,DC=ibm,DC=com"' states that all users in the LDAP group with that distinguished name (DN) are members of this group.
Request
Path Parameters
group_id
Required *
number
User-Group identifier.
Query Parameters
Response
200 - Success.
message
string
results
array
messageCode
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Update membership rule
PUT /usermgmt/v2/groups/membership_rules/{rule_id}
This API allows a user with an administrator role to update a membership rule via its ID.
Request
Request Body
DynamicMembershipRules
Payload containing group membership rules.
attribute_rules
Required *
object
The necessary object to construct membership rules based on user attributes.
logical_operator
Required *
string
rules
Required *
array
Path Parameters
rule_id
Required *
number
Rule identifier.
Query Parameters
Response
200 - Success.
message
string
rule_id
number
messageCode
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Delete membership rule
DELETE /usermgmt/v2/groups/membership_rules/{rule_id}
This API allows a user with an administrator role to delete a membership rule via its ID.
Request
Path Parameters
rule_id
Required *
number
Rule identifier.
Query Parameters
Response
200 - Success.
rule_id
number
messageCode
string
message
string
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
Get all roles
GET /usermgmt/v1/roles
This API allows users to view and filter a list of role details, including values such as permissions associated with the role.
Request
Path Parameters
Query Parameters
include_users_count
boolean
Set to true to return count of users assigned to each role.
include_platform_users_count
boolean
Set to true to return count of platform users assigned to each role individually.
include_user_groups_count
boolean
Set to true to return count of user-groups assigned to each role.
Response
200 - Success.
rows
array
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
Add new role
POST /usermgmt/v1/role
This API allows users with an administrator role to add a new role.
Request
Request Body
Create role object.
role_name
string
description
string
permissions
array
Path Parameters
Query Parameters
Response
201 - Created.
id
string
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
Update role record
PUT /usermgmt/v1/role/{id}
This API allows users with an administrator role to update an existing role.
Request
Request Body
Update role object.
role_name
string
Name of the role.
description
string
Description for the role.
permissions
array
Permissions associated with the role.
Path Parameters
id
Required *
string
Extension name of the role that needs to be updated.
Query Parameters
Response
200 - Success.
id
string
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Delete role record
DELETE /usermgmt/v1/role/{id}
This API allows users with an administrator role to delete an existing role.
Request
Path Parameters
id
Required *
string
Extension name of the role that needs to be deleted.
Query Parameters
Response
200 - Success.
id
string
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Get attributes
GET /usermgmt/v2/attributes
This API allows users to view attribute details from Zen's own attribute directory.
Request
Path Parameters
Query Parameters
Response
200 - Success.
data
object
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
401 - Unauthorized.
Get a list of custom cards
GET /zen-data/v1/custom_cards
Retrieves the properties for the custom cards that you can update.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message
status
string
Status.
data
object
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Create or replace a custom card
PUT /zen-data/v1/custom_cards/{key}
Creates a custom card or replaces an existing custom card. You must include the card definition as a JSON string in the HTTP request body. The definition specifies the structure and the content of the card.
Request
Request Body
CustomCardReplaceObject
Update role object.
permissions
Required *
array
Specifies the permissions that a user needs to see the card. The array must have at least one permission. If the array has no permissions parameter, the card is shown to everyone. It is an array of user permissions from the Cloud Pak for Data platform.
roles
array
An array of authorized roles from Cloud Pak for Data platform that shows the card to a user having any of the listed roles.
order
Required *
integer
Defines the position of the card. The value must be in the range 1 - 50.
title
Required *
string
The display name for the card. The string must be 40 characters or less.
template_type
Required *
string
Defines the display type of the card. The `template_type` parameter must be one of the following: `bar`, `big_number`, `content_block`, `donut`, `list`, `number_list`, `text_list`).
data_url
string
Provides data to the card. You must provide either a data_url object or a data object. The data object is an object that populates data in the card. The properties of the object must match the type of template defined. The expected structure for each template_type parameter is in the examples.
drilldown_url
string
Defines the URL that the user navigates to when they click "View details". If this parameter is not defined, the card does not display a "View details" link.
description
string
Helps users understand the purpose of the card. The string must be 200 characters or less.
service_defined_id
string
Identifiers that can be defined by the services for use in their UI components.
window_open_target
string
Specifies the target attribute or the name of the window. The following values are supported: empty or not provided (the URL gets loaded on the current page by default), `_blank` (URL is loaded into a new window or tab every time), `name` (the name of the window where the URL is loaded and the name does not specify the title of the new window).
refresh_rate
integer
The interval in seconds at which the content is refreshed by the source.
data
CardObject
list_data
object
donut_data
object
bar_data
object
number_list_data
object
text_list_data
object
big_number_data
object
content_block_data
object
Path Parameters
key
Required *
string
The name of the card that you want to create or replace. The string must be unique. If a custom card with the specified key does not exist, the custom card is created, otherwise the existing custom card is replaced.
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
data
object
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Update an existing card
PATCH /zen-data/v1/custom_cards/{key}
Updates the information that is displayed on an existing card.
Request
Request Body
CustomCardUpdateObject
Update role object.
permissions
array
Specifies the permissions that a user needs to see the card. The array must have at least one permission. If the array has no permissions parameter, the card is shown to everyone. It is an array of user permissions from the Cloud Pak for Data platform.
roles
array
An array of user roles from Cloud Pak for Data platform.
order
integer
Defines the position of the card. The value must be in the range 1 - 50.
title
string
The display name for the card. The string must be 40 characters or less.
template_type
string
Defines the display type of the card. The `template_type` parameter must be one of the following: `bar`, `big_number`, `content_block`, `donut`, `list`, `number_list`, `text_list`).
data_url
string
Provides data to the card. You must provide either a data_url object or a data object. The data object is an object that populates data in the card. The properties of the object must match the type of template defined. The expected structure for each `template_type` parameter is in the examples.
drilldown_url
string
Defines the URL that the user navigates to when they click View details. If this parameter is not defined, the card does not display a "View details" link.
description
string
Helps users understand the purpose of the card. The string must be 200 characters or less.
service_defined_id
string
identifiers that can be defined by the services for use in their UI components.
window_open_target
string
Specifies the target attribute or the name of the window. The following values are supported: empty or not provided (the URL gets loaded on the current page by default), `_blank` (URL is loaded into a new window or tab every time), `name` (the name of the window where the URL is loaded and the name does not specify the title of the new window).
refresh_rate
integer
The interval in seconds at which the content is refreshed by the source.
data
CardObject
list_data
object
donut_data
object
bar_data
object
number_list_data
object
text_list_data
object
big_number_data
object
content_block_data
object
Path Parameters
key
Required *
string
The name of the card that you want to update.
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
data
object
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Delete a custom card
DELETE /zen-data/v1/custom_cards/{key}
Deletes an existing card with the specified key.
Request
Path Parameters
key
Required *
string
The name of the custom card that you want to delete.
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Store an external vault configuration
POST /zen-data/v2/vaults
Creates an external vault integration by using this API.
Request
Request Body
NewVaultRequest
Sensitive payload to be secured.
vault_name
Required *
string
A name for your vault. This name must be unique across all the vaults that you own and that are currently stored in the vault.
description
string
A short description for your vault.
details
Required *
object
Free-form object containing all connection information for the external vault.
type
Required *
string
The external vault type, either the `cyberark_aam_cert` or `hashicorp_token`.
test_data
object
The object to hold test secret reference information. If the query parameter `vaildate=true` is set, integration with the external vault is validated. To validate and save, use the query parameter `vaildate_and_save=true`.
Path Parameters
Query Parameters
validate
boolean
Validate vault connection.
validate_and_save
boolean
Validate vault connection and save.
Response
200 - Success.
vault_urn
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
201 - Test connection success.
vault_urn
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Retrieve details about external vault integrations
GET /zen-data/v2/vaults
Retrieves details about external vault integrations for user.
Request
Path Parameters
Query Parameters
offset
integer
The number of vaults to skip before starting to collect the result set.
limit
integer
The number of vaults to return.
include_secrets_preview
boolean
Preview secrets.
sort
string
Sort by the field (such as sort=display_name or sort=-display_name for descending). The supported sort columns are: `vault_name`, `owned_by`, `created_by`, `uploaded_at`, `total_secrets`.
provider_name
string
Comma-separated provider names (such as CyberArk AAM, HashiCorp).
vault_name
string
A name for your vault. This name must be unique across all the vaults that you own and that are currently stored in the vault.
match
string
Match on all or any criteria, possible values.
include_vaults_for_management
boolean
If `true`, returns all vaults when user has manage vaults permission.
Response
200 - Success.
offset
integer
Offset of the first vault in the result list. If the offset is not specified in the request, the default is 0.
limit
integer
Limit of the number of vaults returned. If the limit is not specified in the request, the default is 20.
total_count
integer
Total number of vaults returned.
vaults
array
Vault collection.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Retrieve a vault
GET /zen-data/v2/vaults/{vault_urn}
Retrieves the details for a vault that is specified by the vault's uniform resource name.
Request
Path Parameters
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
Query Parameters
Response
200 - Success.
metadata
VaultMetaData
data
object
Contains vault information.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Update external vault configuration
PATCH /zen-data/v2/vaults/{vault_urn}
Updates configuration details of an external vault, response does not includes sensitive data.
Request
Request Body
PatchVaultRequest
Sensitive payload to be secured.
description
string
Short description about the vault being configured for the user.
details
object
The object that contains the sensitive details for connecting to the external vault.
test_data
object
The object to hold test secret reference information. If the query parameter `vaildate=true` is set, integration with the external vault is validated. To validate and save use the query parameter `vaildate_and_save=true`.
Path Parameters
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
Query Parameters
validate
boolean
Validate vault connection.
validate_and_save
boolean
Validate vault connection and save.
Response
200 - Success.
metadata
VaultMetaData
data
object
Contains vault information.
201 - Test connection success.
vault_urn
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Delete external vault integration
DELETE /zen-data/v2/vaults/{vault_urn}
Deletes a specific external vault integration for user. Note: Deleting a vault deletes all of its associated secrets.
Request
Path Parameters
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
Query Parameters
Response
200 - Success.
vault_urn
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Initiate the transfer of ownership of a vault
POST /zen-data/v2/vaults/{vault_urn}/transfers
Initiates the transfer of ownership of a vault and any secrets in the vault to a different owner.
Request
Request Body
TransferVaultRequest
Sensitive payload to be secured.
new_owner_uid
Required *
string
The new owner's unique identifier.
Path Parameters
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
Query Parameters
force
boolean
If `true`, transfer re-submission will be executed only if allowed transfer duration is over.
Response
200 - Success.
metadata
VaultMetaData
202 - Transfer vault request accepted.
metadata
VaultMetaData
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
403 - Forbidden.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
404 - Not Found.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
409 - Conflict.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
500 - Internal Server Error.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
Transfer vault to user
PATCH /zen-data/v2/vaults/{vault_urn}/transfers
Authenticates the external vault and transfers it to the new owner.
Request
Request Body
PatchTransferredVaultRequest
Sensitive payload to be secured.
details
Required *
object
The object that contains the sensitive details for connecting to the external vault.
test_data
object
The object to hold test secret reference information. If the query parameter `vaildate=true` is set, integration with the external vault is validated. To validate and save use the query parameter `vaildate_and_save=true`.
Path Parameters
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
Query Parameters
Response
200 - Success.
metadata
VaultMetaData
202 - Success.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Store secret or reference
POST /zen-data/v2/secrets
Stores and secures a secret or secret reference to an external vault in an internal vault.
Request
Request Body
NewSecretRequest
Sensitive payload to be secured.
secret_name
Required *
string
A name for your secret. This name must be unique across all the secrets that you own and that are currently stored in all vaults. It can contain a maximum of 110 characters.
description
string
A short description for your secret.
secret
Required *
object
Any free-form object (JSON). This parameter is schema-less, which means you can enter any type of information that is entered as valid key-value pairs. What you send out comes back when you retrieve your secret.
type
string
Type of the secret.
vault_urn
Required *
string
The vault identifier. This parameter uses a specific notation: `<creator uid>:<vault_name>`.
members
SecretMembers
users
array
The list of users that can access a secret.
groups
array
The list of groups that can access a secret.
Path Parameters
Query Parameters
validate
boolean
Validate secret reference.
validate_and_save
boolean
Validate secret reference and save.
Response
200 - Success.
secret_urn
string
Secret ID.
201 - Created.
secret_urn
string
Secret ID.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Get a list of all secrets
GET /zen-data/v2/secrets
Gets a list of all secrets that are stored in a Cloud Pak for Data instance.
Request
Path Parameters
Query Parameters
offset
integer
The number of secrets to skip before starting to collect the result set.
limit
integer
The number of secrets to return.
include_secrets_preview
boolean
Includes preview of secrets.
sort
string
Sort by the field (for example: sort=secret_name or sort=-secret_name for descending order).\n The supported sort columns include: `secret_name`, `type`, `description`, `created_by`, `vault_name`, `updated_at`.
type
string
The type of secret. Vault support per type: `generic` (Internal, HashiCorp), `certificate` (Internal, CyberArk, HashiCorp), `credentials` (Internal, CyberArk, HashiCorp), `key`(Internal, CyberArk, HashiCorp), `token` (Internal, HashiCorp)
secret_name
string
Secret name.
match
string
Match on all or any criteria, possible values.
include_secrets_for_management
boolean
If true, returns all secrets when user has manage vaults and secrets permission.
Response
200 - Success.
offset
integer
Offset of the first secret in the result list. If the offset is not specified in the request, the default is 0.
limit
integer
Limit of the number of secrets returned. If the limit is not specified in the request, the default is 20.
total_count
integer
Total number of secrets returned.
secrets
array
Secret collection.
401 - Unauthorized.
500 - Internal Server Error.
Retrieve the details for a secret
GET /zen-data/v2/secrets/{secret_urn}
Retrieves the details of a secret specified by a uniform resource name.
Request
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
exclude_secret_data
Required *
boolean
The `exclude_secret_data` parameter can be applied in the query to remove the data section.
Response
200 - Success.
data
object
Contains secret information.
metadata
SecretMetaData
203 - Non-Authoritative Information.
data
object
Contains secret information.
metadata
SecretMetaData
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Update or refresh stored secret
PATCH /zen-data/v2/secrets/{secret_urn}
Updates a secret or secret reference to an external vault. Note: You can update the secret itself and its description, but you cannot update the secret_name, vault_name, or type. These fields are immutable and cannot be edited.
Request
Request Body
PatchSecretRequest
Sensitive payload to be secured.
description
string
A short description of your secret.
secret
object
Any free-form object (JSON). This parameter is schema-less, which means you can enter any type of information that is entered as valid key-value pairs. What you send out comes back when you retrieve your secret.
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
validate
boolean
Validate secret reference.
validate_and_save
boolean
Validate secret reference and save.
Response
200 - Success.
data
object
Contains secret information.
metadata
SecretMetaData
203 - Non-Authoritative Information.
data
object
Contains secret information.
metadata
SecretMetaData
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Delete a secret from vault
DELETE /zen-data/v2/secrets/{secret_urn}
Deletes an existing secret or secret reference to an external vault.
Request
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
Response
200 - Success.
secret_urn
string
Secret ID.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Share a secret
POST /zen-data/v2/secrets/{secret_urn}/members
Shares a secret or a secret reference to an external vault to other users and groups.
Request
Request Body
SecretMembers
List of users or groups.
users
array
The list of users that can access a secret.
groups
array
The list of groups that can access a secret.
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
Response
202 - Accepted.
secret_urn
string
Secret ID.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Get secret members
GET /zen-data/v2/secrets/{secret_urn}/members
Retrieves a list of all the shared members for a secret or a secret reference to an external vault.
Request
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
offset
integer
The number of secret members to skip before starting to collect the result set.
limit
integer
The number of secrets to return.
Response
200 - Success.
offset
integer
Offset of the first secret member in the result list, given the order of the collection. If the offset is not specified in the request, the default is 0.
limit
integer
Limit of the number of secret members returned. If the limit is not specified in the request, the default is 25.
total_count
integer
Total number of secret members returned.
members
SecretMembers
Secret members.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Share or unshare a secret
PUT /zen-data/v2/secrets/{secret_urn}/members
Adds or removes users' or groups' access to secret or a secret reference to an external vault.
Request
Request Body
UpdateSecretMembers
List of users or/and groups.
add_members
SecretMembers
The list of users and groups that can access a secret.
users
array
The list of users that can access a secret.
groups
array
The list of groups that can access a secret.
remove_members
SecretMembers
The list of users and groups can no longer access a secret.
users
array
The list of users that can access a secret.
groups
array
The list of groups that can access a secret.
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
Response
202 - Accepted.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
Unshare secret
DELETE /zen-data/v2/secrets/{secret_urn}/members
Removes users' or groups' access to secret or a secret reference to an external vault.
Request
Request Body
SecretMembers
List of users or/and groups.
users
array
The list of users that can access a secret.
groups
array
The list of groups that can access a secret.
Path Parameters
secret_urn
Required *
string
Unique value identifying the secret for the user.
Query Parameters
Response
202 - Accepted.
secret_urn
string
Secret ID.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Retrieve all my secrets
GET /zen-data/v2/secrets/bulk
Returns a list of secrets that you stored in the internal vault. Note: The list does not contain any sensitive information. It contains identifiers of the secrets and metadata only.
Request
Path Parameters
Query Parameters
secret_urns
Required *
string
Comma-separated secret_urns.
Response
200 - Success.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Generate a token
POST /zen-data/v2/serviceInstance/token
Generates a JSON Web Token (JWT) token for the service instance. You must include the service instance ID as a JSON string in the HTTP request body. You can get the volume instance ID by using /zen-data/v3/service_instances. This token is authorized to access the instance and has the same role as the user who generated the token.
Request
Request Body
apiKey
string
username
string
password
string
expiryTime
integer
Duration (in minutes) the token is valid.
serviceInstanceId
string
serviceInstanceDisplayName
string
serviceInstanceType
string
Path Parameters
Query Parameters
setCookie
boolean
If this is set to true, then cookie with that instance ID is generated.
Response
200 - Success.
TokenPayload
TokenPayload
[DO NOT USE] TO BE DEPRECATED
AccessToken
string
The jwt encoded token. The decoded value is shown here in the example.
DecodedToken
object
400 - Error.
401 - Unauthorized.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Create a volume
POST /zen-data/v1/volumes
Creates a volume instance. Creates a volume instance that can be used to host data files, manage access to Cloud Pak for Data users, and be consumed by other services. You must include the volume instance definition as a JSON string in the HTTP request body. Can be initiated only by a user with the Create service instances permission.
Request
Request Body
ProvisionInstanceRequest
VolumeInstance metadata artifact that needs to be added to the database.
addon_type
string
Type of the add-on.
display_name
string
The name to display for the volume in the web client. The string should be 25 characters or less and contain only lowercase alphanumeric characters and dashes. This `display_name` is used to derive the new PVC name. It will be `volumes-display_name-pvc`.
namespace
string
The Red Hat OpenShift project (namespace) where the Cloud Pak for Data control plane is installed.
addon_version
string
Version of the add-on.
pre_existing_owner
boolean
create_arguments
Required *
CreateArguments
resources
object
parameters
object
Free-form object that includes mandatory fields required to create service instance, these are persisted to metastore database.
description
string
Description of the service instance.
metadata
object
Free-form object that includes non-mandatory fields used by service provider, these are persisted to metastore database.
owner_username
string
This field is optional. Can be used by services such as Db2 for z/OS.
deployment_id
string
Deployment ID and used only when the add-on has a deployment.
transient_fields
object
This object will be forwarded to service provider without saving to database.
Path Parameters
Query Parameters
Response
200 - Success.
id
string
ID of the service instance.
202 - Accepted.
id
string
ID of the service instance.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
412 - Precondition Failed.
500 - Internal Server Error.
504 - Gateway Timeout.
GET /zen-data/v1/volumes
Retrieves the list of volumes that you have access to.
This method no longer returns the total user count for the volume instance collection when the exclude_user_count query parameter is set to true.
The total user count is still returned as the default behavior for compatibility with an earlier version. However, use the new exclude_user_count parameter if you don't require the total user count information. When you have many service instances, the response time is faster when you use the exclude_user_count parameter.
Request
Path Parameters
Query Parameters
fetch_all_instances
boolean
If set to true returns all volume instances. This parameter can be used by an Administrator only.
id
string
ID of the volume.
display_name
string
Query by volume name.
namespace
string
Query by namespace.
offset
integer
The number of volumes to skip before starting to collect the result set.
limit
integer
The number of volumes to return.
exclude_user_count
boolean
If set to true, computation of the total number of users that were added to a service instance will be skipped for all instances and omitted from the response.
Response
200 - Success.
offset
integer
Offset of the first instance in the result list, given the order of the collection. If the offset is not specified the default is 0.
limit
integer
Limit of the number of instances returned. If the limit is not specified in the request, the default is 20.
total_count
integer
Total number of instances returned.
service_instances
array
Service instance collection
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Get a list of persistent volume claims by namespace cluster
GET /zen-data/v2/persistentvolumeclaims/{namespace}
Retrieves a list of persistent volume claims based on a specified namespace. available in this ICP4Data cluster.
Request
Path Parameters
namespace
Required *
string
Namespace to get the claims from.
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
400 - Bad Request.
401 - Unauthorized.
500 - Internal Server Error.
Update a volume
PATCH /zen-data/v1/volumes/{display_name}
Updates a volume description. If it is an external SMB volume, this API can be also used to update the volume SMB/CIFS credentials.
Request
Request Body
description
string
cifs_username
string
cifs_password
string
supplemental_groups
array
Path Parameters
display_name
Required *
string
Name of the volume instance.
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Get all namespaces
GET /zen-data/v2/namespaces
Retrieves all the namespaces available in this Cloud Pak for Data deployment.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
401 - Unauthorized.
500 - Internal Server Error.
Give access to an instance for one or more users
POST /zen-data/v2/serviceInstance/users
Gives one or more users access to an instance. By default, only the user who created the instance is an administrator. You must include the instance ID as a JSON string in the HTTP request body. You can get the instance ID by using /zen-data/v3/service_instances.
Request
Request Body
AddUsersSchema
ServiceInstance metadata artifact that must be added to the database.
serviceInstanceID
Required *
string
users
array
groups
array
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
id
string
ID of the added object.
message
string
Message.
400 - Error.
401 - Unauthorized.
404 - Not Found.
409 - Resource Already Exists.
500 - Internal Server Error.
Revoke access to an instance
DELETE /zen-data/v2/serviceInstance/users
Revokes a user's access to the specified instance. You must include the instance ID as a JSON string in the HTTP request body. You can get the instance ID by using /zen-data/v3/service_instances.
Request
Request Body
RevokeUsersSchema
Arrays of UID to delete.
serviceInstanceID
string
users
array
groups
array
Path Parameters
Query Parameters
Response
200 - Success.
secret_urn
string
Secret ID.
400 - Error.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Get a list of users with access to an instance
GET /zen-data/v2/serviceInstance/users
Retrieves the list of users who have access to the specified instance. The role of each user is also returned.
Request
Path Parameters
Query Parameters
include_profile_picture
boolean
Include profile picture or not.
sID
Required *
string
Service Instance ID of the service.
role
string
Roles to query.
include_group_users
boolean
Includes group users or not.
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
400 - Error.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Change a user's role on an instance
PATCH /zen-data/v2/serviceInstance/users/role
Changes the user's role (access level) on the specified instance. You must include the instance ID as a JSON string in the HTTP request body. You can get the instance ID by using /zen-data/v3/service_instances. Note: Can be used only by the administrator of the service instance
Request
Request Body
PatchRole
ServiceInstance metadata artifact that must be added to the database.
serviceInstanceID
string
roles
array
groupRoles
array
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Error.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Start a file server with a persistent volume
POST /zen-data/v1/volumes/volume_services/{display_name}
Starts a service that contains a file server that supports upload, delete, list, and get operations on files.
Request
Request Body
VolumeObject
Volume metadata.
run_as_user
integer
The file server started is run as this UID. This user must be within range 1000320900 to 1000361000 if `cpd-user-scc` is used.
resources
ResourceSection
limits
object
requests
object
Path Parameters
display_name
Required *
string
The display name of the volume instance. You can get the volume instance display name by using `/zen-data/v3/service_instances`.
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
id
string
ID of the added object.
message
string
Message.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Stop a file server on a volume
DELETE /zen-data/v1/volumes/volume_services/{display_name}
Stops the Volume File Server REST service on the specified volume instance. You can stop the file server to suspend unnecessary processing when the file server is not needed. Stopping the file server releases the compute resources that are used by the file server. Note: The data in the volume is not deleted.
Request
Path Parameters
display_name
Required *
string
Name of the persistent volume.
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Monitor a file server
GET /zen-volumes/v1/monitor
Monitor a volume's file server status. If the file server in unavailable, you get a 502 Bad Gateway error.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
Upload file to the volume
PUT /zen-volumes/v1/volumes/files/{file_path}
Upload a file or create a directory (if no file provided to upload) into the volume. You must specify the target directory for the file on the volume and the path to the source file on the local file system.
Request
Request Body
Path Parameters
file_path
Required *
string
Path leading upto where the file is uploaded in the volume. This must be url-encoded.
Query Parameters
extract
boolean
The default value is `false`. Set the parameter to `true` to extract the contents of `.zip`, `.tar`, `.tar.gz`, or `.tgz` files to the specified directory. You can also upload binary-like files, that is, files that do not have a file extension.
make_executable
boolean
Set the`make_executable` parameter to `true` to ensure that the file that you uploaded has executable permissions. This operation sets the +x bit across owner, group, and other (world) attributes of the directory. The `make_executable` parameter operates only on singleton files and has no effect on archived file uploads. When you uploaded an archive, the extracted files inherit the permissions from the source from where they were archived.
ignore_name_validation
boolean
Set to `true` if and only if the name in `file_path` is not to be validated or sanitized.
keep_root_dir
boolean
The `keep_root_dir` parameter takes effect when uploading `.zip` file and `extract` is set to true. If `keep_root_dir` is set to true, then the extracted file structure will be the exactly same as the original file (root directories will be kept). If the flag is not set or set to false, then the extracted contents will be the same as the old behavior (root directories are removed).
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Download a file from a volume
GET /zen-volumes/v1/volumes/files/{file_path}
Downloads the specified file from the specified volume. You can download a file or an archived directory in the name of your choice. Pass the file name of your choice in the optional override_file_name parameter. You can use the dry_run parameter to check if the asset at the target_file_path exists and return some useful metadata in the response header about the asset. You can also download an entire directory as an archive. Pass the archive type in as the value for the compress parameter in the request. If you issue this command from a web browser, the download prompt is displayed.
Request
Path Parameters
file_path
Required *
string
Path leading upto where the file is uploaded in the volume. This must be url-encoded.
Query Parameters
dry_run
boolean
Set to true to probe the file/directory without actually downloading it.
override_file_name
string
Pass a string here to override the name of the file downloaded.
compress
string
Specify archive value to compress and download directory.
Response
200 - Success.
206 - Partial Content.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Delete a directory or file on a volume
DELETE /zen-volumes/v1/volumes/files/{file_path}
Deletes the specified file or directory on the specified volume.
Request
Path Parameters
file_path
Required *
string
Path leading upto where the file is uploaded in the volume. This must be url-encoded.
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Copy, move, or rename a file or directory in a volume
PUT /zen-volumes/v1/volumes/objects/copy
Copies, moves, or renames files and directories within a volume.
Request
Request Body
CopyEntityObject
source_path
Required *
string
Source path of file or directory relative to `volume_name` directory.
destination_path
Required *
string
Destination path of file or directory relative to `volume_name` directory.
Path Parameters
Query Parameters
keep_source
boolean
Set to `false` if you do not want to retain a copy of the object at the `source_path` (equivalent to a `mv` in `UNIX`). This value defaults to true, which keeps the object at the `source_path`.
destination_in_path
boolean
Set to `true` if `destination_path` in the request body includes the name the object is to be copied as. This value defaults to `false`. That is, the object will be copied to the `destination_path` with the same name as in the `source_path`, creating any directories specified in the `destination_path`.
overwrite_destination
boolean
Set to `true` if you want to force replace a conflicting object at the `destination_path`. This value defaults to `false`. That is, if there are conflicts during the copy, move, or rename it is reported back to the user in the API response.
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Get a list of the directories and files on a volume
GET /zen-volumes/v1/volumes/directories/{directory_path}
Retrieves the list of all directories and files on the specified volume. You can use the recursive parameter to list contents from the <directory_path> recursively. The API supports a boolean query parameter tree. If set to true, the API returns the contents as a tree structure representing the actual directory structure. To use the tree option, you must set recursive to true. You can also optionally use the include_details query parameter to list the contents of the <directory_path> as an array of objects and their metadata.
Request
Path Parameters
directory_path
Required *
string
The directory for which you want to display the contents. If you are referring to a nested directory, use URL encoding. For example, to create a reference to a directory called `Shared files/analytics projects`, enter: `Shared%20files%2Fanalytics%20projects`.
Query Parameters
recursive
boolean
The default value is `false`. Set the parameter to true to list the contents of the specified directory path recursively.
tree
boolean
The default value is `false`. Set the parameter to `true` to have the API contents returned as a tree structure that represents the actual directory structure.
include_type
boolean
(To Be Deprecated Soon) Set to true if you want the response to indicate the type of entity (for example: file or directory)
include_details
boolean
If set to `true`, the API lists the contents from the `directory_path` as an array of objects with each object containing certain metadata information about the entity (file/directory) encountered at that location. The default is `false`. The information includes: `content_length` (in bytes), `last_modified` (in RFC 1123 format).
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
responseObject
object
Response object.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Create a service instance
POST /zen-data/v3/service_instances
Creates a service instance. You must include the service instance definition as a JSON string in the HTTP request body. Can be initiated only by a user with the Create service instances permission.
Request
Request Body
ProvisionInstanceRequest
ServiceInstance metadata artifact that must be added to the database.
addon_type
string
Type of the add-on.
display_name
string
The name to display for the volume in the web client. The string should be 25 characters or less and contain only lowercase alphanumeric characters and dashes. This `display_name` is used to derive the new PVC name. It will be `volumes-display_name-pvc`.
namespace
string
The Red Hat OpenShift project (namespace) where the Cloud Pak for Data control plane is installed.
addon_version
string
Version of the add-on.
pre_existing_owner
boolean
create_arguments
Required *
CreateArguments
resources
object
parameters
object
Free-form object that includes mandatory fields required to create service instance, these are persisted to metastore database.
description
string
Description of the service instance.
metadata
object
Free-form object that includes non-mandatory fields used by service provider, these are persisted to metastore database.
owner_username
string
This field is optional. Can be used by services such as Db2 for z/OS.
deployment_id
string
Deployment ID and used only when the add-on has a deployment.
transient_fields
object
This object will be forwarded to service provider without saving to database.
Path Parameters
Query Parameters
Response
200 - Success.
id
string
ID of the service instance.
202 - Accepted.
id
string
ID of the service instance.
400 - Bad Request.
403 - Forbidden.
409 - Conflict.
412 - Precondition Failed.
500 - Internal Server Error.
504 - Gateway Timeout.
GET /zen-data/v3/service_instances
Retrieves the list of service instances that you have access to.
This method no longer returns the total user count for the instance collection when the exclude_user_count query parameter is set to true.
The total user count is still returned as the default behavior for compatibility with an earlier version. However, use the new exclude_user_count parameter if you don’t require the total user count information. When you have many service instances, the response time is faster when you use the exclude_user_count parameter.
Request
Path Parameters
Query Parameters
fetch_all_instances
boolean
If set to true returns all service instances. This parameter can be used by an Administrator only.
addon_type
string
Type of the add-on.
exclude_volumes
boolean
Exclude addon type volumes in the collection.
addon_version
string
Version of the add-on, this parameter must be used with the `addon_type` parameter.
display_name
string
Name of the instance to query.
addon_category
string
Category of the add-on, this cannot be used with other parameters.
offset
number
The number of service instances to skip before starting to collect the result set.
limit
number
The number of service instances to return.
exclude_user_count
boolean
If set to true, computation of the total number of users that were added to a service instance will be skipped for all instances and omitted from the response.
Response
200 - Success.
offset
integer
Offset of the first instance in the result list, given the order of the collection. If the offset is not specified the default is 0.
limit
integer
Limit of the number of instances returned. If the limit is not specified in the request, the default is 20.
total_count
integer
Total number of instances returned.
service_instances
array
Service instance collection
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
GET /zen-data/v3/service_instances/{instance_id}
Returns the details of the service instance. By default, this method returns the total user count in the return object in the "total_users": n response.
This method also returns a specific instance record with the service status if include_service_status is set to true.
This method fetches the status of the instance from the database only. It returns the live status if the status is not present in the status table, if the status expired (10 minutes), if the call failed, or if the status is unknown.
Request
Path Parameters
instance_id
Required *
string
service instance identifier
Query Parameters
include_service_status
boolean
If true service status is retrieved from the provider.
Response
200 - Success.
service_instance
ServiceInstance
services_status
string
The status of the service instance.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
Delete a service instance
DELETE /zen-data/v3/service_instances/{instance_id}
Deletes a service instance and removes users' access to the service instance. Important: The data inside the volume is not deleted and services can continue to use the volume until a Red Hat OpenShift project administrator removes the persistent volume claim to reclaim the storage. The reclaim policy that is specified in the storage class determines what happens when the persistent volume claim is deleted.
Request
Path Parameters
instance_id
Required *
string
Service Instance Identifier
Query Parameters
force
Required *
boolean
Set to true if the instance must be force deleted and bypass the default defensive checks pertaining to the service status.
Response
200 - Success.
id
string
ID of the service instance.
202 - Accepted.
id
string
ID of the service instance.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
412 - Precondition Failed.
500 - Internal Server Error.
504 - Gateway Timeout.
GET /zen-data/v3/service_instances/statuses
Returns the status of service instances. Service instances are ordered by created_at date, most recent to oldest.
This method fetches the status of the instances from the database cache only.
By default, this method returns the status of service instances that the user has access to.
If the bulk parameter is set to true, this method retrieves the status of service instances for the specified list of service instances, which are provided by the instance_ids parameter.
Request
Path Parameters
Query Parameters
bulk
boolean
If false, returns the status of service instances that the user has access to. If true, requires the instance_ids parameter to retrieve the status of the specified service instances.
instance_ids
string
To specify service IDs to retrieve the status for, set the bulk parameter to true and provide a comma-separated list of service instance IDs. You can provide a maximum of 20 service instance IDs.
include_count
boolean
Include the total count of instances that the user has access to. If not set to true, the total_count field is omitted from the response.
offset
integer
The number of service instances to skip, given the order of the service instances. Service instances are ordered by created_at date, most recent to oldest. If not specified, default is 0.
limit
integer
The number of service instances to return.
Response
200 - Success.
limit
integer
The number of services instances to be queried. If not specified, 20 service instances are returned.
offset
integer
The number of service instances to skip, given the order of the service instances. Service instances are ordered by created_at date, most recent to oldest. If not specified, default is 0.
service_instances
array
The statuses for the service instances.
total_count
integer
Total number of instances that the user has access to.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
500 - Internal Server Error.
Upgrade a service instance
PUT /zen-data/v3/service_instances/upgrade
Request
Request Body
UpgradeServiceInstanceArgs
args
string
Base64-encoded string representing all the args. For delegated upgrade it can be any format.
brokerID
string
clientTimeout
string
force
boolean
mode
string
noHooks
boolean
recreatePods
boolean
serviceInstanceId
string
serviceInstanceType
string
serviceInstanceVersion
string
targetVersion
string
Path Parameters
Query Parameters
sID
string
ID of the service instance
service_status_check
boolean
If true, service status will be checked. The service status should be 'RUNNING' to perform upgrade.
force_version_upgrade
boolean
Set it to true, to patch only the version field in the custom resource (CR) during an upgrade, you can set the force_version_upgrade parameter to true and supply the targetVersion to set. If the force_version_upgrade parameter is set to true, the targetVersion parameter must be specified in the request body. If you specify args in the request body, they are ignored.
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
202 - Accepted.
400 - Bad Request.
401 - Unauthorized.
403 - Forbidden.
404 - Not Found.
409 - Conflict.
500 - Internal Server Error.
View all events
GET /zen-watchdog/v1/monitoring/events
Returns a list of events that are recorded by the monitor and associated event type. The historical data for each event lists severity of the referenced resource at the time the monitor cron job collected its state. This list can be filtered to return only events of a specific severity.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Delete monitoring events
POST /zen-watchdog/v1/monitoring/events/prune
Deletes monitoring events that are older than the specified number of days.
Request
Path Parameters
Query Parameters
retention_time
integer
Number of days to retain.
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status
requestObj
object
400 - Bad request.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
http error code
requestObj
object
401 - Unauthorized.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
HTTP error code
requestObj
object
404 - Not Found.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
HTTP error code
requestObj
object
500 - Internal Server Error.
Delete metrics records
POST /zen-watchdog/v3/metrics/prune
Deletes metrics records that are older than the specified number of days.
Request
Path Parameters
Query Parameters
retention_time
integer
Number of days to retain.
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
400 - Bad request.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
http error code
requestObj
object
401 - Unauthorized.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
HTTP error code
requestObj
object
404 - Not Found.
messageCode
string
error code
exception
string
string representation of the error
message
string
error message
status
integer
HTTP error code
requestObj
object
500 - Internal Server Error.
Configure email recipients
PATCH /zen-watchdog/v1/monitoring/config/smtp
Configures alerts to be sent as email. You can configure a connection to your SMTP server in Administration > Platform configuration.
Request
Request Body
SMTPConfig
registered_emails
Required *
array
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
messageCode
string
Error code.
message
string
The error message.
statusCode
integer
The HTTP response code.
exception
string
An explanation of the problem.
401 - Unauthorized.
404 - Not Found.
406 - Conflict.
500 - Internal Server Error.
View alerted events
GET /zen-watchdog/v1/monitoring/getAlertedEvents
Returns a list of events by monitor that have promoted alerts and are currently in the snooze period, which can be further filtered by a specific event type.
Request
Path Parameters
Query Parameters
monitor_type
string
The name of the monitor. The default monitor is diagnostics.
event_type
string
Event type, which is used along with the `monitor_type`. The following event types are delivered with Cloud Pak for Data: `check-pvc-status` (records a critical event if a PVC is unbound), `check-replica-status` (records a critical event if a `StatefulSet` or deployment has unavailable replicas), `check-resource-status` (records a warning event if a service has reached the threshold and a critical event if it has exceeded the quota).
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Configure event type
PATCH /zen-watchdog/v1/monitoring/config/eventType
Allows you to edit configuration details for a particular event type for a monitor.
Request
Request Body
EventConfig
Event config.
description
string
resolution
string
alert_type
string
Path Parameters
Query Parameters
monitor_type
Required *
string
The name of the monitor. The default monitor is `diagnostics`.
event_type
Required *
string
Event type. The following event types are delivered with Cloud Pak for Data: `check-pvc-status` (records a critical event if a PVC is unbound), `check-replica-status` (records a critical event if a `StatefulSet` or deployment has unavailable replicas), `check-resource-status` (records a warning event if a service has reached the threshold and a critical event if it has exceeded the quota).
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
406 - Configuration Settings Invalid.
500 - Internal Server Error.
Configure alert rules
PATCH /zen-watchdog/v1/monitoring/config/alertType
Configures rules for critical and warning events, including the snooze period and whether an alert is needed when an incident corrects itself.
Request
Request Body
AlertRulesConfig
Event config.
trigger_type
Required *
string
Determines how to trigger alerts. One of the following options: `immediate`, `custom`. Custom needs `alert_count` and `alert_over_count`.
alert_count
number
Count of events with the severity type.
alert_over_count
number
Count of total events to be referenced.
snooze_time
number
The number of hours to wait before an alert is reissued. This pauses notifications for this period. Used to avoid spamming the user mailbox.
notify_when_condition_clears
Required *
boolean
A Boolean that determines whether to send an alert when the condition clears. This alert is sent with an severity of info.
Path Parameters
Query Parameters
alert_type
Required *
string
Name of the alert type. The default `alert_type` is platform.
severity
Required *
string
The severity for which the rules need to be updated. One of the following options: `critcal`, `warning`. You can't configure the alert rules for informational alerts.
event_type
string
Event type.
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
400 - Bad Request.
401 - Unauthorized.
404 - Not Found.
406 - Configuration Settings Invalid.
500 - Internal Server Error.
Get SNMP configuration
GET /zen-watchdog/v1/monitoring/config/snmp
Retrieves the current SNMP configuration.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
204 - Config Not Found.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Configure SNMP
POST /zen-watchdog/v1/monitoring/config/snmp
Configures alerts to be sent as traps by using SNMP (simple network management protocol). SNMP is a standard protocol for collecting and organizing information about managed devices or services. It exposes management data in the form of variables that are defined in managed information base (MIB) files. Use GET to retrieve the current SNMP configuration. Use POST to update the SNMP configuration.
Request
Request Body
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
401 - Unauthorized.
404 - Not Found.
406 - Configuration Settings Invalid.
500 - Internal Server Error.
Get Slack configuration
GET /zen-watchdog/v1/monitoring/config/slack
Retrieves the current Slack configuration.
Request
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
Message code.
message
string
Message.
status
string
Status.
requestObj
object
204 - Configuration Not Found.
401 - Unauthorized.
404 - Not Found.
500 - Internal Server Error.
Configure Slack
POST /zen-watchdog/v1/monitoring/config/slack
Configures alerts to be set as messages in a Slack channel. To enable Slack alerts, an administrator must provide a webhook URL, which can be set up to receive notifications on a channel. Use GET to retrieve the current Slack configuration. Use POST to update the Slack webhook URL.
Request
Request Body
Path Parameters
Query Parameters
Response
200 - Success.
messageCode
string
The identifier of the response.
message
string
The explanation of the `messageCode`.
401 - Unauthorized.
404 - Not Found.
406 - Configuration Settings Invalid.
500 - Internal Server Error.
Get a list of monitors, profiles, or alert types
GET /zen-data/v1/extensions
Lists all registered monitors and associated event types. The default monitor is diagnostics. Lists all alert types or rules, which define when alerts need to send. The default alert type is platform. Lists all registered alert profiles to enable or disable a certain type of alert (SMTP, SNMP, or Slack). Also provides metadata for the alert methods, including the list of email addresses that are registered to receive alerts.
Request
Path Parameters
Query Parameters
extension_point_id
array
Set to `zen_alert_monitor` to get a list of monitors. Set to `zen_alert_type` to get a list of alert types.
id
string
Identifier of a particular extension.
extension_name
array
Array of particular extensions' names.
preference_type
string
Type of preference.
source
string
Identifier for a particular source.
status
string
Query parameter when disabled will return the disabled extensions.
Response
200 - Success.
messageCode
string
Message code.
message
string
Message
status
string
Status.
data
object