1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 23:08:48 +00:00

gcloud: Wed Jun 28 10:42:37 UTC 2023

This commit is contained in:
Automated 2023-06-28 10:42:37 +00:00
parent dc0d916cee
commit 0248e53b76
139 changed files with 3939 additions and 162 deletions

View file

@ -19,8 +19,8 @@ DESCRIPTION
EXAMPLES
To reserve three IP addresses in the 'us-central1' region, run:
$ gcloud alpha compute addresses create ADDRESS-1 ADDRESS-2 \
ADDRESS-3 --region=us-central1
$ gcloud alpha compute addresses create address-1 address-2 \
address-3 --region=us-central1
To reserve ephemeral IP addresses '162.222.181.198' and '23.251.146.189'
which are being used by virtual machine instances in the 'us-central1'
@ -31,36 +31,36 @@ EXAMPLES
In the above invocation, the two addresses will be assigned random names.
To reserve an IP address from the subnet 'default' in the 'us-central1'
region, run:
To reserve an IP address named subnet-address-1 from the subnet 'default'
in the 'us-central1' region, run:
$ gcloud alpha compute addresses create SUBNET-ADDRESS-1 \
$ gcloud alpha compute addresses create subnet-address-1 \
--region=us-central1 --subnet=default
To reserve an IP address that can be used by multiple internal load
balancers from the subnet 'default' in the 'us-central1' region, run:
$ gcloud alpha compute addresses create SHARED-ADDRESS-1 \
$ gcloud alpha compute addresses create shared-address-1 \
--region=us-central1 --subnet=default \
--purpose=SHARED_LOADBALANCER_VIP
To reserve an IP range '10.110.0.0/16' from the network 'default' for
'VPC_PEERING', run:
$ gcloud alpha compute addresses create IP-RANGE-1 --global \
$ gcloud alpha compute addresses create ip-range-1 --global \
--addresses=10.110.0.0 --prefix-length=16 \
--purpose=VPC_PEERING --network=default
To reserve any IP range with prefix length '16' from the network 'default'
for 'VPC_PEERING', run:
$ gcloud alpha compute addresses create IP-RANGE-1 --global \
$ gcloud alpha compute addresses create ip-range-1 --global \
--prefix-length=16 --purpose=VPC_PEERING --network=default
To reserve an address from network 'default' for PRIVATE_SERVICE_CONNECT,
run:
$ gcloud alpha compute addresses create PSC-ADDRESS-1 --global \
$ gcloud alpha compute addresses create psc-address-1 --global \
--addresses=10.110.0.10 --purpose=PRIVATE_SERVICE_CONNECT \
--network=default