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"}},"PathByGlobalDcGatewayId":{"description":"全域接入网关ID","in":"path","name":"global_dc_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"}},"PathByPeerLinkId":{"description":"全域接入网关对等体","in":"path","name":"peer_link_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":{"BandwidthInfoExternal":{"description":"带宽信息","properties":{"bandwidth_size":{"description":"带宽值","format":"int64","type":"integer","x-huawei-alias":"bandwidthSize"},"gcb_id":{"description":"带宽包ID","type":"string","x-huawei-alias":"gcbId"}},"type":"object"},"ExternalUpdatePeerLink":{"description":"更新的请求体信息","properties":{"bandwidth_info":{"$ref":"#/components/schemas/BandwidthInfoExternal"},"created_time":{"description":"创建时间","format":"date-time","type":"string","x-huawei-extraAnnotation":"@JsonInclude(JsonInclude.Include.NON_NULL)\n@JsonFormat(pattern = \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n@JsonProperty(\"created_time\")"},"description":{"description":"关联连接的描述信息","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"description\")\n"},"global_dc_gateway_id":{"description":"关联连接归属的接入网关ID","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"global_dc_gateway_id\")\n"},"id":{"description":"关联连接的ID","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"id\")\n"},"name":{"description":"关联连接的名字","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"name\")\n"},"peer_site":{"$ref":"#/components/schemas/PeerSiteExternal"},"reason":{"description":"失败原因","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"reason\")\n"},"status":{"description":"关联连接的状态","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"status\")\n"},"tenant_id":{"description":"关联连接归属的租户ID","type":"string","x-huawei-extraAnnotation":"@JsonProperty(\"tenant_id\")\n"},"updated_time":{"description":"更新时间","format":"date-time","type":"string","x-huawei-extraAnnotation":"@JsonInclude(JsonInclude.Include.NON_NULL)\n@JsonFormat(pattern = \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n@JsonProperty(\"updated_time\")"}},"type":"object"},"PeerSiteExternal":{"description":"连接站点信息","properties":{"gateway_id":{"description":"全域接入网关ID","type":"string","x-huawei-alias":"gatewayId"},"link_id":{"description":"连接ID","type":"string","x-huawei-alias":"linkId"},"project_id":{"description":"项目ID","type":"string","x-huawei-alias":"projectId"},"region_id":{"description":"局点ID","type":"string","x-huawei-alias":"regionId"},"site_code":{"description":"网点编码","type":"string","x-huawei-alias":"siteCode"},"type":{"description":"连接类型","type":"string","x-huawei-alias":"type"}},"type":"object"},"UpdateExternalPeerLinkRequestBody":{"description":"更新关联连接参数","properties":{"peer_link":{"description":"更新关联连接请求体","properties":{"description":{"description":"描述信息","example":"peer link name","maxLength":128,"minLength":0,"type":"string","x-quark-allow-empty":"true"},"name":{"description":"接入网关关联连接的名字","example":"peer-link-test","maxLength":64,"minLength":0,"pattern":"[\\u4e00-\\u9fa5a-zA-Z0-9-_.]*","type":"string"}},"type":"object"}},"type":"object"},"UpdateExternalPeerLinkResponseBody":{"description":"更新连接请求Body体","properties":{"peer_link":{"$ref":"#/components/schemas/ExternalUpdatePeerLink"},"request_id":{"description":"请求ID","type":"string"}},"required":["peer_link"],"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"044e9f7ee6954f958198fe6f41f8bf50","host":"dcaas.cn-north-4.myhuaweicloud.com","id":"c8b2ccf1a79947b9b15269e2f3ec31dd","info_version":"v3","method":"put","name":"UpdatePeerLink","parameters":null,"paths":{"/v3/{project_id}/dcaas/global-dc-gateways/{global_dc_gateway_id}/peer-links/{peer_link_id}":{"put":{"description":"更新接入网关与ER对接的关联连接peer-link","operationId":"UpdatePeerLink","parameters":[{"$ref":"#/components/parameters/AuthToken"},{"$ref":"#/components/parameters/ProjectId"},{"$ref":"#/components/parameters/PathByGlobalDcGatewayId"},{"$ref":"#/components/parameters/PathByPeerLinkId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExternalPeerLinkRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExternalPeerLinkResponseBody"}}},"description":"OK","x-response-examples-1":{"application/json":{"peer_link":{"bandwidth_info":{"bandwidth_size":0,"gcb_id":null},"created_time":"2024-12-12T08:16:40.000Z","description":"test","global_dc_gateway_id":"335cb548-0ea0-4aff-80f5-502a2dab5325","id":"d6ea4641-9575-4675-ac4f-906884e37f28","name":"dgw-peer-link-test","peer_site":{"gateway_id":"70e29908-12f8-4d5d-9adf-4da5465b91b2","link_id":null,"project_id":"b197c48159d44a66b32c538c3f8da89a","region_id":"cn-southwest-242","site_code":"cn-southwest-242","type":"ER"},"reason":null,"status":"ACTIVE","tenant_id":"b197c48159d44a66b32c538c3f8da89a","updated_time":"2024-12-12T08:22:21.910Z"},"request_id":"e5406bdd85ca945d6a574e1a297abd1d"}},"x-response-examples-description-1":"专线连接更新响应体"}},"summary":"更新专线关联连接","tags":["PeerLink"],"x-apiexplorer-hide":"false","x-huawei-common":{"action":"update","primaryTable":"peer_links","requiredBodykey":["peer_link"],"resourceName":"peer_link","resourcesName":"peer_links","timeout":60},"x-huawei-security":{"epsAction":"update","pdpkey":["dcaas:peerlink:update"],"policy":"internal_modify_tenant_resource","validateToken":"ALL"},"x-is-registered":"Y","x-request-examples-1":{"peer_link":{"description":"test","name":"dgw-peer-link-test"}},"x-request-examples-description-1":"专线连接更新请求体","x-request-examples-url-1":"PUT https://{dc_endpoint}/v3/b197c48159d44a66b32c538c3f8da89a/dcaas/global-dc-gateways/335cb548-0ea0-4aff-80f5-502a2dab5325/peer-links/d6ea4641-9575-4675-ac4f-906884e37f28","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"}