Topology rules map client IPs to pools or resources. They require the Topology DB and named labels refer to it. Can be created only as part of topology.
References to dtc:topology:rule are object references. The name part of a DTC Topology Rule object reference has the following components:
- Name of DTC Topology to which this rule belongs
- Name of destination DTC Server or Pool
Example: dtc:topology:rule/ZG5zLm5ldHdvcmtfdmlldyQxMTk:DTCTopology1/Server1
The object does not support the following operations:
The object cannot be managed on Cloud Platform members.
These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable.
The following fields are required to create this object:
Field | Notes |
---|---|
dest_type |
The type of the destination for this DTC Topology rule.
Type
String.
Create
The field is required on creation.
Search
The field is not available for search.
The reference to the destination DTC pool or DTC server.
Type
String.
This field supports nested return fields as described here.
Create
The default value is undefined.
Search
The field is not available for search.
Type of the DNS response for rule.
Type
String.
Create
The default value is REGULAR.
Search
The field is not available for search.
The conditions for matching sources. Should be empty to set rule as default destination.
Type
A/An DTC topology rule source struct array.
Create
The default value is undefined.
Search
The field is not available for search.
Field | Type | Req | R/O | Base | Search |
---|---|---|---|---|---|
dest_type | String | Y | N | N | N/A |
destination_link | String | N | N | N | N/A |
return_type | String | N | N | N | N/A |
sources | [struct] | N | N | N | N/A |
topology | String | N | Y | N | = |
valid | Bool | N | Y | N | N/A |