Modify shared bandwidth packet-reduce public IP
Describe
When removing IP, specify the IP list to be removed;
Do not allow all IP to be removed, if the IP list in the request contains all existing IP, then the error; (the error means that this request is not legitimate, all IP has not occurred delete behavior)
If the IP is not in the bandwidth packet, the error occurs (the error means that this request is not valid, all IP has no delete behavior)
If an IP is snat, the Portmap rule refers to the situation, the error; (the error means that this request is not legitimate, all IP has not occurred delete behavior)
Request parameters
| name |
type |
whether you must |
Description |
| Action |
String |
Is |
System specified parameters, values: removebandwidthpackageips |
| RegionID |
String |
Is |
The region where the shared bandwidth packet resides |
| Bandwidthpackageid |
String |
Is |
ID of the bandwidthpackage to be modified |
| Removedipaddresses.n |
Array |
Whether |
Allocationid of IP address to be removed (fill in IP allocationid instead of IP address) |
| n must be ranked starting from 1, with a maximum of 20; |
|
|
|
| If a non-existent IP is specified, the deletion behavior fails and all IP is not deleted; |
|
|
|
| If all IP in current bandwidth packet is specified, this deletion behavior fails--no IP in a bandwidth packet is allowed |
|
|
|
| Clienttoken |
String |
Whether |
Used to guarantee the power of the request. This parameter value is generated by the client to ensure that it is unique between requests and that the maximum is not worth 64 ASCII characters. See Appendix for details. |
return parameters
All public return parameters, as detailed in the public return parameters
Error code
| error code |
Description |
Http status code |
semantics |
| invalidregionid.notfound |
specified value of "RegionID" is not supported. |
404 |
|
| invalidbandwidthpackageid.notfound |
|
404 |
|
tr>
| invalidremovedipaddresses.notfound |
|
400 |
One of the specified IP addresses does not exist on the specified shared bandwidth packet. |
| it ' s forbidden that remove all IPs in Bandwidthpackage. |
400 |
Remove all IP from a one-time bandwidth bundle |
| forbidden.someipreferredbyforwardentry |
|
400 |
|
Example
Request sample
https://ecs.aliyuncs.com/? Removedipaddresses.2=nateip-11s2jempe&signatureversion=1.0&bandwidthpackageid=bwp-11odxu2k7&format =json×tamp=2016-05-23t04%3a01%3a34z®ionid=cn-shanghai&removedipaddresses.1= nateip-1110a2l48&accesskeyid=jzgi0oyrq6ihgkp9&signaturemethod=hmac-sha1&version=2014-05-26& Signature=l4nbmqd5x1xklrgbzm34aj4uwii%3d&action=removebandwidthpackageips&signaturenonce= 0a34f3f3-209b-11e6-b183-2cf0ee28adf2
Return sample
XML format
Temporary slightly
JSON format
{"RequestID": "7D275A59-1EB0-4775-8A20-2A47055EAC5C"}