Modifies the name and description of an Internet Shared Bandwidth instance.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description 
Action String  Yes ModifyCommonBandwidthPackageAttribute

The name of this action. Value:

ModifyCommonBandwidthPackageAttribute

BandwidthPackageId String  Yes cbwp-2ze2ic1xd2qeqk145pn4u

The ID of the Internet Shared Bandwidth instance.

RegionId String Yes cn-hangzhou The ID of the region where the Internet Shared Bandwidth instance is located.

To query the region ID, call DescribeRegions.

Description String No 0Description

The description of the Internet Shared Bandwidth instance.

The description must be 2 to 256 characters in length. It must start with a letter, but cannot start with http:// or https://.

Name String No test123

The name of the Internet Shared Bandwidth instance.

The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), or hyphens (-). The name must start with a letter, but cannot start with http:// or https://.

Response parameters

Parameter Type Example value Description
RequestId String B450CAD8-50BC-4506-ADA7-35C6CE63E96B The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?BandwidthPackageId=cbwp-2ze2ic1xd2qeqk145pn4u
&RegionId=cn-hangzhou
&<CommonParameters>
Response example

XML format

<ModifyCommonBandwidthPackageAttributeResponse>
  <RequestId>B450CAD8-50BC-4506-ADA7-35C6CE63E96B</RequestId>
</ModifyCommonBandwidthPackageAttributeResponse>

JSON format

{
	"RequestId":"B450CAD8-50BC-4506-ADA7-35C6CE63E96B6"
}

Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.
404 InvalidBandwidthPackageId.NotFound The specified bandwidthPackageId does not exist in our records. The specified Internet Shared Bandwidth does not exist.
400 InvalidParameter.Name.Malformed The specified Name is not valid. The name is invalid.
400 InvalidParameter.Description.Malformed The specified Description is not valid. The description is invalid.

See common error codes