Modifies 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 service credential ID. |
SC**************** |
| UserPrincipalName |
string |
No |
The logon name of the Resource Access Management (RAM) user. If this parameter is not specified, the service credential of the identity that you use to invoke this operation is modified. |
test@example.onaliyun.com |
| Status |
string |
No |
The status of the service credential. Valid values:
At least one of Status and ServiceCredentialName must be specified. |
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 (_). At least one of Status and ServiceCredentialName must be specified. |
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.