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

# POST /v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/utilizationReports

`POST /v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/utilizationReports`

## Request

- Base URL: `https://vmmigration.googleapis.com`
- URL: `https://vmmigration.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/utilizationReports`
- 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`

Creates a new UtilizationReport.

## 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
- `requestId` string
- `utilizationReportId` string

## Request body

- UtilizationReport: Utilization report details the utilization (CPU, memory, etc.) of selected source VMs.
  - `createTime` string, google-datetime: Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed).
  - `displayName` string: The report display name, as assigned by the user.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `frameEndTime` string, google-datetime: Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14.
  - `name` string: Output only. The report unique name.
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'SUCCEEDED' | 'FAILED': Output only. Current state of the report.
  - `stateTime` string, google-datetime: Output only. The time the state was last set.
  - `timeFrame` 'TIME_FRAME_UNSPECIFIED' | 'WEEK' | 'MONTH' | 'YEAR': Time frame of the report.
  - `vmCount` integer: Output only. Total number of VMs included in the report.
  - `vms` VmUtilizationInfo[]: List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored.
    - `utilization` VmUtilizationMetrics: Utilization metrics values for a single VM.
      - `cpuAveragePercent` integer: Average CPU usage, percent.
      - `cpuMaxPercent` integer: Max CPU usage, percent.
      - `diskIoRateAverageKbps` string, int64: Average disk IO rate, in kilobytes per second.
      - `diskIoRateMaxKbps` string, int64: Max disk IO rate, in kilobytes per second.
      - `memoryAveragePercent` integer: Average memory usage, percent.
      - `memoryMaxPercent` integer: Max memory usage, percent.
      - `networkThroughputAverageKbps` string, int64: Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
      - `networkThroughputMaxKbps` string, int64: Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
    - `vmId` string: The VM's ID in the source.
    - `vmwareVmDetails` VmwareVmDetails: VmwareVmDetails describes a VM in vCenter.
      - `architecture` 'VM_ARCHITECTURE_UNSPECIFIED' | 'VM_ARCHITECTURE_X86_FAMILY' | 'VM_ARCHITECTURE_ARM64': Output only. The CPU architecture.
      - `bootOption` 'BOOT_OPTION_UNSPECIFIED' | 'EFI' | 'BIOS': Output only. The VM Boot Option.
      - `committedStorageMb` string, int64: The total size of the storage allocated to the VM in MB.
      - `cpuCount` integer: The number of cpus in the VM.
      - `datacenterDescription` string: The descriptive name of the vCenter's datacenter this VM is contained in.
      - `datacenterId` string: The id of the vCenter's datacenter this VM is contained in.
      - `diskCount` integer: The number of disks the VM has.
      - `displayName` string: The display name of the VM. Note that this is not necessarily unique.
      - `guestDescription` string: The VM's OS. See for example https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.
      - `memoryMb` integer: The size of the memory of the VM in MB.
      - `powerState` 'POWER_STATE_UNSPECIFIED' | 'ON' | 'OFF' | 'SUSPENDED': The power state of the VM at the moment list was taken.
      - `uuid` string: The unique identifier of the VM in vCenter.
      - `vmId` string: The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[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)
