# REST Resource: projects.locations.sources

- [Resource: Source](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#Source)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#Source.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#State)
- [Methods](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#METHODS_SUMMARY)

## Resource: Source

Source represents an object from which asset information is streamed to Migration Center.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "displayName": string, "description": string, "type": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/SourceType`), "priority": integer, "managed": boolean, "pendingFrameCount": integer, "errorFrameCount": integer, "state": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The full name of the source. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the source was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the source was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `displayName` | `string` User-friendly display name. |
| `description` | `string` Free-text description. |
| `type` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/SourceType`)`` Data source type. |
| `priority` | `integer` The information confidence of the source. The higher the value, the higher the confidence. |
| `managed` | `boolean` If `true`, the source is managed by other service(s). |
| `pendingFrameCount` | `integer` Output only. Number of frames that are still being processed. |
| `errorFrameCount` | `integer` Output only. The number of frames that were reported by the source and contained errors. |
| `state` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources#State`)`` Output only. The state of the source. |

## State

Enumerates possible states of a source.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unspecified. |
| `ACTIVE` | The source is active and ready to be used. |
| `DELETING` | In the process of being deleted. |
| `INVALID` | Source is in an invalid state. Asset frames reported to it will be ignored. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources/create` | Creates a new source in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources/delete` | Deletes a source. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources/get` | Gets the details of a source. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources/list` | Lists all the sources in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.sources/patch` | Updates the parameters of a source. |