You can call this operation to edit layer 7 forwarding rules.

Request parameters

Name Type Required Description
Domain String Yes The domain name that you want to change settings for.
RsType Integer Yes The type of the origin server’s address. Valid values:
  • 0: IP address.
  • 1: Domain name.
InstanceIds.N String No The ID of the Anti-DDoS Pro instance that you want to set up for the domain. If you want to set up multiple Anti-DDoS Pro instances, specify multiple parameters as follows: InstanceIds. 1, InstanceIds. 2, InstanceIds. 3, ...
Note If this parameter is not specified, the domain name is not associated with any Anti-DDoS Pro instance.
RealServers.N String Yes The IP address of the origin server. If you have multiple IP addresses, specify multiple parameters as follows: RealServers. 1, RealServers. 2, RealServers. 3, ...
ProxyTypes.N String Yes The protocol supported by the origin server. To add multiple protocols, specify multiple parameters as follows: ProxyTypes. 1, ProxyTypes. 2, ProxyTypes. 3, ...

Response parameters

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

Examples

Sample requests
{
  "Domain": "www.alibaba.com",
  "RsType" : 0,
  "RealServers. 1": "1.1.1.1",
  "InstanceIds. 1": "xxxx",
  "ProxyTypes. 1" : "http"
}
Sample responses
{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}