Associates a bandwidth plan with a Global Accelerator (GA) instance.

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 BandwidthPackageAddAccelerator

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

RegionId String Yes cn-hangzhou

The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou.

BandwidthPackageId String Yes gbwp-bp1sgzldyj6b4q7cx****

The ID of the bandwidth plan that you want to associate with the GA instance.

AcceleratorId String Yes ga-bp1qe94o52ot4pkfn****

The ID of the GA instance that you want to associate with the bandwidth plan.

Response parameters

Parameter Type Example Description
RequestId String B7770CB9-9745-4FE5-9EDA-D14B01A12A50

The ID of the request.

Accelerators Array of String ga-bp1qe94o52ot4pkfn****

The ID of the GA instance that is associated with the bandwidth plan.

BandwidthPackageId String gbwp-bp1sgzldyj6b4q7cx****

The ID of the bandwidth plan that is associated with the GA instance.

Examples

Sample requests

http(s)://[Endpoint]/?Action=BandwidthPackageAddAccelerator
&RegionId=cn-hangzhou
&BandwidthPackageId=gbwp-bp1sgzldyj6b4q7cx****
&AcceleratorId=ga-bp1qe94o52ot4pkfn****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<BandwidthPackageAddAcceleratorResponse>
    <RequestId>B7770CB9-9745-4FE5-9EDA-D14B01A12A50</RequestId>
    <Accelerators>ga-bp1qe94o52ot4pkfn****</Accelerators>
    <BandwidthPackageId>gbwp-bp1sgzldyj6b4q7cx****</BandwidthPackageId>
</BandwidthPackageAddAcceleratorResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "B7770CB9-9745-4FE5-9EDA-D14B01A12A50",
  "Accelerators" : [ "ga-bp1qe94o52ot4pkfn****" ],
  "BandwidthPackageId" : "gbwp-bp1sgzldyj6b4q7cx****"
}

Error codes

HTTP status code Error code Error message Description
400 NotExist.BandwidthPackage The bandwidth package does not exist. The error message returned because the specified bandwidth plan does not exist.
400 StateError.BandwidthPackage The state of bandwidth package is invalid. The error message returned because the specified bandwidth plan is invalid.
400 NotExist.BasicBandwidthPackage You must specify the basic bandwidth package. The error message returned because the required basic bandwidth plan is not specified.

For a list of error codes, visit the API Error Center.