gcloud compute addresses create
NAME
…]--addresses
ADDRESS
[ADDRESS
…]]--description
DESCRIPTION
]--format
FORMAT
]--help
]--project
PROJECT_ID
]--quiet
, -q
]--global
| --region
REGION
]-h
]gcloud compute addresses create
is used to reserve one or more IP addresses. Once
an IP address is reserved, it will be associated with the
project until it is released using gcloud compute addresses
delete
. Ephemeral IP addresses that are in use by resources
in the project, can be reserved using the --addresses
flag.NAME
…]
--addresses
ADDRESS
[ADDRESS
…]
$ gcloud compute addresses create ADDRESS-1 ADDRESS-2 \ --addresses 162.222.181.197 162.222.181.198 --region us-central1
ADDRESS-1
and 162.222.181.198 as ADDRESS-2
. If
no names are given, randomly-generated names will be assigned
to the IP addresses.--description
DESCRIPTION
--global
--region
REGION
compute/region
property:$ gcloud config set compute/region REGION
$ gcloud compute regions list
$ gcloud config unset compute/region
CLOUDSDK_COMPUTE_REGION
.--format
FORMAT
json
, text
, yaml
.
--help
--project
PROJECT_ID
--quiet
, -q
-h
us-central1
region,
run:$ gcloud compute addresses create ADDRESS-1 ADDRESS-2 ADDRESS-3 \ --region us-central1
us-central1
region, run:$ gcloud compute addresses create --addresses 162.222.181.198 \ 23.251.146.189 --region us-central1
compute
component. See
installing components
if it is not installed.