huawei-cloud-api-definitions-DC 0.1.20250117

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":{"parameters":{"AuthToken":{"description":"用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"schema":{"maxLength":10240,"minLength":0,"type":"string"}},"ProjectId":{"description":"租户项目ID","in":"path","name":"project_id","required":true,"schema":{"maxLength":36,"minLength":0,"pattern":"[a-fA-F0-9]{32}","type":"string"}}},"schemas":{"ConnectGatewayResponse":{"description":"互联网关的相信信息对象","properties":{"access_site":{"description":"网关站点值","type":"string"},"address_family":{"description":"地址族信息\n- ipv4: 仅支持ipv4模式\n- dual: 支持ipv4 和 ipv6 模式","enum":["ipv4","dual"],"type":"string"},"bgp_asn":{"description":"BGP类型AS号","format":"int64","type":"integer"},"created_time":{"description":"创建时间","format":"date-time","type":"string"},"current_geip_count":{"description":"当前绑定的global eip数量","type":"integer"},"description":{"description":"描述信息","type":"string"},"gateway_site":{"description":"网关位置","type":"string"},"gcb_id":{"description":"带宽包id","type":"string"},"id":{"description":"唯一ID","type":"string"},"name":{"description":"网关名字","type":"string"},"status":{"description":"网关状态\n- DOWN 未使用或关联设备状态为DOWN\n- ACTIVE 正常\n- ERROR 异常","type":"string"},"tenant_id":{"description":"租户项目ID","type":"string"},"updated_time":{"description":"更新时间","format":"date-time","type":"string"}},"type":"object"},"CreateConnectGateway":{"description":"互联网关的实例对象","properties":{"address_family":{"default":"ipv4","description":"地址族信息\n不填默认ipv4","enum":["ipv4","dual"],"example":"dual","type":"string"},"description":{"description":"描述信息","example":"cgw-xin-desc","maxLength":255,"minLength":0,"pattern":"^[^<>]*$","type":"string","x-quark-allow-empty":"true"},"name":{"description":"网关名字","example":"cgw-xin-test","maxLength":64,"minLength":0,"pattern":"[\\u4e00-\\u9fa5a-zA-Z0-9-_.]*","type":"string"}},"required":["name"],"type":"object"},"CreateConnectGatewayRequestBody":{"properties":{"connect_gateway":{"$ref":"#/components/schemas/CreateConnectGateway"}},"required":["connect_gateway"]},"ShowConnectGatewayResponseBody":{"properties":{"connect_gateway":{"$ref":"#/components/schemas/ConnectGatewayResponse"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"044e9f7ee6954f958198fe6f41f8bf50","host":"dcaas.cn-north-4.myhuaweicloud.com","id":"5adbf4b7520f45e19729658a85548629","info_version":"v3","method":"post","name":"CreateConnectGateway","parameters":null,"paths":{"/v3/{project_id}/dcaas/connect-gateways":{"post":{"description":"创建互联网关","operationId":"CreateConnectGateway","parameters":[{"$ref":"#/components/parameters/ProjectId"},{"$ref":"#/components/parameters/AuthToken"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectGatewayRequestBody"}}},"description":"创建Connect Gateway","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowConnectGatewayResponseBody"}}},"description":"Created","x-response-examples-1":{"application/json":{"connect_gateway":{"access_site":null,"address_family":"dual","bgp_asn":139144,"created_time":"2024-12-11T22:12:15Z","current_geip_count":0,"description":"","gateway_site":null,"gcb_id":null,"id":"934aa302-5f1a-44c8-855b-20f715e2dbf3","name":"cgw-test","status":"DOWN","tenant_id":"b197c48159d44a66b32c538c3f8da89a","updated_time":null},"request_id":"c31651e323414fa89c5cfba267a3035b"}},"x-response-examples-description-1":"互联网关创建返回体"}},"summary":"创建互联网关","tags":["ConnectGateway"],"x-apiexplorer-hide":false,"x-is-registered":"Y","x-request-examples-1":{"connect_gateway":{"address_family":"dual","description":"","name":"cgw-test"}},"x-request-examples-description-1":"互联网关创建请求体","x-request-examples-url-1":"POST https://{dc_endpoint}/v3/b197c48159d44a66b32c538c3f8da89a/dcaas/connect-gateways","x-support-sdk":"Y"}}},"product_short":"DC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建互联网关","tags":"互联网关","uri":null,"version":"3.0.1"}