Skip to main content

workloads

Creates, updates, deletes, gets or lists a workloads resource.

Overview

Nameworkloads
TypeResource
Idgoogle.cloudcontrolspartner.workloads

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
createTimestring (google-datetime)Output only. Time the resource was created.
folderstringOutput only. The name of container folder of the assured workload
folderIdstring (int64)Output only. Folder id this workload is associated with
isOnboardedbooleanIndicates whether a workload is fully onboarded.
keyManagementProjectIdstringThe project id of the key management project for the workload
locationstringThe Google Cloud location of the workload
partnerstringPartner associated with this workload.
workloadOnboardingStateobjectContainer for workload onboarding steps. (id: WorkloadOnboardingState)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganizationsId, locationsId, customersId, workloadsIdGets details of a single workload
listselectorganizationsId, locationsId, customersIdpageSize, pageToken, filter, orderByLists customer workloads for a given customer org id

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
customersIdstring
locationsIdstring
organizationsIdstring
workloadsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a single workload

SELECT
name,
createTime,
folder,
folderId,
isOnboarded,
keyManagementProjectId,
location,
partner,
workloadOnboardingState
FROM google.cloudcontrolspartner.workloads
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND customersId = '{{ customersId }}' -- required
AND workloadsId = '{{ workloadsId }}' -- required;