# Storage Transfer API

Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets.

## Service: storagetransfer.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://storagetransfer.googleapis.com/$discovery/rest?version=v1>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://storagetransfer.googleapis.com`

## REST Resource: [v1.googleServiceAccounts](https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/googleServiceAccounts)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/googleServiceAccounts/get` | `GET /v1/googleServiceAccounts/{projectId}` Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. |

## REST Resource: [v1.projects.agentPools](https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/create` | `POST /v1/projects/{projectId}/agentPools` Creates an agent pool resource. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/delete` | `DELETE /v1/{name=projects/*/agentPools/*}` Deletes an agent pool. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/get` | `GET /v1/{name=projects/*/agentPools/*}` Gets an agent pool. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/list` | `GET /v1/projects/{projectId}/agentPools` Lists agent pools. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/patch` | `PATCH /v1/{agentPool.name=projects/*/agentPools/*}` Updates an existing agent pool resource. |

## REST Resource: [v1.transferJobs](https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/create` | `POST /v1/transferJobs` Creates a transfer job that runs periodically. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/delete` | `DELETE /v1/{jobName=transferJobs/**}` Deletes a transfer job. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/get` | `GET /v1/{jobName=transferJobs/**}` Gets a transfer job. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/list` | `GET /v1/transferJobs` Lists transfer jobs. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/patch` | `PATCH /v1/{jobName=transferJobs/**}` Updates a transfer job. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/run` | `POST /v1/{jobName=transferJobs/**}:run` Starts a new operation for the specified transfer job. |

## REST Resource: [v1.transferOperations](https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/cancel` | `POST /v1/{name=transferOperations/**}:cancel` Cancels a transfer. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/get` | `GET /v1/{name=transferOperations/**}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/list` | `GET /v1/{name=transferOperations}` Lists transfer operations. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/pause` | `POST /v1/{name=transferOperations/**}:pause` Pauses a transfer operation. |
| `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/transferOperations/resume` | `POST /v1/{name=transferOperations/**}:resume` Resumes a transfer operation that is paused. |