Updates the status or name of a service credential for a Resource Access Management (RAM) user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:UpdateServiceCredential |
update |
*User
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceCredentialId |
string |
Yes |
The ID of the service credential. |
SC**************** |
| UserPrincipalName |
string |
No |
The logon name of the Resource Access Management (RAM) user. If not specified, the service credential of the current invoke identity is updated. |
test@example.onaliyun.com |
| Status |
string |
No |
The status of the service credential. Valid values: Active, Inactive. You must specify at least one of Status and ServiceCredentialName. |
Active |
| ServiceCredentialName |
string |
No |
The name of the service credential. The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). You must specify at least one of Status and ServiceCredentialName. |
yourServiceCredentialName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
53C8FBFD-F2E9-50F2-AD63-B6566B3D4D7B |
Examples
Success response
JSON format
{
"RequestId": "53C8FBFD-F2E9-50F2-AD63-B6566B3D4D7B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.