CreateNatGateway

POST {{baseUrl}}/natGateways

Creates a new NAT gateway for the specified VCN. You must also set up a route rule with the NAT gateway as the rule's target. See Route Table.

Request Body

{"compartmentId"=>"{{compartment_ocid}}", "vcnId"=>"ocid1.vcn.oc1...", "blockTraffic"=>false, "displayName"=>"esse ad consectetur reprehenderit labore", "publicIpId"=>"in dolor dolor vel"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"compartmentId":"et","vcnId":"laboris dolor","natIp":"ut ad minim commodo irure","id":"ex mollit nostrud","lifecycleState":"TERMINATED","timeCreated":"1951-12-31T09:14:40.490Z","blockTraffic":false,"definedTags":{},"displayName":"Excepteur laboris","freeformTags":{},"publicIpId":"veniam est"}