sources_inventory
Creates, updates, deletes, gets or lists a sources_inventory
resource.
Overview
Name | sources_inventory |
Type | Resource |
Id | google.vmmigration.sources_inventory |
Fields
The following fields are returned by SELECT
queries:
- fetch_inventory
Successful response
Name | Datatype | Description |
---|---|---|
awsVms | object | The description of the VMs in a Source of type AWS. (id: AwsVmsDetails) |
azureVms | object | The description of the VMs in a Source of type Azure. (id: AzureVmsDetails) |
nextPageToken | string | Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. |
updateTime | string (google-datetime) | Output only. The timestamp when the source was last queried (if the result is from the cache). |
vmwareVms | object | The description of the VMs in a Source of type Vmware. (id: VmwareVmsDetails) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
fetch_inventory | select | projectsId , locationsId , sourcesId | forceRefresh , pageSize , pageToken | List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
sourcesId | string | |
forceRefresh | boolean | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- fetch_inventory
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
SELECT
awsVms,
azureVms,
nextPageToken,
updateTime,
vmwareVms
FROM google.vmmigration.sources_inventory
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sourcesId = '{{ sourcesId }}' -- required
AND forceRefresh = '{{ forceRefresh }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';