虚拟私有云 VPC-批量创建和删除子网资源标签:请求示例

时间:2025-02-12 15:01:44

请求示例

  • 批量创建两条子网资源标签,action为create。
    POST https://{Endpoint}/v2.0/{project_id}/subnets/{subnet_id}/tags/action{    "action": "create",    "tags": [        {            "key": "key1",            "value": "value1"        },        {            "key": "key2",            "value": "value3"        }    ]}
  • 批量删除两条子网资源标签,action为delete。
    POST https://{Endpoint}/v2.0/{project_id}/subnets/{subnet_id}/tags/action{    "action": "delete",    "tags": [        {            "key": "key1",            "value": "value1"        },        {            "key": "key2",            "value": "value3"        }    ]}
support.huaweicloud.com/api-vpc/subnet_tag_0004.html