You need to enable JavaScript to run this app.
导航
实例打标签 AttachTag
最近更新时间:2024.08.02 19:28:34首次发布时间:2024.05.08 16:20:06
复制全文
我的收藏
有用
有用
无用
无用

为指定实例添加分组标签(将指定标签批量关联绑定实例)。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=AttachTag&Version=2023-10-30

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringAttachTag接口名称。当前 API 的名称为 AttachTag
VersionString2023-10-30接口版本。当前 API 的版本为 2023-10-30

Body

参数类型是否必选示例值描述
ProductIdString1608456935646xxxxxx业务 ID,可在「云手机控制台-业务管理-业务详情」中获取。
TagIdString7269751760565xxxxxx标签 ID,可通过调用 ListTag 接口获取,空值为删除实例已绑定标签。
PodIdListArray of String["7307097619996xxxxxx","7307097326618xxxxxx"]实例 ID 列表,可通过 ListPod 接口获取,最大长度为 1000。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

POST https://open.volcengineapi.com?Action=AttachTag&Version=2023-10-30
{
    "TagId": "7269751760565xxxxxx",
    "PodIdList": [
        "7307097619996xxxxxx",
        "7307097326618xxxxxx"
    ],
    "ProductId": "1608456935646xxxxxx"
}

返回示例

{
    "ResponseMetadata": {
        "Action": "AttachTag",
        "Region": "cn-north-1",
        "Service": "ACEP",
        "Version": "2023-10-30",
        "RequestId": "20230604110420****100232280022D31"
    },
    "Result": "success"
}

错误码

您可访问公共错误码,获取更多错误码信息。