Create a NAT Gateway Rule
Endpoint
Request
curl --location \
--request POST 'https://api.ionos.com/cloudapi/v6/datacenters/15f67991-0f51-4efc-a8ad-ef1fb31a480c/natgateways/d8fbc490-3b3e-4f7a-b6e1-2c8d5f3e7a9b/rules' \
--header 'Authorization: Bearer $IONOS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": {
"name": "Web Traffic Rule",
"protocol": "TCP",
"publicIp": "203.0.113.50",
"sourceSubnet": "10.0.1.0/24",
"targetSubnet": "0.0.0.0/0",
"targetPortRange": {
"start": 80,
"end": 443
},
"type": "SNAT"
}
}'Response
Last updated
Was this helpful?