{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CreateSecurityGroupTagRequestBody":{"description":"This is a auto create Body Object","properties":{"tag":{"$ref":"#/definitions/ResourceTag","description":"创建安全组资源标签请求体"}},"required":["tag"]},"ErrorResp":{"description":"http响应码为错误码时的返回体数据模型","properties":{"code":{"description":"请求返回的错误码","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"},"message":{"description":"请求返回的错误信息","maxLength":999,"minLength":1,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"}},"required":["code","message"]},"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":"9a43bfb394734d0bb49b1664b65a1466","info_version":"v2","method":"post","name":"CreateSecurityGroupTag","parameters":{},"paths":{"/v2.0/{project_id}/security-groups/{security_group_id}/tags":{"post":{"description":"给指定安全组资源实例增加标签信息。\n此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。","operationId":"CreateSecurityGroupTag","parameters":[{"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":"security_group_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},{"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":"This is a auto create Body Object","in":"body","name":"CreateSecurityGroupTagRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateSecurityGroupTagRequestBody"}}],"responses":{"204":{"description":"正常返回"},"400":{"description":"服务器未能处理请求。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"被请求的页面需要用户名和密码。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"对被请求页面的访问被禁止。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"服务器无法找到被请求的页面。","schema":{"$ref":"#/definitions/ErrorResp"}},"409":{"description":"由于冲突,请求无法被完成。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"请求未完成。服务异常。","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"创建安全组资源标签","tags":["安全组资源标签管理"],"x-apiexplorer-hide":"false","x-first-open-time":"2018-3-30","x-hybridcloud":"false","x-is-registered":"Y","x-name":"创建安全组资源标签","x-open-region-cloud":"hc,hk,g42,hk_g42","x-order":5,"x-publishpath":"","x-request-examples-1":{"tag":{"key":"key1","value":"value1"}},"x-request-examples-description-1":"创建安全组资源标签","x-request-examples-text-1":"{\n \"tag\": {\n \"key\": \"key1\",\n \"value\": \"value1\"\n }\n}","x-request-examples-url-1":"POST https://{Endpoint}/v2.0/{project_id}/security-groups/{security_group_id}/tags","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"}