Apply for EIP
-
Apply for an EIP that can be used to bind to any BLB instance or BCC instance. -
Creating an EIP requires real name authentication. If you fail to pass the real name authentication, you can go to Baidu Intelligent Cloud Official Website Console Authenticate in real name authentication under security authentication in.
POST /v{version}/eip? clientToken={clientToken} HTTP/1.1 Host: eip.bj.baidubce.com Authorization: authorization string { "name": name, "bandwidthInMbps": bandwidthInMbps, "billing":{ "paymentTiming": paymentTiming, "billingMethod": billingMethod, "reservation":{ "reservationLength": reservationLength, "reservationTimeUnit": reservationTimeUnit } }, "tags":[ { "tagKey": tagKey, "tagValue": tagValue } ], "resourceGroupId":resourceGroupId }
|
|
|
|
|
---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---|---|---|
|
|
|
POST /v1/eip? clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1 HOST eip.bj.baidubce.com Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host; x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02 { "name":"eip-for-test", "routeType":"BGP_S" "bandwidthInMbps": 1, "billing":{ "paymentTiming":"Postpaid", "billingMethod":"ByTraffic" }, "tags":[ { "tagKey": "tagK", "tagValue": "tagV" } ], "resourceGroupId":"RESG-J7PdULjguvB" }
POST /v1/eip? clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1 HOST eip.bj.baidubce.com Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host; x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02 { "name":"eip-for-test", "bandwidthInMbps": 1, "billing":{ "paymentTiming":"Prepaid", "reservation":{ "reservationLength":1, "reservationTimeUnit":"Month" } } }
HTTP/1.1 200 OK x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09 Date: Wed, 10 Apr 2016 08:26:52 GMT Transfer-Encoding: chunked Content-Type: application/json; charset=UTF-8 Server: BWS { "eip":"180.181.3.133" }