gcloud beta dns response-policies rules - manage your Cloud DNS response policy rules
gcloud beta dns response-policies rules COMMAND [GCLOUD_WIDE_FLAG ...]
To create a new response policy rule with local data rrsets, run:
$ gcloud beta dns response-policies rules myresponsepolicyrule \ --response-policy="myresponsepolicy" \ --dns-name="www.zone.com." \ --local-data=name=www.zone.com.,type=CNAME,ttl=21600,\ rrdatas=zone.com.
To create a new response policy rule with behavior, run:
$ gcloud beta dns response-policies rules myresponsepolicyrule \ --response-policy="myresponsepolicy" \ --dns-name="www.zone.com." --behavior=bypassResponsePolicy
To update a new response policy rule with local data rrsets, run:
$ gcloud beta dns response-policies rules myresponsepolicyrule \ --response-policy="myresponsepolicy" \ --local-data=name=www.zone.com.,type=A,ttl=21600,rrdatas=1.2.3.4
To update a new response policy rule with behavior, run:
$ gcloud beta dns response-policies rules myresponsepolicyrule \ --response-policy="myresponsepolicy" \ --behavior=bypassResponsePolicy
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMAND is one of the following:
- create
(BETA) Creates a new Cloud DNS response policy rule.
- delete
(BETA) Deletes a Cloud DNS response policy rule.
- describe
(BETA) Shows details about a Cloud DNS response policy rule.
- list
(BETA) Displays the list of all a Cloud DNS response policy rules.
- update
(BETA) Updates a new Cloud DNS response policy rule.
This command is currently in beta and might change without notice. These variants are also available:
$ gcloud dns response-policies rules
$ gcloud alpha dns response-policies rules