{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ResponseModel":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误描述","type":"string"}},"required":["error_code","error_msg"]},"UrlDomainBase":{"properties":{"is_http_redirect_to_https":{"default":false,"description":"是否开启http到https的重定向,false为关闭,true为开启,默认为false","example":true,"type":"boolean"},"min_ssl_version":{"default":"TLSv1.1","description":"最小ssl协议版本号。支持TLSv1.1或TLSv1.2","enum":["TLSv1.1","TLSv1.2"],"example":"TLSv1.1","type":"string"}}},"UrlDomainBaseInfo":{"properties":{"id":{"description":"自定义域名的编号","example":"b9be707660c5406394f8973e087bae20","type":"string"},"is_http_redirect_to_https":{"default":false,"description":"是否开启http到https的重定向,false为关闭,true为开启,默认为false","example":true,"type":"boolean"},"min_ssl_version":{"description":"支持的最小SSL版本","example":"TLSv1.1","type":"string"},"status":{"description":"CNAME解析状态\n- 1: 未解析\n- 2: 解析中\n- 3: 解析成功\n- 4: 解析失败","enum":[1,2,3,4],"example":3,"format":"int32","type":"integer"},"url_domain":{"description":"自定义域名","example":"www.example.com","type":"string"},"verified_client_certificate_enabled":{"default":false,"description":"是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。","example":false,"type":"boolean"}},"required":["id","url_domain","status","min_ssl_version"]},"UrlDomainCreate":{"allOf":[{"$ref":"#/definitions/UrlDomainBase"},{"properties":{"url_domain":{"description":"自定义域名。长度为0-255位的字符串,需要符合域名规范。","example":"www.company.com","type":"string"}},"type":"object"}],"required":["url_domain"]}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"3a3bcf8bc49e43a7a2f09a54118fa633","info_version":"v2","method":"post","name":"AssociateDomainV2","parameters":{"apic_group_id":{"description":"分组的编号","in":"path","name":"group_id","required":true,"type":"string","x-example":"c77f5e81d9cb4424bf704ef2b0ac7600"},"apic_instance_id":{"description":"实例ID","in":"path","name":"instance_id","required":true,"type":"string","x-example":"f0fa1789-3b76-433b-a787-9892951c620e"},"apic_project_id":{"description":"项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。","in":"path","name":"project_id","required":true,"type":"string","x-example":"73d69ae0cfcf460190522d06b60f05ad"},"apic_x_auth_token":{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."}},"paths":{"/v2/{project_id}/apic/instances/{instance_id}/api-groups/{group_id}/domains":{"post":{"description":"用户自定义的域名,需要CNAME到API分组的子域名上才能生效。\n每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。","operationId":"AssociateDomainV2","parameters":[{"$ref":"#/parameters/apic_x_auth_token"},{"$ref":"#/parameters/apic_project_id"},{"$ref":"#/parameters/apic_instance_id"},{"$ref":"#/parameters/apic_group_id"},{"description":"绑定域名的请求体","in":"body","name":"AssociateDomainV2RequestBody","required":true,"schema":{"$ref":"#/definitions/UrlDomainCreate"}}],"responses":{"201":{"description":"Created","examples":{"application/json":{"id":"c5e0d5ba62a34d26ad5c709ae22c1a17","is_http_redirect_to_https":false,"min_ssl_version":"TLSv1.1","status":3,"url_domain":"www.company.com","verified_client_certificate_enabled":false}},"schema":{"$ref":"#/definitions/UrlDomainBaseInfo"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"APIG.2024","error_msg":"Invalid URL domain name"}},"schema":{"$ref":"#/definitions/ResponseModel"}},"401":{"description":"Unauthorized","examples":{"application/json":{"error_code":"APIG.1002","error_msg":"Incorrect token or token resolution failed"}},"schema":{"$ref":"#/definitions/ResponseModel"}},"403":{"description":"Forbidden","examples":{"application/json":{"error_code":"APIG.1005","error_msg":"No permissions to request this method"}},"schema":{"$ref":"#/definitions/ResponseModel"}},"404":{"description":"Not Found","examples":{"application/json":{"error_code":"APIG.3001","error_msg":"API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"}},"schema":{"$ref":"#/definitions/ResponseModel"}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"APIG.9999","error_msg":"System error"}},"schema":{"$ref":"#/definitions/ResponseModel"}}},"schemes":["https"],"summary":"绑定域名","tags":["域名管理"],"x-api-version":"v2","x-apigateway-request-type":"public","x-hybridcloud":true,"x-is-registered":"Y","x-open-region-cloud":"hc,hcso","x-order":1,"x-request-examples-1":{"url_domain":"www.company.com"},"x-request-examples-description-1":"为API分组绑定一个域名","x-romaconnect-mode":"huaweicloud,hybrid,on-premise","x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"绑定域名","tags":"域名管理","uri":null,"version":"2.0"}