1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-09 19:06:53 +00:00
gcloud-help/gcloud/beta/source-manager/instances/create
2026-04-08 12:08:12 +00:00

156 lines
5.7 KiB
Text

NAME
gcloud beta source-manager instances create - create a Secure Source
Manager instance
SYNOPSIS
gcloud beta source-manager instances create (INSTANCE : --region=REGION)
[--async] [--enable-workforce-identity-federation]
[--endpoint-mode=ENDPOINT_MODE] [--kms-key=KMS_KEY]
[--max-wait=MAX_WAIT; default="60m"]
[--is-private : --ca-pool=CA_POOL --psc-allowed-projects=[PROJECTS,...]
--custom-hostname-api=CUSTOM_HOSTNAME_API
--custom-hostname-git-http=CUSTOM_HOSTNAME_GIT_HTTP
--custom-hostname-git-ssh=CUSTOM_HOSTNAME_GIT_SSH
--custom-hostname-html=CUSTOM_HOSTNAME_HTML] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Create a Secure Source Manager instance.
EXAMPLES
To create a Secure Source Manager instance named 'my-instance' in location
'us-central1' asynchronously, run:
$ gcloud beta source-manager instances create my-instance \
--region=us-central1
To create a Secure Source Manager instance named 'my-instance' in location
'us-central1' synchronously, and wait a maximum of 30 minutes for it to
finish being created, run:
$ gcloud beta source-manager instances create my-instance \
--region=us-central1 --no-async --max-wait=30m
POSITIONAL ARGUMENTS
Instance resource - The Secure Source Manager instance to create. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the project attribute:
◆ provide the argument instance on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
INSTANCE
ID of the instance or fully qualified identifier for the instance.
To set the instance attribute:
▸ provide the argument instance on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--region=REGION
Secure Source Manager location.
To set the region attribute:
▸ provide the argument instance on the command line with a fully
specified name;
▸ provide the argument --region on the command line.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete. The default is True. Enabled by default, use --no-async to
disable.
--enable-workforce-identity-federation
Bool indicator for workforce identity federation instance.
--endpoint-mode=ENDPOINT_MODE
Specifies endpoint mode for a given command. Regional endpoints provide
enhanced data residency and reliability by ensuring your request is
handled entirely within the specified Google Cloud region. This differs
from global endpoints, which may process parts of the request outside
the target region. Overrides the default regional/endpoint_mode
property value for this command invocation. ENDPOINT_MODE must be one
of:
global
(Default) Use global rather than regional endpoints.
regional
Only use regional endpoints. An error will be raised if a regional
endpoint is not available for a given command.
regional-preferred
Use regional endpoints when available, otherwise use global
endpoints. Recommended for most users.
--kms-key=KMS_KEY
KMS key used to encrypt instance optionally.
--max-wait=MAX_WAIT; default="60m"
Time to synchronously wait for the operation to complete, after which
the operation continues asynchronously. Ignored if --no-async isn't
specified. See $ gcloud topic datetimes for information on time
formats.
Private instance configuration.
--is-private
Bool indicator for private instance.
This flag argument must be specified if any of the other arguments in
this group are specified.
--ca-pool=CA_POOL
CA Pool path for private instance.
--psc-allowed-projects=[PROJECTS,...]
List of additional projects allowed to connect to the instance via
private service connect.
Custom hostname configuration.
--custom-hostname-api=CUSTOM_HOSTNAME_API
Custom hostname for api.
This flag argument must be specified if any of the other arguments in
this group are specified.
--custom-hostname-git-http=CUSTOM_HOSTNAME_GIT_HTTP
Custom hostname for git http.
This flag argument must be specified if any of the other arguments in
this group are specified.
--custom-hostname-git-ssh=CUSTOM_HOSTNAME_GIT_SSH
Custom hostname for git ssh.
This flag argument must be specified if any of the other arguments in
this group are specified.
--custom-hostname-html=CUSTOM_HOSTNAME_HTML
Custom hostname for html.
This flag argument must be specified if any of the other arguments in
this group are specified.
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
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud source-manager instances create
$ gcloud alpha source-manager instances create