gcloud dns response-policies create RESPONSE_POLICIES --description=DESCRIPTION [--gkeclusters=[GKECLUSTERS,…]] [--location=LOCATION] [--networks=[NETWORKS,…]] [GCLOUD_WIDE_FLAG …]
gcloud dns response-policies create myresponsepolicy --description='My new response policy.' --networks=''To create a new response policy with all optional arguments, run:
gcloud dns response-policies create myresponsepolicy --description='My new response policy.' --networks=network1,network2To create a new zonal response policy scoped to a GKE cluster in
us-central1-a, run (alpha/beta):
gcloud dns response-policies create beta myresponsepolicy --description='My new response
policy.' --gkeclusters=cluster1 --location=us-central1-a
To set the project attribute:
response_policies on the command line with a
fully specified name;
core/project.
RESPONSE_POLICIESresponse-policy attribute:
response_policies on the command line.
--description=DESCRIPTION--gkeclusters=[GKECLUSTERS,…]--location=LOCATION--networks=[NETWORKS,…]--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 $ gcloud help for details.
gcloud alpha dns response-policies creategcloud beta dns response-policies create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.