百度智能云

All Product Document

          Express Tunnel

          Apply for Physical Express Tunnel

          Description

          Apply for Physical Express Tunnel After the application for the Express Tunnel gets done successfully, you need to configure the Port Duration before the Express Tunnel can be used normally.

          Request Structure

          POST /v{version}/et/init?clientToken={clientToken} HTTP/1.1
          Host: bcc.bj.baidubce.com
          Authorization: authorization string
          {
              "name": name,
              "description": description,
              "isp": isp,
              "intfType": intfType,
              "apType": apType,
              "apAddr": apAddr,
              "userName": userName,
              "userPhone": userPhone,
              "userEmail": userEmail,
              "userIdc": userIdc
          } 

          Request Header Field

          No other special header fields are available, except for common header fields.

          Request Parameters

          Parameter name Type Required? Parameter Position Description
          version String Yes URL Parameters API version number
          clientToken String No Query parameters Idempotent Token, which is an ASCII string with the length no more than 64 bits. See Idempotency of ClientToken for details.
          name String Yes Request Body Parameter ET Name: Supports uppercase and lowercase letters, numbers, - _ and /, special characters with a length of 1-65 characters, it must begin with a letter.
          description String No Request Body Parameter Description
          isp String Yes Request Body Parameter Operator. Its value range is ISP_CMCC/ISP_CUCC/ISP_CYC/ISP_OTHER, which respectively correspond to China Mobile/China Unicom/China Telecom/Others in China
          intfType String Yes Request Body Parameter The physical port specification, of which the value range is 1G/10G/100G
          apType String Yes Request Body Parameter The line type for the Baidu AI Cloud internal users is BAIDU, and the line type for the Baidu AI Cloud external users is SINGLE
          apAddr String Yes Request Body Parameter Access point. Its value range is BB/BJYZ/M3A/M3B/M2A/M2B/HKG03/WHGG/SHWGQ/BDBL, which respectively correspond to Beijing Haidian access point/Beijing Yizhuang access point/Guangzhou Nansha access point/Shenzhen access point/Nanjing access point/Suzhou access point/Hong Kong access point/Wuhan Optics Valley access point/Shanghai access point/Baoding access point
          userName String Yes Request Body Parameter User Name
          userPhone String Yes Request Body Parameter User Phone
          userEmail String Yes Request Body Parameter User Email
          userIdc String Yes Request Body Parameter End-to-end address. Its format is Province

          Return Header Field

          There are no other special header fields except the common header field.

          Return Parameter

          Parameter Name Type Description
          id String ET id

          Request Example

          POST /v1/et?clientToken=1849ef6b-f73c-4f5d-b88b-259ca47af849 HTTP/1.1
          Host: bcc.bj.baidubce.com
          Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
          {
              "name": "et_18",
              "description": "Description",
              "isp": "ISP_CMCC",
              "intfType": "1G",
              "apType": "SINGLE",
              "apAddr": "BJYZ",
              "userName": "Zhang San",
              "userPhone": "13333333333",
              "userEmail": "123@123.com",
              "userIdc": "Beijing | Municipal District | Dongcheng District | Baidu Science and Technology Park K2"
          } 

          Return Examples

          HTTP/1.1 200 OK
          x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
          Date: Thu, 16 Mar 2017 06:29:48 GMT
          Content-Type: application/json;charset=UTF-8
          Server: BWS
           {
              "id": "dcphy-gq65bz9ip712"
           }
          Previous
          Common Request Header and Response Header
          Next
          Port Duration Configuration