Adds the serverHold status to a specified domain name.
Operation description
Request description
This API adds the serverHold property to a specified domain name.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
alidns:AddRspDomainServerHoldStatusForGateway | update | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
ClientToken | string | Yes | An idempotency parameter. | token123 |
DomainName | string | Yes | The domain name. | dns-example.top |
StatusMsg | string | Yes | The status description. | Authentication passed. Unlock serverHold |
Response elements
Element | Type | Description | Example |
object | Schema of Response | ||
RequestId | string | The unique ID of the request. | 0629502C-XXXX-5DC9-XXXX-2ED73A2E3931 |
Success | boolean | Indicates whether the request was successful. A value of | true |
RecoverableError | boolean | Indicates whether you can retry the request if it fails. A value of | true |
| Data | object | The returned data list. | |
DomainName | string | The domain name. | example.com |
| AccessDeniedDetail | object | The details about the access denial. This field is returned only when Resource Access Management (RAM) verification fails. | |
AuthAction | string | The unauthorized operation that was attempted. | AddRspDomainServerHoldStatusForGateway |
AuthPrincipalDisplayName | string | The display name of the authorized entity. | 2015555733387XXXX |
AuthPrincipalOwnerId | string | The ID of the owner of the authorized entity. | 1046973331XXXX |
AuthPrincipalType | string | The identity type. | SubUser |
EncodedDiagnosticMessage | string | The complete diagnostic information after encryption. | AQEAAAAAaNIARXXXXUQwNjE0LUQzN0XXXXVEQy1BQzExLTMzXXXXNTkxRjk1Ng== |
NoPermissionType | string | The reason why the authorization failed. Valid values:
| ImplicitDeny |
PolicyType | string | The policy type. | DlpSend |
Examples
Success response
JSON format
{
"RequestId": "0629502C-XXXX-5DC9-XXXX-2ED73A2E3931",
"Success": true,
"RecoverableError": true,
"Data": {
"DomainName": "example.com"
},
"AccessDeniedDetail": {
"AuthAction": "AddRspDomainServerHoldStatusForGateway",
"AuthPrincipalDisplayName": "2015555733387XXXX",
"AuthPrincipalOwnerId": "1046973331XXXX",
"AuthPrincipalType": "SubUser",
"EncodedDiagnosticMessage": "AQEAAAAAaNIARXXXXUQwNjE0LUQzN0XXXXVEQy1BQzExLTMzXXXXNTkxRjk1Ng==",
"NoPermissionType": "ImplicitDeny",
"PolicyType": "DlpSend"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.