# 批量设置或移除资源标签

# 调用方式: PUT

# 接口地址:

https://api.freelog.com/v2/resources/tags/batchSetOrRemoveResourceTag
1

# body传入参数说明:

参数 必选 类型及范围 说明
tagNames 必选 string[] 标签名称
resourceIds 必选 string[] 资源ID
setType 必选 int 操作类型 1:设置标签 2:移除标签

# body示例

{
  "resourceIds":["5f1e9a0440641d002ba34a8b","5f1f8ba540641d002ba34a8e"],
  "tags":["yuliang","yuliang-test"],
  "setType":1
}
1
2
3
4
5

# 返回说明:

返回值字段 字段类型 字段说明
[data] bool 是否操作成功

# 返回示例

{
    "ret": 0,
    "errCode": 0,
    "errcode": 0,
    "msg": "success",
    "data": true
}
1
2
3
4
5
6
7