Connections to Huawei Cloud on Console Connect currently work in the same way as a business-to-business Layer 2 connection. First, you provision the service to the Huawei company on Console Connect, then provide your Huawei Project ID to our Support team, who will complete the provisioning on both the Console Connect and Huawei ends for you.
Request
curl 'https://api.consoleconnect.com/api/company/:companyUsername/ports?deleted=false' \
--header 'Authorization: Bearer <API_KEY>'
Make sure to replace :companyUsername
with your actual company username and <API_KEY>
with your API key.
Response
You may receive multiple results, but only choose one.
Take note of the id property - we will use this as the portId
.
{
"results": [
{
"id": "66c29b3c6dcad34e5b728c9c", // This property will be the portId of the request payload
"name": "My-Port-1",
"speed": {
"value": 1000,
"name": "1000 Mbps"
},
"tags": [],
"dataCenterFacilityId": "5aa89b04ac86ba0012345bdf",
"popId": "99759532-0aeb-4e02-a876-5b505e9b213a",
"metroId": "77d9f1fbbcaa906f3cddb6d1",
"companyId": "5d4d056242fbd3000ab4c01d",
"status": "ACTIVE",
"updatedAt": "2024-08-19T01:09:16.376Z",
"createdAt": "2024-08-19T01:09:16.376Z",
"deleted": false,
"deletedAt": null,
"paymentType": "invoice",
"payg": true
...
}
...
]
}
Request
curl 'https://api.consoleconnect.com/api/company/huaweicloud/metro/capabilities' \
--header 'Authorization: Bearer <API_KEY>'
Make sure to replace <API_KEY>
with your API key.
Response
You may receive multiple results, but only choose the location you wish to connect to.
Take note of the id property since we will use this as the destMetroId
and firstDataCenterFacilityIdInMetro as the destDcf
.
{
"results": [
{
"name": "Hong Kong",
"code": "HKG",
"logo": null,
"canCreateController": false,
"tags": [],
"description": "",
"country": "hk",
"rir": "APNIC",
"regionIds": [
"5c05cb06cad910000ae251f4"
],
"ready": true,
"id": "77d9f1fbbcaa906f3cddb6d1", // This property will be the destMetroId of the request payload
"deletedAt": null,
"createdAt": "2017-12-18T00:45:44.120Z",
"updatedAt": "2024-02-25T05:02:47.267Z",
"deleted": false,
"capabilities": {
"layer2": true
},
"firstDataCenterFacilityIdInMetro": "5aa89b04ac86ba0012345bdf" // This property will be the destDcf of the request payload
}
]
}
Create a Layer 2 connection request to a specified destination company. Layer 2 connections require a source port ID and requested metro.
paymentTransactionId
, duration and evergreen options must be provided in the request.OK
{- "type": "LAYER2",
- "name": "my new connection",
- "portId": "123",
- "speed": 1000,
- "paymentType": "invoice",
- "duration": 1,
- "durationUnit": "m",
- "destPortId": "d466b388d3e9ee0a92177910",
- "destCompany": "companyusername"
}
{- "id": "58afc0499430ab7f3666b990",
- "type": "LAYER2",
- "status": "CREATING",
- "srcRegionId": "236107000000000000000001",
- "destRegionId": "236107000000000000000001",
- "updatedAt": "2017-02-24T05:10:44.942Z",
- "createdAt": "2017-02-24T05:10:33.807Z",
- "speed": {
- "value": 1000,
- "name": "1000 Mbps"
}, - "subconnections": [ ],
- "vlan": {
- "id": null,
- "service": null,
- "customer": [ ]
}, - "name": "my new connection",
- "cdrBillingType": "METRO",
- "payg": true,
- "billingType": [
- "PAYG"
], - "classOfService": "BRONZE"
}