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"}},"HostedConnectId":{"description":"托管专线连接ID。","example":"a3bad420-33b8-4e26-9e9b-bdf67aa8e72b","in":"path","name":"hosted_connect_id","required":true,"schema":{"maxLength":36,"minLength":36,"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":{"HostedDirectConnect":{"description":"托管专线对象信息","properties":{"admin_state_up":{"default":true,"description":"管理状态:true或false","type":"boolean"},"apply_time":{"description":"托管专线申请时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ","example":"2022-04-22T06:36:06.000Z","format":"date-time","type":"string"},"bandwidth":{"description":"托管专线接入带宽,单位Mbps。","format":"int32","maximum":400000,"minimum":2,"type":"integer"},"create_time":{"description":"托管专线创建时间。采用UTC时间格式,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ","example":"2022-04-22T06:36:06.000Z","format":"date-time","type":"string"},"description":{"description":"托管专线的描述信息","maxLength":128,"minLength":0,"type":"string"},"hosting_id":{"description":"hosted物理专线对应的hosting物理专线的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"},"id":{"description":"托管专线ID","example":"0d0fdf63-f2c4-491c-8866-d504796189be","maxLength":36,"minLength":36,"type":"string"},"location":{"description":"专线的接入位置信息","maxLength":255,"minLength":0,"type":"string"},"name":{"description":"托管专线名字","maxLength":64,"minLength":0,"type":"string"},"peer_location":{"description":"托管专线对端所在的物理位置,省/市/街道或IDC名字。","maxLength":255,"minLength":0,"type":"string"},"port_type":{"description":"托管专线接入接口的类型,支持1G 10G 40G 100G","enum":["1G","10G","40G","100G"],"example":"10G","type":"string"},"provider":{"description":"专线线路的提供商","type":"string"},"provider_status":{"description":"托管专线的运营商操作状态,合法值是:ACTIVE, DOWN","enum":["ACTIVE","DOWN"],"type":"string"},"status":{"description":"操作状态,合法值是:\nBUILD:已开通\nACTIVE:托管专线正常\nDOWN:专线对应的端口处于down的状态,可能存在线路故障等异常。\nERROR:托管专线异常\nPENDING_DELETE:删除中\nPENDING_UPDATE:更新中\nPENDING_CREATE:创建中","enum":["BUILD","ACTIVE","DOWN","ERROR","PENDING_DELETE","PENDING_UPDATE","PENDING_CREATE"],"type":"string"},"tenant_id":{"$ref":"#/components/schemas/TenantIdDef"},"type":{"default":"standard","description":"托管专线的类型,类型包括标准(standard),运营专线(hosting),托管专线(hosted),一站式标准(onestop_standard),一站式托管(onestop_hosted)。","enum":["standard","hosting","hosted","onestop_standard","onestop_hosted"],"example":"hosted","type":"string"},"vlan":{"description":"hosted物理专线预分配的vlan。","format":"int32","maximum":3999,"minimum":0,"type":"integer"}},"type":"object"},"ShowHostedDirectConnectResponseBody":{"description":"托管专线结果响应体","properties":{"hosted_connect":{"$ref":"#/components/schemas/HostedDirectConnect"},"request_id":{"description":"操作请求ID","type":"string"}},"required":["direct_connect","request_id"],"type":"object"},"TenantIdDef":{"description":"实例所属项目ID。","example":"32f7402e18154ce5861c9989df956394","maxLength":32,"minLength":32,"pattern":"[a-fA-F0-9]{32}","type":"string","x-ifnull":"hide"},"UpdateHostedDirectConnect":{"description":"更新托管专线对象","properties":{"bandwidth":{"description":"指定托管专线接入带宽,单位Mbps","format":"int32","maximum":400000,"minimum":2,"type":"integer"},"description":{"description":"物理专线的描述信息","example":"Direct connect to IDC","maxLength":128,"minLength":0,"type":"string"},"name":{"description":"物理专线的名字","example":"DirectConnect-001","maxLength":64,"minLength":0,"type":"string"},"peer_location":{"description":"物理专线对端所在的物理位置,省/市/街道或IDC名字","example":"北京市海淀区","maxLength":255,"minLength":0,"type":"string"}}},"UpdateHostedDirectConnectRequestBody":{"description":"更新托管专线对象参数","properties":{"hosted_connect":{"$ref":"#/components/schemas/UpdateHostedDirectConnect"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"044e9f7ee6954f958198fe6f41f8bf50","host":"dcaas.cn-north-4.myhuaweicloud.com","id":"eeefc692444645daa7f1d27ac1ce9c54","info_version":"v3","method":"put","name":"UpdateHostedDirectConnect","parameters":null,"paths":{"/v3/{project_id}/dcaas/hosted-connects/{hosted_connect_id}":{"put":{"description":"合作伙伴更新托管专线.","operationId":"UpdateHostedDirectConnect","parameters":[{"$ref":"#/components/parameters/ProjectId"},{"$ref":"#/components/parameters/HostedConnectId"},{"$ref":"#/components/parameters/AuthToken"}],"requestBody":{"content":{"application/json":{"example":{"hosted_connect":{"description":"","name":"client-dc-faf1"}},"schema":{"$ref":"#/components/schemas/UpdateHostedDirectConnectRequestBody"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowHostedDirectConnectResponseBody"}}},"description":"OK","x-response-examples-1":{"application/json":{"hosted_connect":{"admin_state_up":true,"apply_time":"2022-07-13T08:25:38.000Z","bandwidth":10,"create_time":"2022-07-13T08:25:38.000Z","description":"","hosting_id":"2cfb53be-b05f-40d5-a2f8-3a59ac383836","id":"0278b472-ffa5-4eb3-8c0d-979d479f8ef6","location":"Biere","name":"client-dc-faf1","peer_location":"","port_type":"10G","provider":"OTC","provider_status":"ACTIVE","status":"ACTIVE","tenant_id":"0605768a3300d5762f82c01180692873","type":"hosted","vlan":441},"request_id":"a59a3776faa1d055f8124dc7b0977a90"}},"x-response-examples-2":{"application/json":{"hosted_connect":{"admin_state_up":true,"apply_time":"2022-07-13T08:25:38.000Z","bandwidth":10,"create_time":"2022-07-13T08:25:38.000Z","description":"","hosting_id":"2cfb53be-b05f-40d5-a2f8-3a59ac383836","id":"0278b472-ffa5-4eb3-8c0d-979d479f8ef6","location":"ExampleLocation","name":"client-dc-faf1","peer_location":"","port_type":"10G","provider":"ExampleProvider","provider_status":"ACTIVE","status":"ACTIVE","tenant_id":"0605768a3300d5762f82c01180692873","type":"hosted","vlan":441},"request_id":"a59a3776faa1d055f8124dc7b0977a90"}},"x-response-examples-description-1":"成功更新托管专线连接","x-response-examples-description-2":"成功更新托管专线连接","x-response-examples-tags-1":"dt","x-response-examples-tags-2":"hws,hws_hk,ocb,cmcc"}},"summary":"更新托管专线连接","tags":["DirectConnect"],"x-apiexplorer-hide":"false","x-is-registered":"Y","x-request-examples-1":{"hosted_connect":{"description":"","name":"client-dc-faf1"}},"x-request-examples-description-1":"更新托管专线连接的名称和描述信息","x-request-examples-url-1":"PUT https://{dc_endpoint}/v3/6fbe9263116a4b68818cf1edce16bc4f/dcaas/hosted-connects/0278b472-ffa5-4eb3-8c0d-979d479f8ef6","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"}