All Products
Search
Document Center

Virtual Private Cloud:DeleteCommonBandwidthPackage

Last Updated:Dec 20, 2024

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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:DeleteCommonBandwidthPackagedelete
*CommonBandwidthPackage
acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#CommonBandwidthPackageId}
  • vpc:tag
none

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 code has changedView Change Details