Description
Modify a policy under an IP access control.
- This function is intended for API providers.
- Once you add a policy, it is immediately effective for all the APIs bound to it.
- This interface modifies all content of a policy.
Request parameters
Parameter | Type | Required | Description |
---|---|---|---|
Action | String | Yes | Operation interface name, a required parameter, value: ModifyIpControlPolicyItem |
IpControlId | String | Yes | IP access control ID, which identifies a unique IP access control policy |
PolicyItemId | String | Yes | ID of a specific policy |
CidrIp | String | Yes | IP addresses or IP address segments in the policy. If multiple IP addresses or IP address segments are input, they must be separated by a semicolon (;). A policy can contain a maximum of 10 IP addresses or IP address segments. |
AppId | String | No | ID of the application controlled by the policy. This parameter can be set only when the access control type is whitelist (IpControlType is ALLOW).
|
Response parameters
Parameter | Type | Description |
---|---|---|
RequestId | String | ID of the current request |
Example
Sample request
https://apigateway.cn-qingdao.aliyuncs.com/?Action=ModifyIpControlPolicyItem
&IpControlId=7ea91319a34d48a09b5c9c871d9768b1
&PolicyItemId=P151617000829241
&CidrIp=113.125.1.101;101.11.1.1
&<Public Request Parameters>
Sample response
XML
format
<CreateSignatureResponse>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BZ004</RequestId>
</CreateSignatureResponse>
JSON
format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ004"
}