获取弹性IP计费方式-GetEIPPayMode

获取弹性IP计费模式

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域Yes
ProjectIdstring项目ID,例如"org-xxxxxx",默认为当前项目No
EIPId.nstring弹性IP的资源IdYes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
EIPPayModearrayEIP的计费模式, 参见 EIPPayModeSetNo

EIPPayModeSet

Parameter nameTypeDescriptionRequired
EIPIdstringEIP的资源IDNo
EIPPayModestringEIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; "ShareBandwidth",共享带宽模式No

Request Example

http(s)://api.ucloud.cn/?Action=GetEIPPayMode
&Region=cn-bj2
&EIPId=eip-eij2r4

Response Example

{
    "Action": "GetEIPPayModeResponse",
    "EIPPayMode": [
        {
            "EIPPayMode": "Traffic",
            "EIPId": "eip-eij2r4"
        }
    ],
    "RetCode": 0
}