Modifies the name and description of an EIP bandwidth plan.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyCommonBandwidthPackageAttribute | The operation that you want to perform. Set the value to ModifyCommonBandwidthPackageAttribute. |
RegionId | String | Yes | cn-hangzhou | The ID of the region where the EIP bandwidth plan is created. You can call the DescribeRegions operation to query the most recent region list. |
BandwidthPackageId | String | Yes | cbwp-2ze2ic1xd2qeqk145**** | The ID of the EIP bandwidth plan. |
Name | String | No | test123 | The name of the EIP bandwidth plan. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start with |
Description | String | No | Description | The description of the EIP bandwidth plan. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | B450CAD8-50BC-4506-ADA7-35C6CE63E96B | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyCommonBandwidthPackageAttribute
&BandwidthPackageId=cbwp-2ze2ic1xd2qeqk145****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success response
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<ModifyCommonBandwidthPackageAttributeResponse>
<RequestId>B450CAD8-50BC-4506-ADA7-35C6CE63E96B</RequestId>
</ModifyCommonBandwidthPackageAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "B450CAD8-50BC-4506-ADA7-35C6CE63E96B6"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter.Name.Malformed | The specified Name is not valid. | The error message returned because the specified name format is invalid. Enter the name in the valid format. |
400 | InvalidParameter.Description.Malformed | The specified Description is not valid. | The error message returned because the specified description is invalid. |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The error message returned because the specified region ID does not exist. |
404 | InvalidBandwidthPackageId.NotFound | The specified bandwidthPackageId does not exist in our records. | The error message returned because the ID of the specified EIP bandwidth plan does not exist. |
For a list of error codes, visit the API Error Center.