{"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"}},"PathByConnectGatewayId":{"description":"互联网关ID","in":"path","name":"connect_gateway_id","required":true,"schema":{"description":"互联网关ID","pattern":"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}","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"},"ShowConnectGatewayResponseBody":{"properties":{"connect_gateway":{"$ref":"#/components/schemas/ConnectGatewayResponse"},"request_id":{"description":"请求ID","type":"string"}},"type":"object"},"UpdateConnectGateway":{"description":"修改互联网关请求Body体","properties":{"address_family":{"description":"地址族信息","enum":["ipv4","dual"],"example":"dual","type":"string"},"description":{"description":"描述信息","example":"cwg-name-example","maxLength":255,"minLength":0,"pattern":"^[^<>]*$","type":"string","x-quark-allow-empty":"true"},"name":{"description":"网关名字","example":"cwg-name","maxLength":64,"minLength":0,"pattern":"[\\u4e00-\\u9fa5a-zA-Z0-9-_.]*","type":"string"}},"type":"object"},"UpdateConnectGatewayRequestBody":{"properties":{"connect_gateway":{"$ref":"#/components/schemas/UpdateConnectGateway"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"044e9f7ee6954f958198fe6f41f8bf50","host":"dcaas.cn-north-4.myhuaweicloud.com","id":"4ceec6a077f04ac295b65f1e8df96114","info_version":"v3","method":"put","name":"UpdateConnectGateway","parameters":null,"paths":{"/v3/{project_id}/dcaas/connect-gateways/{connect_gateway_id}":{"put":{"description":"更新互联网关","operationId":"UpdateConnectGateway","parameters":[{"$ref":"#/components/parameters/AuthToken"},{"$ref":"#/components/parameters/PathByConnectGatewayId"},{"$ref":"#/components/parameters/ProjectId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConnectGatewayRequestBody"}}},"description":"修改Connect Gateway请求体","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowConnectGatewayResponseBody"}}},"description":"OK","x-response-examples-1":{"application/json":{"connect_gateway":{"access_site":null,"address_family":"dual","bgp_asn":139144,"created_time":"2024-12-12T06:12:15Z","current_geip_count":0,"description":"测试专线GEIP","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":"ecf6442668da7d4adf0dfaf4bded8840"}},"x-response-examples-description-1":"互联网关更新返回体"}},"summary":"更新互联网关","tags":["ConnectGateway"],"x-apiexplorer-hide":false,"x-is-registered":"Y","x-order":1,"x-request-examples-1":{"connect_gateway":{"description":"测试专线GEIP"}},"x-request-examples-description-1":"互联网关更新请求体","x-request-examples-url-1":"PUT https://{dc_endpoint}/v3/b197c48159d44a66b32c538c3f8da89a/dcaas/connect-gateways/934aa302-5f1a-44c8-855b-20f715e2dbf3","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"}