Skip to main content

sources_inventory

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

Overview

Namesources_inventory
TypeResource
Idgoogle.vmmigration.sources_inventory

Fields

NameDatatypeDescription
awsVmsobjectAWSVmsDetails describes VMs in AWS.
azureVmsobjectAzureVmsDetails describes VMs in Azure.
nextPageTokenstringOutput 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.
updateTimestringOutput only. The timestamp when the source was last queried (if the result is from the cache).
vmwareVmsobjectVmwareVmsDetails describes VMs in vCenter.

Methods

NameAccessible byRequired ParamsDescription
fetch_inventorySELECTlocationsId, projectsId, sourcesIdList 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 examples

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 locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sourcesId = '{{ sourcesId }}';