You can call this operation to specify the mode that is used to set up Anti-DDoS Pro for a domain name.

Request parameters

Name Type Required Description
Domain String Yes The domain name that you want to set up Anti-DDoS Pro for.
AccessMode Integer Yes The mode that is used to set up Anti-DDoS Pro. Valid values:
  • 0: A value of 0 indicates that A records are used.
  • 1: A value of 1 indicates that the Anti-DDoS Pro mode is used.
  • 2: A value of 2 indicates that the back-to-origin mode is used.

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests
{
  "Domain": "www.alibaba.com",
  "AccessMode": 1
}
Sample responses
{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
}