虚拟私有云 VPC-批量删除安全组资源标签:请求示例

时间:2024-09-04 09:19:06

请求示例

  • example-1:创建资源标签

    POST https://{Endpoint}/v2.0/{project_id}/security-groups/{security_group_id}/tags/action
    
    {
      "action" : "create",
      "tags" : [ {
        "key" : "key1",
        "value" : "value1"
      }, {
        "key" : "key2",
        "value" : "value3"
      } ]
    }
  • example-2:删除资源标签

    POST https://{Endpoint}/v2.0/{project_id}/security-groups/{security_group_id}/tags/action
    
    {
      "action" : "delete",
      "tags" : [ {
        "key" : "key1",
        "value" : "value1"
      }, {
        "key" : "key2",
        "value" : "value3"
      } ]
    }
support.huaweicloud.com/api-vpc/BatchDeleteSecurityGroupTags.html