sources_storage_inventory
Creates, updates, deletes, gets or lists a sources_storage_inventory resource.
Overview
| Name | sources_storage_inventory |
| Type | Resource |
| Id | google.vmmigration.sources_storage_inventory |
Fields
The following fields are returned by SELECT queries:
- fetch_storage_inventory
| Name | Datatype | Description |
|---|---|---|
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. |
resources | array | The list of storage resources in the source. |
updateTime | string (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
fetch_storage_inventory | select | projectsId, locationsId, sourcesId | type, forceRefresh, pageSize, pageToken | 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. |
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 | |
type | string |
SELECT examples
- fetch_storage_inventory
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 }}'
;