调用DeleteVpcPrefixList接口删除前缀列表。

使用说明

DeleteVpcPrefixList接口不支持并发删除同一个前缀列表实例。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DeleteVpcPrefixList

系统规定参数。取值:DeleteVpcPrefixList

PrefixListId String pl-0b78hw45f****

要删除的前缀列表的实例ID。

ClientToken String 123e4567-e89b-12d3-a456-426655440000

客户端Token,用于保证请求的幂等性。

从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。

说明 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。
DryRun Boolean false

是否只预检此次请求。取值:

  • true:发送检查请求,不会删除前缀列表。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码DryRunOperation
  • false(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接删除前缀列表。
RegionId String cn-hangzhou

要删除的前缀列表所在的地域ID。

您可以通过调用DescribeRegions接口获取地域ID。

返回数据

名称 类型 示例值 描述
RequestId String 64B48E3D-DF70-471B-AA93-08E683A1B45

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=DeleteVpcPrefixList
&PrefixListId=pl-0b78hw45f****
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&DryRun=false
&RegionId=cn-hangzhou
&公共请求参数

正常返回示例

XML格式

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

<DeleteVpcPrefixListResponse>
    <RequestId>64B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DeleteVpcPrefixListResponse>

JSON格式

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

{
  "RequestId" : "64B48E3D-DF70-471B-AA93-08E683A1B45"
}

错误码

HttpCode 错误码 错误信息 描述
400 IncorrectStatus.SystemPrefixList This is not allowed to operate system prefixList. 无法操作系统prefixList
400 OperationDenied.DeleteShareResource This is not allowed to delete shared prefixList. 无法删除共享PrefixList
400 IncorrectStatus.PrefixList The status of prefixList is incorrect. PrefixList处于中间态,无法操作
400 DependencyViolation.PrefixListRelation The specified resource of prefixList depends on prefixList relation, so the operation cannot be completed. 由于PrefixList还存在引用关系,所以无法删除PrefixList
400 DependencyViolation.ShareResource The specified resource of prefixList depends on share resource, so the operation cannot be completed. 由于PrefixList存在共享关系,所以无法删除PrefixList

访问错误中心查看更多错误码。