Skip to main content

createNat

Description

createNat

Request Method

POST

Request Path

/customer/nat/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
gatewayTypeBODYstringYesNo sample value for this parameter.gateway type(Specifications: Small、Middle、Large、XLarge.1)
regionIdBODYstringYesNo sample value for this parameter.region id
billingMethodBODYstringYesNo sample value for this parameter.billing method
vpcIdBODYstringYesNo sample value for this parameter.vpc id
sharingScopeBODYstringYesNo sample value for this parameter.sharing scope(0 is the current resource set. 1 is the current organization and its subordinate organizations)
nameBODYstringYesNo sample value for this parameter.nat name
voucherInstanceIdBODYstringYesNo sample value for this parameter.voucher of the order
couponInstanceIdBODYstringYesNo sample value for this parameter.coupon of the order
autoRenewalFlagBODYbooleanYesNo sample value for this parameter.auto renew

Return data

NameTypeSample valueDescription
resultobject`{"instanceId":"ngw-nj3m57puyejsw0ou1g2yq","orderId":2.0220726202150999E+18}`No description for this parameter.
resultCodestring0No description for this parameter.
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"instanceId":"ngw-nj3m57puyejsw0ou1g2yq",
"orderId":2.0220726202150999E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}