建立公網IP

更新時間:2017-09-01 07:18:59

描述

根據請求引數建立一個公網IP。

請求引數

引數名引數型別是否必填引數說明
Action String

操作方法

Region String

機房標識,取值參見地域列表

PayType String

付費型別。取值範圍:

  • PREPAID:包年包月
  • PROBATION:試用
Period Integer

購買年限週期:

  • 包年包月,單位月,取值為1,2,3,4,5,6,7,8,9,12,24,36
  • 試用,單位天,取值為3
Bandwidth Integer

IP頻寬

Name String

公網IP名稱

Count Integer

開通數量,預設為1

返回引數

名稱 型別 說明
Action String 執行的操作
TaskId String 請求標識
Eips List String 公網ip列表

請求示例

https://vpc-cn-wuxi1.chinac.com/?Action=AllocateEips
&Region=cn-wuxi1
&Bandwidth=2
&PayType=PREPAID
&Period=2
&<公共請求引數>

返回示例

{
    "code": 10000,
    "message": "",
    "data": {
        "TaskId": "39d8h20170828142655782",
        "Action": "AllocateEips",
        "TotalCount": 0,
        "Eips": [
            {
                "IpAddress": "172.16.27.178",
                "Id": "eip-g78hh7seql23i",
                "DueTime": "2017-10-28T14: 26: 56 +0800"
            }
        ]
    }
}
*
*
*
*
*