You can call this operation to set an IP whitelist for a CDN domain.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetIpAllowListConfig

The operation that you want to perform. Set the value to SetIpAllowListConfig.

AllowIps String Yes 10.0.0.1%2F24%2C127.0.0.1%2F24

The whitelisted IP addresses. IP addresses in this whitelist are allowed to access the CDN domain.

DomainName String Yes www.macaron.org.cn

The name of the CDN domain to set the IP whitelist for.

Response parameters

Parameter Type Example Description
RequestId String 1C2C0CF5-C259-4B1B-98E1-E70DAC3827FA

The ID of the request.

Examples

Sample requests

http(s)://cdn.aliyuncs.com? Action=SetIpAllowListConfig
&AllowIps=10.0.0.1%2F24%2C127.0.0.1%2F24
&DomainName=www.macaron.org.cn
&<Common request parameters>

Sample success responses

XML format

<SetIpAllowListConfigResponse>
      <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetIpAllowListConfigResponse>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

For more information about error codes, visit API Error Center.