mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-11 07:29:40 +00:00
gcloud: Wed Feb 8 10:13:59 UTC 2023
This commit is contained in:
parent
fc11b54760
commit
11068cb123
240 changed files with 8982 additions and 619 deletions
101
gcloud/compute/network-attachments/create
Normal file
101
gcloud/compute/network-attachments/create
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
NAME
|
||||
gcloud compute network-attachments create - create a Google Compute Engine
|
||||
network attachment
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute network-attachments create NAME
|
||||
--subnets=SUBNETS,[SUBNETS,...]
|
||||
[--connection-preference=CONNECTION_PREFERENCE;
|
||||
default="ACCEPT_AUTOMATIC"] [--description=DESCRIPTION]
|
||||
[--producer-accept-list=[ACCEPT_LIST,...]]
|
||||
[--producer-reject-list=[REJECT_LIST,...]] [--region=REGION]
|
||||
[--subnets-region=SUBNETS_REGION] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
gcloud compute network-attachments create is used to create network
|
||||
attachments. A service consumer creates network attachments and makes it
|
||||
available to producers. Service producers then use a multi-NIC VM to form a
|
||||
bi-directional, non-NAT'd communication channel.
|
||||
|
||||
EXAMPLES
|
||||
$ gcloud compute network-attachments create \
|
||||
NETWORK_ATTACHMENT_NAME --region=us-central1 \
|
||||
--subnets=MY_SUBNET --connection-preference=ACCEPT_MANUAL \
|
||||
--producer-accept-list=PROJECT1,PROJECT2 \
|
||||
--producer-reject-list=PROJECT3,PROJECT4
|
||||
|
||||
To create a network attachment with a textual description, run:
|
||||
|
||||
$ gcloud compute network-attachments create \
|
||||
NETWORK_ATTACHMENT_NAME --region=us-central1 \
|
||||
--subnets=MY_SUBNET --connection-preference=ACCEPT_MANUAL \
|
||||
--producer-accept-list=PROJECT1,PROJECT2 \
|
||||
--producer-reject-list=PROJECT3,PROJECT4 \
|
||||
--description='default network attachment'
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the network attachment to create.
|
||||
|
||||
REQUIRED FLAGS
|
||||
--subnets=SUBNETS,[SUBNETS,...]
|
||||
The subnetworks provided by the consumer for the producers
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--connection-preference=CONNECTION_PREFERENCE; default="ACCEPT_AUTOMATIC"
|
||||
The connection preference of network attachment. The value can be set
|
||||
to ACCEPT_AUTOMATIC or ACCEPT_MANUAL. An ACCEPT_AUTOMATIC network
|
||||
attachment is one that always accepts the connection from producer NIC.
|
||||
An ACCEPT_MANUAL network attachment is one that requires an explicit
|
||||
addition of the producer project id or project number to the producer
|
||||
accept list. CONNECTION_PREFERENCE must be one of: ACCEPT_AUTOMATIC,
|
||||
ACCEPT_MANUAL.
|
||||
|
||||
--description=DESCRIPTION
|
||||
An optional, textual description for the network attachment.
|
||||
|
||||
--producer-accept-list=[ACCEPT_LIST,...]
|
||||
Projects that are allowed to connect to this network attachment.
|
||||
|
||||
--producer-reject-list=[REJECT_LIST,...]
|
||||
Projects that are not allowed to connect to this network attachment.
|
||||
|
||||
--region=REGION
|
||||
Region of the network attachment to create. If not specified, you might
|
||||
be prompted to select a region (interactive mode only).
|
||||
|
||||
To avoid prompting when this flag is omitted, you can set the
|
||||
compute/region property:
|
||||
|
||||
$ gcloud config set compute/region REGION
|
||||
|
||||
A list of regions can be fetched by running:
|
||||
|
||||
$ gcloud compute regions list
|
||||
|
||||
To unset the property, run:
|
||||
|
||||
$ gcloud config unset compute/region
|
||||
|
||||
Alternatively, the region can be stored in the environment variable
|
||||
CLOUDSDK_COMPUTE_REGION.
|
||||
|
||||
--subnets-region=SUBNETS_REGION
|
||||
Region of the subnetworks to operate on. Overrides the default
|
||||
compute/region property value for this command invocation.
|
||||
|
||||
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 help for details.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute network-attachments create
|
||||
|
||||
$ gcloud beta compute network-attachments create
|
||||
|
||||
57
gcloud/compute/network-attachments/delete
Normal file
57
gcloud/compute/network-attachments/delete
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
NAME
|
||||
gcloud compute network-attachments delete - delete one or more Google
|
||||
Compute Engine network attachments
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute network-attachments delete NAME [NAME ...] [--region=REGION]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Delete one or more Google Compute Engine network attachments.
|
||||
|
||||
EXAMPLES
|
||||
To delete a network attachment, run:
|
||||
|
||||
$ gcloud compute network-attachments delete \
|
||||
NETWORK_ATTACHMENT_NAME --region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME [NAME ...]
|
||||
Names of the network attachments to delete.
|
||||
|
||||
FLAGS
|
||||
--region=REGION
|
||||
Region of the network attachments to delete. If not specified, you
|
||||
might be prompted to select a region (interactive mode only).
|
||||
|
||||
To avoid prompting when this flag is omitted, you can set the
|
||||
compute/region property:
|
||||
|
||||
$ gcloud config set compute/region REGION
|
||||
|
||||
A list of regions can be fetched by running:
|
||||
|
||||
$ gcloud compute regions list
|
||||
|
||||
To unset the property, run:
|
||||
|
||||
$ gcloud config unset compute/region
|
||||
|
||||
Alternatively, the region can be stored in the environment variable
|
||||
CLOUDSDK_COMPUTE_REGION.
|
||||
|
||||
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 help for details.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute network-attachments delete
|
||||
|
||||
$ gcloud beta compute network-attachments delete
|
||||
|
||||
57
gcloud/compute/network-attachments/describe
Normal file
57
gcloud/compute/network-attachments/describe
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
NAME
|
||||
gcloud compute network-attachments describe - describes a Google Compute
|
||||
Engine network attachment
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute network-attachments describe NAME [--region=REGION]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Describes a Google Compute Engine network attachment.
|
||||
|
||||
EXAMPLES
|
||||
To describe a network attachment, run:
|
||||
|
||||
$ gcloud compute network-attachments describe \
|
||||
NETWORK_ATTACHMENT_NAME --region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the network attachment to describe.
|
||||
|
||||
FLAGS
|
||||
--region=REGION
|
||||
Region of the network attachment to describe. If not specified, you
|
||||
might be prompted to select a region (interactive mode only).
|
||||
|
||||
To avoid prompting when this flag is omitted, you can set the
|
||||
compute/region property:
|
||||
|
||||
$ gcloud config set compute/region REGION
|
||||
|
||||
A list of regions can be fetched by running:
|
||||
|
||||
$ gcloud compute regions list
|
||||
|
||||
To unset the property, run:
|
||||
|
||||
$ gcloud config unset compute/region
|
||||
|
||||
Alternatively, the region can be stored in the environment variable
|
||||
CLOUDSDK_COMPUTE_REGION.
|
||||
|
||||
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 help for details.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute network-attachments describe
|
||||
|
||||
$ gcloud beta compute network-attachments describe
|
||||
|
||||
37
gcloud/compute/network-attachments/help
Normal file
37
gcloud/compute/network-attachments/help
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
NAME
|
||||
gcloud compute network-attachments - manage Compute Engine network
|
||||
attachment resources
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute network-attachments COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List, create, describe, update and delete network attachments.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
create
|
||||
Create a Google Compute Engine network attachment.
|
||||
|
||||
delete
|
||||
Delete one or more Google Compute Engine network attachments.
|
||||
|
||||
describe
|
||||
Describes a Google Compute Engine network attachment.
|
||||
|
||||
list
|
||||
List Google Compute Engine network attachments.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute network-attachments
|
||||
|
||||
$ gcloud beta compute network-attachments
|
||||
|
||||
88
gcloud/compute/network-attachments/list
Normal file
88
gcloud/compute/network-attachments/list
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
NAME
|
||||
gcloud compute network-attachments list - list Google Compute Engine
|
||||
network attachments
|
||||
|
||||
SYNOPSIS
|
||||
gcloud compute network-attachments list [NAME ...]
|
||||
[--regexp=REGEXP, -r REGEXP] [--regions=REGION,[REGION,...]]
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List Google Compute Engine network attachments.
|
||||
|
||||
EXAMPLES
|
||||
To list all the network attachments, run:
|
||||
|
||||
$ gcloud compute network-attachments list
|
||||
|
||||
To list the network attachments in given region(s), run:
|
||||
|
||||
$ gcloud compute network-attachments list --regions=region-1,region-2
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
[NAME ...]
|
||||
(DEPRECATED) If provided, show details for the specified names and/or
|
||||
URIs of resources.
|
||||
|
||||
Argument NAME is deprecated. Use --filter="name=( 'NAME' ... )"
|
||||
instead.
|
||||
|
||||
FLAGS
|
||||
--regexp=REGEXP, -r REGEXP
|
||||
(DEPRECATED) Regular expression to filter the names of the results on.
|
||||
Any names that do not match the entire regular expression will be
|
||||
filtered out.
|
||||
|
||||
Flag --regexp is deprecated. Use --filter="name~'REGEXP'" instead.
|
||||
|
||||
--regions=REGION,[REGION,...]
|
||||
If provided, only resources from the given regions are queried.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--uri
|
||||
Print a list of resource URIs instead of the default output, and change
|
||||
the command output to a list of URIs. If this flag is used with
|
||||
--format, the formatting is applied on this URI list. To display URIs
|
||||
alongside other keys instead, use the uri() transform.
|
||||
|
||||
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 help for details.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha compute network-attachments list
|
||||
|
||||
$ gcloud beta compute network-attachments list
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue