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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
awsVmsobjectThe description of the VMs in a Source of type AWS. (id: AwsVmsDetails)
azureVmsobjectThe description of the VMs in a Source of type Azure. (id: AzureVmsDetails)
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.
updateTimestring (google-datetime)Output only. The timestamp when the source was last queried (if the result is from the cache).
vmwareVmsobjectThe description of the VMs in a Source of type Vmware. (id: VmwareVmsDetails)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_inventoryselectprojectsId, locationsId, sourcesIdforceRefresh, pageSize, pageTokenList 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
sourcesIdstring
forceRefreshboolean
pageSizeinteger (int32)
pageTokenstring

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