Deletes a prefix list.
Usage notes
You cannot repeatedly call the DeleteDhcpOptionsSet operation to delete a prefix list within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteVpcPrefixList |
The operation that you want to perform. Set the value to DeleteVpcPrefixList. |
PrefixListId | String | Yes | pl-0b78hw45f**** |
The ID of the prefix list that you want to delete. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-426655440000 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters. Note If you do not set this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.
|
DryRun | Boolean | No | false |
Specifies whether to check the request without performing the operation. Valid values:
|
RegionId | String | Yes | cn-hangzhou |
The region ID of the prefix list. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 64B48E3D-DF70-471B-AA93-08E683A1B45 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteVpcPrefixList
&PrefixListId=pl-0b78hw45f****
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&DryRun=false
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteVpcPrefixListResponse>
<RequestId>64B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DeleteVpcPrefixListResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "64B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectStatus.SystemPrefixList | This is not allowed to operate system prefixList. | The error message returned because you cannot manage the system prefix list. |
400 | OperationDenied.DeleteShareResource | This is not allowed to delete shared prefixList. | The error message returned because you cannot delete a shared prefix list. |
400 | IncorrectStatus.PrefixList | The status of prefixList is incorrect. | The error message returned because the prefix list is in an unstable state. |
400 | DependencyViolation.PrefixListRelation | The specified resource of prefixList depends on prefixList relation, so the operation cannot be completed. | The error message returned because the prefix is being used and cannot be deleted. |
400 | DependencyViolation.ShareResource | The specified resource of prefixList depends on share resource, so the operation cannot be completed. | The error message returned because the prefix list is being shared and cannot be deleted. |
For a list of error codes, visit the API Error Center.