Create Compute Nat
Create a new Compute Nat.
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
Compute Nat Specification instance
Show optional properties
{
"name": "string",
"projectId": "e058",
"gateway": "string",
"natRules": [
{
"index": 0,
"targetLink": "/iaas/api/load-balancers/try6-45ef, /iaas/api/machines/ht54-a472/network-interfaces/dyd6-d67e"
}
]
}
{
"name": "string",
"projectId": "e058",
"deploymentId": "123e4567-e89b-12d3-a456-426655440000",
"customProperties": {
"customProperties": "string"
},
"gateway": "string",
"natRules": [
{
"ruleId": "string",
"kind": "NAT44",
"type": "DNAT",
"index": 0,
"protocol": "TCP, UDP",
"sourceIPs": "any, 10.20.156.101",
"sourcePorts": "any, 80, 5000-5100",
"destinationPorts": "any, 80, 5000-5100",
"destinationAddress": "any, 10.20.156.101",
"targetLink": "/iaas/api/load-balancers/try6-45ef, /iaas/api/machines/ht54-a472/network-interfaces/dyd6-d67e",
"translatedPorts": "any, 80, 5000-5100",
"description": "string"
}
]
}
A human-friendly name used as an identifier in APIs that support this option.
The id of the project the current user belongs to.
The id of the deployment that is associated with this resource
Additional custom properties that may be used to extend this resource.
Id of the Compute Gateway to which the Compute Nat resource will be attached
List of NAT Rules
Accepted
"RequestTracker Object"
Progress of the request as percentage.
Status message of the request.
Status of the request.
Collection of resources.
Name of the operation.
ID of this request.
Self link of this request.
ID of the deployment, this request is connected to.
Invalid Request - bad data
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Forbidden
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"gateway:"string","name:"string","natRules":["object"],"projectId:"string"}' https://{api_host}/iaas/api/compute-nats