NAT Gateway rule
nat_gateway_rule
Example Syntax
name: Create NAT Gateway Rule
ionoscloudsdk.ionoscloud.nat_gateway_rule:
datacenter: ''
nat_gateway: ''
name: 'AnsibleAutoTestNAT'
type: SNAT
protocol: TCP
source_subnet: 10.0.1.0/24
target_subnet: 10.0.1.0
target_port_range:
start: 10000
end: 20000
public_ip: ''
wait: true
register: nat_gateway_rule_response
name: Update NAT Gateway Rule
ionoscloudsdk.ionoscloud.nat_gateway_rule:
datacenter: ''
nat_gateway: ''
nat_gateway_rule: ''
public_ip: ''
name: 'AnsibleAutoTestNAT - UPDATED'
type: SNAT
protocol: TCP
source_subnet: 10.0.1.0/24
wait: true
state: update
register: nat_gateway_rule_update_response
name: Delete NAT Gateway Rule
ionoscloudsdk.ionoscloud.nat_gateway_rule:
datacenter: ''
nat_gateway: ''
nat_gateway_rule: ''
state: absent
Returned object
For more examples please check out the tests here.
state: present
Available parameters for state present:
Name
Required
Description
state: absent
Available parameters for state absent:
Name
Required
Description
state: update
Available parameters for state update:
Name
Required
Description
Last updated
