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":{"CreateHostedDirectConnect":{"description":"创建托管专线参数对象","properties":{"bandwidth":{"description":"指定托管专线接入带宽,单位Mbps","example":500,"format":"int32","maximum":400000,"minimum":2,"type":"integer"},"description":{"description":"托管专线的描述信息","example":"connect to idc","maxLength":128,"minLength":0,"type":"string"},"hosting_id":{"description":"hosted物理专线对应的hosting物理专线的ID","example":"4673e339-8412-4ee1-b73e-2ba9cdfa54c1","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"},"name":{"description":"托管物理专线的名字。","example":"Host-connect-001","maxLength":64,"minLength":0,"type":"string"},"peer_location":{"description":"物理专线对端所在的物理位置,省/市/街道或IDC名字。","example":"北京市海淀区","maxLength":255,"minLength":0,"type":"string"},"resource_tenant_id":{"description":"为其他租户创建托管专线,指定对应的租户ID","example":"0605768a3300d5762f82c01180692873","maxLength":32,"minLength":0,"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"},"vlan":{"description":"指定托管(hosted)专线预分配的vlan","example":2031,"format":"int32","maximum":3999,"minimum":0,"type":"integer"}},"required":["bandwidth","hosting_id","vlan","resource_tenant_id"],"type":"object"},"CreateHostedDirectConnectRequestBody":{"description":"创建托管专线对象信息","properties":{"hosted_connect":{"$ref":"#/components/schemas/CreateHostedDirectConnect"}},"required":["hosted_connect"],"type":"object"},"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"}}},"consumes":"","definitions":null,"description":null,"group_id":"044e9f7ee6954f958198fe6f41f8bf50","host":"dcaas.cn-north-4.myhuaweicloud.com","id":"769df2cb78d849bba7fc6d9f69dabca1","info_version":"v3","method":"post","name":"CreateHostedDirectConnect","parameters":null,"paths":{"/v3/{project_id}/dcaas/hosted-connects":{"post":{"description":"用于合作伙伴用户最终租户创建托管专线\n创建者必须拥有合作伙伴资质,并且已经构建好运营(hosting)专线","operationId":"CreateHostedDirectConnect","parameters":[{"$ref":"#/components/parameters/ProjectId"},{"$ref":"#/components/parameters/AuthToken"}],"requestBody":{"content":{"application/json":{"example":{"hosted_connect":{"bandwidth":10,"description":"Hosted Connect","hosting_id":"2cfb53be-b05f-40d5-a2f8-3a59ac383836","name":"client-dc-faf1","resource_tenant_id":"0605768a3300d5762f82c01180692873","vlan":441}},"schema":{"$ref":"#/components/schemas/CreateHostedDirectConnectRequestBody"}}},"description":"","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowHostedDirectConnectResponseBody"}}},"description":"Created","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":"Hosted Connect","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":"Hosted Connect","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":{"bandwidth":10,"description":"Hosted Connect","hosting_id":"2cfb53be-b05f-40d5-a2f8-3a59ac383836","name":"client-dc-faf1","resource_tenant_id":"0605768a3300d5762f82c01180692873","vlan":441}},"x-request-examples-description-1":"创建一个托管专线连接,设置带宽为10,VLAN为441。","x-request-examples-text-1":{"hosted_connect":{"bandwidth":10,"description":"Hosted Connect","hosting_id":"2cfb53be-b05f-40d5-a2f8-3a59ac383836","name":"client-dc-faf1","resource_tenant_id":"0605768a3300d5762f82c01180692873","vlan":441}},"x-request-examples-url-1":"POST https://{dc_endpoint}/v3/6fbe9263116a4b68818cf1edce16bc4f/dcaas/hosted-connects","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"}