Resource: DeploymentGroup
A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "annotations": { string: string, ... }, "state": enum ( |
| Fields | |
|---|---|
name |
Identifier. The name of the deployment group. Format: 'projects/{projectId}/locations/{location}/deploymentGroups/{deploymentGroup}'. |
createTime |
Output only. Time when the deployment group was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Time when the deployment group was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. User-defined metadata for the deployment group. An object containing a list of |
annotations |
Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations. An object containing a list of |
state |
Output only. Current state of the deployment group. |
stateDescription |
Output only. Additional information regarding the current state. |
deploymentUnits[] |
The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned. |
provisioningState |
Output only. The provisioning state of the deployment group. |
provisioningStateDescription |
Output only. Additional information regarding the current provisioning state. |
provisioningError |
Output only. The error status of the deployment group provisioning or deprovisioning. |
State
Possible states of a deployment group.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
CREATING |
The deployment group is being created. |
ACTIVE |
The deployment group is healthy. |
UPDATING |
The deployment group is being updated. |
DELETING |
The deployment group is being deleted. |
FAILED |
The deployment group has encountered an unexpected error. |
SUSPENDED |
The deployment group is no longer being actively reconciled. This may be the result of recovering the project after deletion. |
DELETED |
The deployment group has been deleted. |
DeploymentUnit
A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a provisionDeploymentRequest.
| JSON representation |
|---|
{ "id": string, "dependencies": [ string ], "deployment": string } |
| Fields | |
|---|---|
id |
The id of the deployment unit. Must be unique within the deployment group. |
dependencies[] |
Required. The IDs of the deployment units within the deployment group that this unit depends on. |
deployment |
Optional. The name of the deployment to be provisioned. Format: 'projects/{projectId}/locations/{location}/deployments/{deployment}'. |
ProvisioningState
Possible provisioning states of a deployment group.
| Enums | |
|---|---|
PROVISIONING_STATE_UNSPECIFIED |
Unspecified provisioning state. |
PROVISIONING |
The deployment group is being provisioned. |
PROVISIONED |
The deployment group is provisioned. |
FAILED_TO_PROVISION |
The deployment group failed to be provisioned. |
DEPROVISIONING |
The deployment group is being deprovisioned. |
DEPROVISIONED |
The deployment group is deprovisioned. |
FAILED_TO_DEPROVISION |
The deployment group failed to be deprovisioned. |
Methods |
|
|---|---|
|
Creates a DeploymentGroup The newly created DeploymentGroup will be in the CREATING state and can be retrieved via Get and List calls. |
|
Deletes a DeploymentGroup |
|
Deprovisions a deployment group. |
|
Get a DeploymentGroup for a given project and location. |
|
List DeploymentGroups for a given project and location. |
|
Updates a DeploymentGroup |
|
Provisions a deployment group. |