Skip to main content

DnsGatewayCollection Schema

Data structure for Dns Gateway Collection objects.

Item Type​

This is a collection (list) of DnsGateway items.

Usage​

# Example: Working with DnsGatewayCollection
items = [
{"auto_created":true,"dns_gateway_protocols":[],"dns_gateway_type":"dns_gateway_type-value-1","failure_behavior":"failure_behavior-value-1","id":1},
{"auto_created":true,"dns_gateway_protocols":[],"dns_gateway_type":"dns_gateway_type-value-2","failure_behavior":"failure_behavior-value-2","id":2}
]

# Pass to an action that requires this collection type
resource.some_action(body=items)

JSON Example​

[
{
"auto_created": true,
"dns_gateway_protocols": [],
"dns_gateway_type": "dns_gateway_type-value-1",
"failure_behavior": "failure_behavior-value-1",
"id": 1
},
{
"auto_created": true,
"dns_gateway_protocols": [],
"dns_gateway_type": "dns_gateway_type-value-2",
"failure_behavior": "failure_behavior-value-2",
"id": 2
}
]