You need to enable JavaScript to run this app.
导航

UntagResources

最近更新时间2024.04.22 16:36:18

首次发布时间2023.09.13 10:26:41

调用UnTagResources接口,为资源删除用户标签。

调试

请求参数

名称
类型是否必选示例值
描述
ActionStringUntagResources要执行的操作,取值为UntagResources。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。

ResourceType

String

endpointservice

资源的类型,取值如下:

  • endpointservice:终端节点服务
  • endpoint:接口终端节点
  • gatewayendpoint:网关终端节点

ResourceIds.N

String

ResourceIds.1=epsvc-2fe630gurkl37k5gfuy33****&ResourceIds.2=epsvc-2fe630gurkl58k5gfuy26****

资源的ID。

说明

  • 参数 - N:表示资源 ID的序号,单次调用数量上限50个。
  • 多个资源 ID之间使用&分隔。

TagKeys.N

String

Tags.1.Key=k1&Tags.2.Key=k2

要为资源删除的用户标签的标签键。

  • 参数 - N:表示标签键的序号,单次调用数量上限20个。
  • 多个资源 ID之间使用&分隔。

返回数据

名称类型示例值描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=UntagResources&Version=2020-04-01&ResourceType=endpointservice&ResourceIds.1=epsvc-2fe630gurkl37k5gfuy33****&ResourceIds.2=epsvc-2fe630gurkl58k5gfuy26****&Tags.1.Key=k1&Tags.2.Key=k2 HTTP/1.1
Host: open.volcengineapi.com
Service: privatelink
Region: cn-guangzhou

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "UntagResources",
        "Version": "2020-04-01",
        "Service": "privatelink",
        "Region": "cn-guangzhou"
    },
    "Result": {}
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode错误码错误信息描述

400

MissingParameter

The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.

该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX

说明

其中,XXX表示缺少的参数名称。

400InvalidIncorrectOrder.MalformedThe specified index order is malformed.指定的索引顺序参数格式不合法。
400InvalidResourceType.MalformedThe specified ResourceType is malformed.指定的 ResourceType 参数格式不合法。
400InvalidTagKey.MalformedThe specified TagKey is malformed.指定的 TagKey 参数格式不合法。
400LimitExceeded.ResourceYou've reached the limit on the number of resources that you can operate at a time.已达到单次可操作资源数量的上限。
400LimitExceeded.TagOperationYou've reached the limit on the number of tags that you can operate at a time.已达到单次可操作的标签条目数量上限。
404InvalidResource.NotFoundThe specified resource does not exist.指定的资源不存在。