File: //snap/google-cloud-cli/394/help/man/man1/gcloud_dns_response-policies_rules_update.1
.TH "GCLOUD_DNS_RESPONSE\-POLICIES_RULES_UPDATE" 1
.SH "NAME"
.HP
gcloud dns response\-policies rules update \- updates a new Cloud DNS response policy rule
.SH "SYNOPSIS"
.HP
\f5gcloud dns response\-policies rules update\fR (\fIRESPONSE_POLICY_RULE\fR\ :\ \fB\-\-response\-policy\fR=\fIRESPONSE_POLICY\fR) [\fB\-\-behavior\fR=\fIBEHAVIOR\fR] [\fB\-\-dns\-name\fR=\fIDNS_NAME\fR] [\fB\-\-local\-data\fR=[\fILOCAL_DATA\fR,...]] [\fB\-\-location\fR=\fILOCATION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
This command updates a new Cloud DNS response policy rule.
.SH "EXAMPLES"
To update a new response policy rule with DNS name, run:
.RS 2m
$ gcloud dns response\-policies rules update myresponsepolicyrule \e
\-\-response\-policy="myresponsepolicy" \e
\-\-dns\-name="www.newzone.com." # pylint: disable=line\-too\-long
.RE
To update a new response policy rule with local data rrsets, run:
.RS 2m
$ gcloud dns response\-policies rules update myresponsepolicyrule \e
\-\-response\-policy="myresponsepolicy" \e
\-\-local\-data=name=www.zone.com.,type=A,ttl=21600,rrdatas=1.2.3.4
.RE
To update a new response policy rule with behavior, run:
.RS 2m
$ gcloud dns response\-policies rules update myresponsepolicyrule \e
\-\-response\-policy="myresponsepolicy" \e
\-\-behavior=bypassResponsePolicy
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Response policy rule resource \- The response policy rule to update. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5response_policy_rule\fR on the command line with a fully
specified name;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fIRESPONSE_POLICY_RULE\fR
ID of the response_policy_rule or fully qualified identifier for the
response_policy_rule.
To set the \f5response\-policy\-rule\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5response_policy_rule\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-response\-policy\fR=\fIRESPONSE_POLICY\fR
The Cloud DNS response policy name response_policy_rule.
To set the \f5response\-policy\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5response_policy_rule\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-response\-policy\fR on the command line.
.RE
.sp
.RE
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-behavior\fR=\fIBEHAVIOR\fR
The response policy rule query behavior. \fIBEHAVIOR\fR must be one of:
\fBbehaviorUnspecified\fR, \fBbypassResponsePolicy\fR.
.TP 2m
\fB\-\-dns\-name\fR=\fIDNS_NAME\fR
DNS name (wildcard or exact) to apply this rule to.
.TP 2m
\fB\-\-local\-data\fR=[\fILOCAL_DATA\fR,...]
All resource record sets for this selector, one per resource record type. The
name must match the dns_name.
This is a repeated argument that can be specified multiple times to specify
multiple local data rrsets. (e.g.
\-\-local\-data=name="zone.com.",type="A",ttl=21600,rrdata="1.2.3.4 "
\-\-local\-data=name="www.zone.com.",type="CNAME",ttl=21600,rrdata="1.2.3.4|5.6.7.8")
.RS 2m
.TP 2m
\fBname\fR
The DnsName of a resource record set.
.TP 2m
\fBtype\fR
Type of all resource records in this set. For example, A, AAAA, SOA, MX, NS, TXT
...
.TP 2m
\fBttl\fR
Number of seconds that this ResourceRecordSet can be cached by resolvers.
.TP 2m
\fBrrdatas\fR
The list of datas for this record, split by "|".
.RE
.sp
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Specifies the desired service location the request is sent to. Defaults to Cloud
DNS global service. Use \-\-location=global if you want to target the global
service.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha dns response\-policies rules update
.RE
.RS 2m
$ gcloud beta dns response\-policies rules update
.RE