sources_inventory
Creates, updates, deletes, gets or lists a sources_inventory
resource.
Overview
Name | sources_inventory |
Type | Resource |
Id | google.vmmigration.sources_inventory |
Fields
Name | Datatype | Description |
---|---|---|
awsVms | object | AWSVmsDetails describes VMs in AWS. |
azureVms | object | AzureVmsDetails describes VMs in Azure. |
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 | Output only. The timestamp when the source was last queried (if the result is from the cache). |
vmwareVms | object | VmwareVmsDetails describes VMs in vCenter. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
fetch_inventory | SELECT | locationsId, projectsId, sourcesId | 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
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 }}';