{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BatchCreateSubnetTagsRequestBody":{"description":"This is a auto create Body Object","properties":{"action":{"description":"操作标识","enum":["create"],"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"},"tags":{"description":"标签列表","items":{"$ref":"#/definitions/ResourceTag","description":""},"type":"array","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"}},"required":["action","tags"]},"NeutronError":{"description":"","properties":{"detail":{"description":"错误请求返回的错误详情","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"message":{"description":"错误请求返回的错误信息","example":"Resource could not be found","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"type":{"description":"错误请求返回的错误类型","example":"ResourceNotFound","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["detail","message","type"]},"NeutronErrorResp":{"description":"","properties":{"NeutronError":{"$ref":"#/definitions/NeutronError","description":"NeutronError对象"}},"required":["NeutronError"]},"ResourceTag":{"description":"","properties":{"key":{"description":"功能说明:标签键\n约束:同一资源的key值不能重复。","maxLength":36,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"value":{"description":"功能说明:标签值","maxLength":43,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"}},"required":["key","value"]}},"description":null,"group_id":"4784d190da9948c381c1603ddda2f4ff","host":"vpc.cn-north-4.myhuaweicloud.com","id":"cbdb39902873402c9d9b94554f2ee4c4","info_version":"v2","method":"post","name":"BatchCreateSubnetTags","parameters":{},"paths":{"/v2.0/{project_id}/subnets/{subnet_id}/tags/action":{"post":{"consumes":[],"deprecated":false,"description":"为指定的子网资源实例批量添加标签。\n此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。","operationId":"BatchCreateSubnetTags","parameters":[{"description":"This is a auto create Body Object","in":"body","name":"BatchCreateSubnetTagsRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchCreateSubnetTagsRequestBody"}},{"description":"用户Token。 \n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc","x-order":1},{"description":"项目ID","in":"path","name":"project_id","pattern":"[0-9a-fA-F]{32}","required":true,"type":"string","x-example":"b433fedb577940bfa59abff86482ed1a","x-order":2},{"description":"子网ID","in":"path","name":"subnet_id","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","required":true,"type":"string","x-example":"a7dea4c9-21db-4640-aaca-da0209c9ad62","x-order":3}],"produces":[],"responses":{"204":{"description":"正常返回"},"400":{"description":"服务器未能处理请求。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"401":{"description":"被请求的页面需要用户名和密码。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"403":{"description":"对被请求页面的访问被禁止。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"404":{"description":"服务器无法找到被请求的页面。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"409":{"description":"由于冲突,请求无法被完成。","schema":{"$ref":"#/definitions/NeutronErrorResp"}},"500":{"description":"请求未完成。服务异常。","schema":{"$ref":"#/definitions/NeutronErrorResp"}}},"summary":"批量创建子网资源标签","tags":["子网资源标签管理"],"x-apiexplorer-hide":"false","x-constraint":"此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值","x-first-open-time":"2018-3-30","x-hybridcloud":"","x-is-registered":"Y","x-name":"批量创建子网资源标签","x-open-region-cloud":"hc,hk,otc,obc","x-order":55,"x-publishpath":"","x-request-examples-1":{"action":"delete","tags":[{"key":"key1","value":"value1"},{"key":"key2","value":"value3"}]},"x-request-examples-2":{"action":"create","tags":[{"key":"key1","value":"value1"},{"key":"key2","value":"value3"}]},"x-request-examples-description-1":"example-1:删除资源标签","x-request-examples-description-2":"example-2:创建资源标签","x-request-examples-text-1":"{\n \"action\": \"delete\",\n \"tags\": [\n {\n \"key\": \"key1\",\n \"value\": \"value1\"\n },\n {\n \"key\": \"key2\",\n \"value\": \"value3\"\n }\n ]\n}","x-request-examples-text-2":"{\n \"action\": \"create\",\n \"tags\": [\n {\n \"key\": \"key1\",\n \"value\": \"value1\"\n },\n {\n \"key\": \"key2\",\n \"value\": \"value3\"\n }\n ]\n}","x-request-examples-url-1":"POST https://{Endpoint}/v2.0/{project_id}/subnets/{subnet_id}/tags/action","x-request-examples-url-2":"POST https://{Endpoint}/v2.0/{project_id}/subnets/{subnet_id}/tags/action","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v2.0"}}},"product_short":"VPC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量创建子网资源标签","tags":"子网资源标签管理","uri":null,"version":"2.0"}