gcloud beta saas-runtime unit-operations create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta saas-runtime unit-operations create - create a Unit Operation
- SYNOPSIS
gcloud beta saas-runtime unit-operations createUNIT_OPERATION--unit=UNIT[--cancel][--labels=[LABELS,…]][--location=LOCATION][--parent-unit-operation=PARENT_UNIT_OPERATION][--rollout=ROLLOUT][--schedule-start-time=SCHEDULE_START_TIME][--deprovision|--provision--provision-input-variables=[type=TYPE],[value=VALUE],[variable=VARIABLE]--provision-release=PROVISION_RELEASE|--upgrade--upgrade-input-variables=[type=TYPE],[value=VALUE],[variable=VARIABLE]--upgrade-release=UPGRADE_RELEASE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Create a Unit Operation- EXAMPLES
- To create the Unit Operation, run:
gcloudbetasaas-runtimeunit-operationscreate - POSITIONAL ARGUMENTS
- UnitOperation resource - Identifier. The resource name (full URI of theresource) following the standard naming scheme:
"projects/{project}/locations/{location}/unitOperations/{unitOperation}"ThisrepresentsaCloudresource.(NOTE)Someattributesarenotgivenargumentsinthisgroupbutcanbesetinotherways.
To set the
projectattribute:- provide the argument
unit_operationon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
unit_operationon the command line with afully specified name; - provide the argument
--locationon the command line.
This must be specified.
UNIT_OPERATION- ID of the unitOperation or fully qualified identifier for the unitOperation.
To set the
unit_operationattribute:- provide the argument
unit_operationon the command line.
- provide the argument
- provide the argument
- UnitOperation resource - Identifier. The resource name (full URI of theresource) following the standard naming scheme:
- REQUIRED FLAGS
- Unit resource - The Unit a given Unit Operation will act upon. This represents aCloud resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
To set the
projectattribute:- provide the argument
--uniton the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--uniton the command line with a fullyspecified name; - provide the argument
--locationon the command line.
This must be specified.
--unit=UNIT- ID of the unit or fully qualified identifier for the unit.
To set the
unitattribute:- provide the argument
--uniton the command line.
- provide the argument
- provide the argument
- Unit resource - The Unit a given Unit Operation will act upon. This represents aCloud resource. (NOTE) Some attributes are not given arguments in this group butcan be set in other ways.
- OPTIONAL FLAGS
--cancel- When true, attempt to cancel the operation. Cancellation may fail if theoperation is already executing. (Optional)
--labels=[LABELS,…]- The labels on the resource, which can be used for categorization. similar toKubernetes resource labels.
KEY- Keys must start with a lowercase character and contain only hyphens(
-), underscores (_), lowercase characters, andnumbers. VALUE- Values must contain only hyphens (
-), underscores (_),lowercase characters, and numbers.
Shorthand Example:--labels=string=string
JSON Example:--labels='{"string": "string"}'
File Example:--labels=path_to_file.(yaml|json)
--location=LOCATION- For resources [parent-unit-operation, provision-release, rollout, unit,unit_operation, upgrade-release], provides fallback value for resource locationattribute. When the resource's full URI path is not provided, location willfallback to this flag value.
- ParentUnitOperation resource - Reference to parent resource: Unit Operation. Ifan operation needs to create other operations as part of its workflow, each ofthe child operations should have this field set to the parent. This can be usedfor tracing. (Optional) This represents a Cloud resource. (NOTE) Some attributesare not given arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--parent-unit-operationon the command linewith a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--parent-unit-operationon the command linewith a fully specified name; - provide the argument
--locationon the command line.
--parent-unit-operation=PARENT_UNIT_OPERATION- ID of the parentUnitOperation or fully qualified identifier for theparentUnitOperation.
To set the
unit-operationattribute:- provide the argument
--parent-unit-operationon the command line.
- provide the argument
- provide the argument
- RolloutId resource - Specifies which rollout created this Unit Operation. Thiscannot be modified and is used for filtering purposes only. If a dependent unitand unit operation are created as part of another unit operation, they will usethe same rolloutId. This represents a Cloud resource. (NOTE) Some attributes arenot given arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--rollouton the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--rollouton the command line with a fullyspecified name; - provide the argument
--locationon the command line.
--rollout=ROLLOUT- ID of the rolloutId or fully qualified identifier for the rolloutId.
To set the
rolloutattribute:- provide the argument
--rollouton the command line.
- provide the argument
- provide the argument
- A time specification to schedule the maintenance.
--schedule-start-time=SCHEDULE_START_TIME- Start of operation. If not set, will be set to the start of the next window.(optional)
- Arguments for the unit operation type.
At most one of these can be specified:
- Deprovision is the unit operation that deprovision the underlying resourcesrepresented by a Unit. Can only execute if the Unit is currently provisioned.
--deprovision- This flag can be used to specify an empty deprovision operation.
- Provision is the unit operation that provision the underlying resourcesrepresented by a Unit. Can only execute if the Unit is not currentlyprovisioned.
--provision- This flag can be used to specify an empty provision operation.
--provision-input-variables=[type=TYPE],[value=VALUE],[variable=VARIABLE]- Set of input variables. Maximum 100. (optional).
type- Name of a supported variable type. Supported types are string, int, bool.
value- String encoded value for the variable.
variable- Name of the variable from actuation configs.
Shorthand Example:--provision-input-variables=type=string,value=string,variable=string--provision-input-variables=type=string,value=string,variable=string
JSON Example:--provision-input-variables='[{"type": "string", "value": "string", "variable": "string"}]'
File Example:--provision-input-variables=path_to_file.(yaml|json)
- Release resource - Reference to the Release object to use for the Unit.(optional). This represents a Cloud resource. (NOTE) Some attributes are notgiven arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--provision-releaseon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--provision-releaseon the command line with afully specified name; - provide the argument
--locationon the command line.
--provision-release=PROVISION_RELEASE- ID of the release or fully qualified identifier for the release.
To set the
releaseattribute:- provide the argument
--provision-releaseon the command line.
- provide the argument
- provide the argument
- Upgrade is the unit operation that upgrades a provisioned unit, which may alsoinclude the underlying resources represented by a Unit. Can only execute if theUnit is currently provisioned.
--upgrade- This flag can be used to specify an empty upgrade operation.
--upgrade-input-variables=[type=TYPE],[value=VALUE],[variable=VARIABLE]- Set of input variables. Maximum 100. (optional).
type- Name of a supported variable type. Supported types are string, int, bool.
value- String encoded value for the variable.
variable- Name of the variable from actuation configs.
Shorthand Example:--upgrade-input-variables=type=string,value=string,variable=string--upgrade-input-variables=type=string,value=string,variable=string
JSON Example:--upgrade-input-variables='[{"type": "string", "value": "string", "variable": "string"}]'
File Example:--upgrade-input-variables=path_to_file.(yaml|json)
- Release resource - Reference to the Release object to use for the Unit.(optional). This represents a Cloud resource. (NOTE) Some attributes are notgiven arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
--upgrade-releaseon the command line with afully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
--upgrade-releaseon the command line with afully specified name; - provide the argument
--locationon the command line.
--upgrade-release=UPGRADE_RELEASE- ID of the release or fully qualified identifier for the release.
To set the
releaseattribute:- provide the argument
--upgrade-releaseon the command line.
- provide the argument
- provide the argument
- Deprovision is the unit operation that deprovision the underlying resourcesrepresented by a Unit. Can only execute if the Unit is currently provisioned.
- 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 helpfor details. - API REFERENCE
- This command uses the
saasservicemgmt/v1beta1API. The fulldocumentation for this API can be found at:https://cloud.google.com/saas-runtime/docs - NOTES
- This command is currently in beta and might change without notice.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-07 UTC.