云连接 CC-批量创建和删除资源标签:请求示例

时间:2023-11-01 16:23:05

请求示例

  • 批量创建资源标签,如果key相同则更新value,如果key不存在则添加value

    POST https://{cc_endpoint}/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags/action{  "action" : "create",  "tags" : [ {    "key" : "key1",    "value" : "value1"  }, {    "key" : "key2",    "value" : "value3"  } ]}
  • 批量删除资源标签,仅根据key进行删除,忽略value

    POST https://{cc_endpoint}/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags/action{  "action" : "delete",  "tags" : [ {    "key" : "key1",    "value" : "value1"  }, {    "key" : "key2",    "value" : "value3"  } ]}
support.huaweicloud.com/api-cc/BatchCreateDeleteTags.html