Skip to main content

sources_storage_inventory

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

Overview

Namesources_storage_inventory
TypeResource
Idgoogle.vmmigration.sources_storage_inventory

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
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.
resourcesarrayThe list of storage resources in the source.
updateTimestring (google-datetime)Output only. The timestamp when the source was last queried (if the result is from the cache).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_storage_inventoryselectprojectsId, locationsId, sourcesIdtype, forceRefresh, pageSize, pageTokenList remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources 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
typestring

SELECT examples

List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.

SELECT
nextPageToken,
resources,
updateTime
FROM google.vmmigration.sources_storage_inventory
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sourcesId = '{{ sourcesId }}' -- required
AND type = '{{ type }}'
AND forceRefresh = '{{ forceRefresh }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;