- Resource: ResourceRecordSet
- Methods
Resource: ResourceRecordSet
A unit of data that is returned by the DNS servers.
JSON representation |
---|
{
"name": string,
"type": string,
"ttl": integer,
"rrdatas": [
string
],
"signatureRrdatas": [
string
],
"routingPolicy": {
object ( |
Fields | |
---|---|
name |
For example, www.example.com. |
type |
The identifier of a supported record type. See the list of Supported DNS record types. |
ttl |
Number of seconds that this |
rrdatas[] |
As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. |
signatureRrdatas[] |
As defined in RFC 4034 (section 3.2). |
routingPolicy |
Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid |
kind |
|
RRSetRoutingPolicy
A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.
JSON representation |
---|
{ "kind": string, // Union field |
Fields | |
---|---|
kind |
|
Union field
|
|
geo |
|
wrr |
|
primaryBackup |
|
GeoPolicy
Configures a RRSetRoutingPolicy
that routes based on the geo location of the querying user.
JSON representation |
---|
{
"items": [
{
object ( |
Fields | |
---|---|
items[] |
The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. |
enableFencing |
Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. |
kind |
|
GeoPolicyItem
ResourceRecordSet data for one geo location.
JSON representation |
---|
{
"location": string,
"rrdatas": [
string
],
"signatureRrdatas": [
string
],
"healthCheckedTargets": {
object ( |
Fields | |
---|---|
location |
The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1", etc. |
rrdatas[] |
|
signatureRrdatas[] |
DNSSEC generated signatures for all the |
healthCheckedTargets |
For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with |
kind |
|
HealthCheckTargets
HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response.
JSON representation |
---|
{
"internalLoadBalancers": [
{
object ( |
Fields | |
---|---|
internalLoadBalancers[] |
Configuration for internal load balancers to be health checked. |
LoadBalancerTarget
The configuration for an individual load balancer to health check.
JSON representation |
---|
{ "loadBalancerType": enum ( |
Fields | |
---|---|
loadBalancerType |
The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following:
|
ipAddress |
The frontend IP address of the load balancer to health check. |
port |
The configured port of the load balancer. |
ipProtocol |
The protocol of the load balancer to health check. |
networkUrl |
The fully qualified URL of the network that the load balancer is attached to. This should be formatted like |
project |
The project ID in which the load balancer is located. |
region |
The region in which the load balancer is located. |
kind |
|
LoadBalancerType
LoadBalancerType indicates the type of load balancer to be health checked.
Enums | |
---|---|
none |
|
globalL7ilb |
Indicates the load balancer is a Cross-Region Application Load Balancer. |
regionalL4ilb |
Indicates the load balancer is a Regional Network Passthrough Load Balancer. |
regionalL7ilb |
Indicates the load balancer is a Regional Application Load Balancer. |
IpProtocol
The protocol of the load balancer to health check.
Enums | |
---|---|
undefined |
|
tcp |
Indicates the load balancer is accessible via TCP. |
udp |
Indicates the load balancer is accessible via UDP. |
WrrPolicy
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
JSON representation |
---|
{
"items": [
{
object ( |
Fields | |
---|---|
items[] |
|
kind |
|
WrrPolicyItem
A routing block which contains the routing information for one WRR item.
JSON representation |
---|
{
"weight": number,
"rrdatas": [
string
],
"signatureRrdatas": [
string
],
"healthCheckedTargets": {
object ( |
Fields | |
---|---|
weight |
The weight corresponding to this |
rrdatas[] |
|
signatureRrdatas[] |
DNSSEC generated signatures for all the |
healthCheckedTargets |
Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of |
kind |
|
PrimaryBackupPolicy
Configures a RRSetRoutingPolicy such that all queries are responded with the primaryTargets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy.
JSON representation |
---|
{ "primaryTargets": { object ( |
Fields | |
---|---|
primaryTargets |
Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the |
backupGeoTargets |
Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to |
trickleTraffic |
When serving state is |
kind |
|
Methods |
|
---|---|
|
Creates a new ResourceRecordSet. |
|
Deletes a previously created ResourceRecordSet. |
|
Fetches the representation of an existing ResourceRecordSet. |
|
Enumerates ResourceRecordSets that you have created but not yet deleted. |
|
Applies a partial update to an existing ResourceRecordSet. |