Creates an account-specific credential.
Operation description
This API authenticates and authorizes requests based on an access token issued by IDaaS.
Ensure that the provided access token is authorized to manage static credentials in the built-in Privileged Access Management (PAM) application of IDaaS.
The corresponding scope is urn:cloud:idaas:pam|credential:manage.
Try it now
Test
RAM authorization
Request syntax
POST /v2/{instanceId}/credentials/_/actions/createUserExclusive HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The EIAM instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Authorization |
string |
Yes |
The authorization information. Format: Bearer ${access_token}. Note
Enter the access token issued by IDaaS. |
Bearer xxxxxx |
| body |
object |
No |
The request body. |
|
| credentialIdentifier |
string |
Yes |
The credential identifier. |
credential_identifier_test |
| credentialName |
string |
Yes |
The credential name. |
credential_name |
| credentialScenarioLabel |
string |
No |
The scenarios label for the credential. Valid values:
|
llm |
| credentialType |
string |
Yes |
The credential type. Valid values:
|
api_key |
| credentialContent |
object |
Yes |
The credential content. |
|
| apiKeyContent |
object |
No |
The credential content for the API key credential type. |
|
| apiKey |
string |
Yes |
The value of the API key. |
sk-nsklncmwizncxxxx |
| description |
string |
No |
The credential description. |
credential_description |
| credentialExternalId |
string |
No |
The external unique identifier of the credential. |
YNWLVQAZMNRROYWKxxx |
| returnCiphertext |
boolean |
No |
Specifies whether to return the ciphertext of the encrypted credential. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| credentialId |
string |
The credential ID. |
cred_mkv7rgt4d7i4u7zqtzev2mxxxx |
| credentialIdentifier |
string |
The credential identifier. |
credential_identifier_test |
| credentialCiphertext |
string |
The ciphertext of the encrypted credential. |
eyJraWQiOiJBVVRIU0tFWxxxxx |
Examples
Success response
JSON format
{
"credentialId": "cred_mkv7rgt4d7i4u7zqtzev2mxxxx",
"credentialIdentifier": "credential_identifier_test",
"credentialCiphertext": "eyJraWQiOiJBVVRIU0tFWxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.