Connections to Tencent Cloud are currently the same as a Business to Business Layer 2 connection. You need to provision the service to the Tencent company on Console Connect then our Support team will receive your request and complete the provisioning on Console Connect for you. Then you will need to complete the Tencent Provisioning in the Tencent portal with information that the Support team will send you such as the Provider Account ID, Shared Connection ID & the Vlan ID that gets used between Console Connect and Tencent Cloud.
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/tencent-cloud/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"
}