- NAME
-
- gcloud alpha compute public-advertised-prefixes create - create a public advertised prefix in the Alpha release track
- SYNOPSIS
-
-
gcloud alpha compute public-advertised-prefixes createNAME--range=RANGE[--description=DESCRIPTION] [--dns-verification-ip=DNS_VERIFICATION_IP] [--ipv6-access-type=IPV6_ACCESS_TYPE] [--pdp-scope=PDP_SCOPE] [GCLOUD_WIDE_FLAG …]
-
- EXAMPLES
-
To create a public advertised prefix:
gcloud alpha compute public-advertised-prefixes create my-public-advertised-prefix --range=120.120.10.0/24 --dns-verification-ip=120.120.10.15To create a v2 public advertised prefix:
gcloud alpha compute public-advertised-prefixes create my-v2-public-advertised-prefix --range=120.120.10.0/24 --dns-verification-ip=120.120.10.15 --pdp-scope=REGIONAL - POSITIONAL ARGUMENTS
-
NAME- Name of the public advertised prefix to operate on.
- REQUIRED FLAGS
-
--range=RANGE- IP range allocated to this public advertised prefix, in CIDR format.
- OPTIONAL FLAGS
-
--description=DESCRIPTION- Description of this public advertised prefix.
--dns-verification-ip=DNS_VERIFICATION_IP- IP address to use for verification. It must be within the IP range specified in --range.
--ipv6-access-type=IPV6_ACCESS_TYPE-
Specifies the IPv6 access type of the public advertised prefix.
IPV6_ACCESS_TYPEmust be one of:internal,external. --pdp-scope=PDP_SCOPE-
Specifies how child public delegated prefix will be scoped.
PDP_SCOPEmust be one of:GLOBAL,REGIONAL.
- 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
$ gcloud helpfor details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud compute public-advertised-prefixes creategcloud beta compute public-advertised-prefixes create
gcloud alpha compute public-advertised-prefixes 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 2025-07-01 UTC.