discovered_workloads
Creates, updates, deletes, gets or lists a discovered_workloads
resource.
Overview
Name | discovered_workloads |
Type | Resource |
Id | google.apphub.discovered_workloads |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" |
workloadProperties | object | Output only. Properties of an underlying compute resource represented by the Workload. These are immutable. (id: WorkloadProperties) |
workloadReference | object | Output only. Reference of an underlying compute resource represented by the Workload. These are immutable. (id: WorkloadReference) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" |
workloadProperties | object | Output only. Properties of an underlying compute resource represented by the Workload. These are immutable. (id: WorkloadProperties) |
workloadReference | object | Output only. Reference of an underlying compute resource represented by the Workload. These are immutable. (id: WorkloadReference) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , discoveredWorkloadsId | Gets a Discovered Workload in a host project and location. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists Discovered Workloads that can be added to an Application in a host project and location. |
lookup | exec | projectsId , locationsId | uri | Lists a Discovered Workload in a host project and location, with a given resource URI. |
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.
Name | Datatype | Description |
---|---|---|
discoveredWorkloadsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
uri | string |
SELECT
examples
- get
- list
Gets a Discovered Workload in a host project and location.
SELECT
name,
workloadProperties,
workloadReference
FROM google.apphub.discovered_workloads
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND discoveredWorkloadsId = '{{ discoveredWorkloadsId }}' -- required;
Lists Discovered Workloads that can be added to an Application in a host project and location.
SELECT
name,
workloadProperties,
workloadReference
FROM google.apphub.discovered_workloads
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
Lifecycle Methods
- lookup
Lists a Discovered Workload in a host project and location, with a given resource URI.
EXEC google.apphub.discovered_workloads.lookup
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@uri='{{ uri }}';