Domain name for API request: dc.intl.tencentcloudapi.com.
This API is used to apply for a connection.
When calling this API, please note that:
You need to complete identity verification for your account; otherwise, you cannot apply for a connection;
If there is any connection in arrears under your account, you cannot apply for more connections.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateDirectConnect. |
| Version | Yes | String | Common Params. The value used for this API: 2018-04-10. |
| Region | No | String | Common Params. This parameter is not required. |
| DirectConnectName | Yes | String | Connection name. |
| AccessPointId | Yes | String | Access point of connection. You can call DescribeAccessPoints to get the region ID. The selected access point must exist and be available. |
| LineOperator | Yes | String | ISP that provides connections. Valid values: ChinaTelecom (China Telecom), ChinaMobile (China Mobile), ChinaUnicom (China Unicom), In-houseWiring (in-house wiring), ChinaOther (other Chinese ISPs), InternationalOperator (international ISPs). |
| PortType | Yes | String | Port type of connection. Valid values: 100Base-T (100-Megabit electrical Ethernet interface), 1000Base-T (1-Gigabit electrical Ethernet interface), 1000Base-LX (1-Gigabit single-module optical Ethernet interface; 10 KM), 10GBase-T (10-Gigabit electrical Ethernet interface), 10GBase-LR (10-Gigabit single-module optical Ethernet interface; 10 KM). Default value: 1000Base-LX. |
| CircuitCode | No | String | Circuit code of a connection, which is provided by the ISP or connection provider. |
| Location | No | String | Local IDC location. |
| Bandwidth | No | Integer | Connection port bandwidth in Mbps. Value range: [2,10240]. Default value: 1000. |
| RedundantDirectConnectId | No | String | ID of redundant connection. |
| Vlan | No | Integer | VLAN for connection debugging, which is enabled and automatically assigned by default. |
| TencentAddress | No | String | Tencent-side IP address for connection debugging, which is automatically assigned by default. |
| CustomerAddress | No | String | User-side IP address for connection debugging, which is automatically assigned by default. |
| CustomerName | No | String | Name of connection applicant, which is obtained from the account system by default. |
| CustomerContactMail | No | String | Email address of connection applicant, which is obtained from the account system by default. |
| CustomerContactNumber | No | String | Contact number of connection applicant, which is obtained from the account system by default. |
| FaultReportContactPerson | No | String | Fault reporting contact person. |
| FaultReportContactNumber | No | String | Fault reporting contact number. |
| FaultReportContactEmail | No | String | |
| SignLaw | No | Boolean | Whether the connection applicant has signed the service agreement. Default value: true. |
| Tags.N | No | Array of Tag | Tag key-value pair |
| IsMacSec | No | Boolean | Is MACsec required |
| Parameter Name | Type | Description |
|---|---|---|
| DirectConnectIdSet | Array of String | Connection ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Apply for a physical dedicated line with the access point at Beijing Hangxin, China Mobile as the line operator, and the cloud port adopting 1000Base-LX Gigabit single-mode optical port.
https://dc.intl.tencentcloudapi.com/?Action=CreateDirectConnect
&DirectConnectName=Beijing Hangxin Physical Dedicated Line 1
&AccessPointId=ap-cn-beijing-hx
&LineOperator=China Mobile
&CircuitCode=Beijing Hangxin ANE0348NP
&Location=14th Floor, Sigma A Building, Haidian District, Beijing
&PortType=1000Base-LX
&Bandwidth=1000
&CustomerName=Zhang San
&CustomerContactMail=12345@qq.com
&CustomerContactNumber=18812345678
&<Common Request Parameters>
{
"Response": {
"DirectConnectIdSet": [
"dc-abcdefgh"
],
"RequestId": "24a0d7e5-4c13-49be-aa16-94f698fbef3e"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | An internal error occurred. |
| LimitExceeded | The quota limit is exceeded. |
| LimitExceeded.DirectConnectLimitExceeded | The number of connections has reached the upper limit. |
| ResourceNotFound | The resource does not exist. |
| UnauthorizedOperation | The operation is unauthorized. |
| UnsupportedOperation | Unsupported operation. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan