- NAME
-
- gcloud backup-dr service-config init - initialize a Backup and DR Service configuration
- SYNOPSIS
-
-
gcloud backup-dr service-config init
--location
=LOCATION
--resource-type
=RESOURCE_TYPE
[--no-async
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Initialize a Backup and DR Service configuration.
- EXAMPLES
-
To initialize a new service configuration in location
and projectMY_LOCATION
for resource typeMY_PROJECT
, run:MY_RESOURCE_TYPE
gcloud backup-dr service-config init --project=MY_PROJECT --location=MY_LOCATION --resource-type=MY_RESOURCE_TYPE
- REQUIRED FLAGS
-
-
Location resource - The location for which the service configuration should be
created. This represents a Cloud 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
--location
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.
--location
=LOCATION
-
ID of the location or fully qualified identifier for the location.
To set the
location
attribute:-
provide the argument
--location
on the command line.
-
provide the argument
-
provide the argument
--resource-type
=RESOURCE_TYPE
- The resource type to which the default service configuration will be applied. Examples include, "compute.<UNIVERSE_DOMAIN>.com/Instance"
-
Location resource - The location for which the service configuration should be
created. This represents a Cloud resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.
- OPTIONAL FLAGS
-
--no-async
- Wait for the operation in progress to complete.
- 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. - API REFERENCE
- This command uses the backupdr/v1 API. The full documentation for this API can be found at: https://cloud.google.com/backup-disaster-recovery
- BRIEF
- Initializes a Backup and DR Service configuration.
- NOTES
-
This variant is also available:
gcloud alpha backup-dr service-config init
gcloud backup-dr service-config init
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-09-16 UTC.