---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory

`GET /v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory`

## Request

- Base URL: `https://vmmigration.googleapis.com`
- URL: `https://vmmigration.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

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.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `sourcesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `forceRefresh` boolean
- `pageSize` integer
- `pageToken` string
- `type` 'STORAGE_TYPE_UNSPECIFIED' | 'DISKS' | 'SNAPSHOTS'

## Response `200`

Successful response

- FetchStorageInventoryResponse: Response message for fetchStorageInventory.
  - `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` SourceStorageResource[]: The list of storage resources in the source.
    - `awsDiskDetails` AwsSourceDiskDetails: Represents the source AWS Disk details.
      - `diskType` 'TYPE_UNSPECIFIED' | 'GP2' | 'GP3' | 'IO1' | 'IO2' | 'ST1' | 'SC1' | 'STANDARD': Optional. Output only. Disk type.
      - `sizeGib` string, int64: Output only. Size in GiB.
      - `tags` object: Optional. Output only. A map of AWS volume tags.
      - `volumeId` string: Required. AWS volume ID.
  - `updateTime` string, google-datetime: Output only. The timestamp when the source was last queried (if the result is from the cache).

---

[API](https://skmtc.dev/google/apis/vmmigration.md) - [All operations](https://skmtc.dev/google/apis/vmmigration/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmmigration/revisions/dc534bc294f6?raw)
