All Products
Search
Document Center

Virtual Private Cloud:DeleteCommonBandwidthPackage

Last Updated:Dec 06, 2023

Deletes an Internet Shared Bandwidth instance.

Operation Description

You cannot repeatedly call the DeleteCommonBandwidthPackage operation to delete an Internet Shared Bandwidth instance within the specified period of time.

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the Internet Shared Bandwidth instance is created.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
ForcestringNo

Specifies whether to forcefully delete the Internet Shared Bandwidth instance. Valid values:

  • false (default): deletes the Internet Shared Bandwidth instance only when no EIPs are associated with the Internet Shared Bandwidth instance.
  • true: disassociates all EIPs from the Internet Shared Bandwidth instance and deletes the Internet Shared Bandwidth instance.
false
BandwidthPackageIdstringYes

The ID of the Internet Shared Bandwidth instance.

cbwp-2ze2ic1xd2qeqk145pn4u

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

B400EF57-60E3-4D61-B8FB-7FA8F72DF5A6

Examples

Sample success responses

JSONformat

{
  "RequestId": "B400EF57-60E3-4D61-B8FB-7FA8F72DF5A6"
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParam.%sThe param of %s is missing.The required parameter is not set.
400DependencyViolation.IpsThe specified BandwidthPackageId has dependent resource ips.-
400ForbiddenAction.PrePaidThe specified BandwidthPackageId is PrePaid.-
400OperationFailed.BandwidthPackageNotEmptyEip bandwidth package not empty.The EIP bandwidth plan cannot be deleted because EIPs are associated with the EIP bandwidth plan.
400InvalidOperation.DeletionProtectionThe instance cannnot delete because of deletion protecion.-
400OperationUnsupported.Release95InstanceReleasing instances that payBy95 or payByOld95 is unsupported.-
400OperationFailed.AddIpTaskInProcessingOperation failed because add ip to common bandwidth task in processing.You cannot delete the resource because EIPs are being associated with the EIP bandwidth plan.
404InvalidRegionId.NotFoundThe specified RegionId does not exist in our records.The specified region ID does not exist.
404InvalidBandwidthPackageId.NotFoundThe specified BandwidthPackageId does not exist in our records.The ID of the specified EIP bandwidth plan does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-24API Description Update,The error codes of the API operation change.see changesets
Change itemChange content
API DescriptionAPI Description Update
Error CodesThe error codes of the API operation change.
    Error Codes 400 change
    delete Error Codes: 404