# REST Resource: projects.agentPools

## Resource: AgentPool

Represents an agent pool.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "state": enum (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#State`), "bandwidthLimit": { object (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#BandwidthLimit`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Specifies a unique string that identifies the agent pool. Format: `projects/{projectId}/agentPools/{agentPoolId}` |
| `displayName` | `string` Specifies the client-specified AgentPool description. |
| `state` | ``enum (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#State`)`` Output only. Specifies the state of the AgentPool. |
| `bandwidthLimit` | ``object (`https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools#BandwidthLimit`)`` Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'. |

## State

The state of an AgentPool.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. This value is unused. |
| `CREATING` | This is an initialization state. During this stage, resources are allocated for the AgentPool. |
| `CREATED` | Determines that the AgentPool is created for use. At this state, Agents can join the AgentPool and participate in the transfer jobs in that pool. |
| `DELETING` | Determines that the AgentPool deletion has been initiated, and all the resources are scheduled to be cleaned up and freed. |

## BandwidthLimit

Specifies a bandwidth limit for an agent pool.

| JSON representation |
|---|
| ``` { "limitMbps": string } ``` |

| Fields ||
|---|---|
| `limitMbps` | `string (https://developers.google.com/discovery/v1/type-format format)` Bandwidth rate in megabytes per second, distributed across all the agents in the pool. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/create` | Creates an agent pool resource. |
| ### `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/delete` | Deletes an agent pool. |
| ### `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/get` | Gets an agent pool. |
| ### `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/list` | Lists agent pools. |
| ### `https://docs.cloud.google.com/storage-transfer/docs/reference/rest/v1/projects.agentPools/patch` | Updates an existing agent pool resource. |