Resource: Workload
Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
| JSON representation |
|---|
{ "name" : string , "displayName" : string , "description" : string , "workloadReference" : { object ( |
| Fields | |
|---|---|
name
|
Identifier. The resource name of the Workload. Format: |
displayName
|
Optional. User-defined name for the Workload. Can have a maximum length of 63 characters. |
description
|
Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters. |
workloadReference
|
Output only. Reference of an underlying compute resource represented by the Workload. These are immutable. |
workloadProperties
|
Output only. Properties of an underlying compute resource represented by the Workload. These are immutable. |
discoveredWorkload
|
Required. Immutable. The resource name of the original discovered workload. |
attributes
|
Optional. Consumer provided attributes. |
createTime
|
Output only. Create time. 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. Update time. 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: |
uid
|
Output only. A universally unique identifier (UUID) for the |
state
|
Output only. Workload state. |
State
Workload state.
| Enums | |
|---|---|
STATE_UNSPECIFIED
|
Unspecified state. |
CREATING
|
The Workload is being created. |
ACTIVE
|
The Workload is ready. |
DELETING
|
The Workload is being deleted. |
DETACHED
|
The underlying compute resources have been deleted. |
Methods |
|
|---|---|
|
Creates a Workload in an Application. |
|
Deletes a Workload from an Application. |
|
Gets a Workload in an Application. |
|
Lists Workloads in an Application. |
|
Updates a Workload in an Application. |

