Skip to main content

agent_pools

Creates, updates, deletes, gets or lists an agent_pools resource.

Overview

Nameagent_pools
TypeResource
Idgoogle.storagetransfer.agent_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Specifies a unique string that identifies the agent pool. Format: projects/{project_id}/agentPools/{agent_pool_id}
bandwidthLimitobjectSpecifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'. (id: BandwidthLimit)
displayNamestringSpecifies the client-specified AgentPool description.
statestringOutput only. Specifies the state of the AgentPool.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, agentPoolsIdGets an agent pool.
listselectprojectsIdfilter, pageSize, pageTokenLists agent pools.
createinsertprojectsIdagentPoolIdCreates an agent pool resource.
patchupdateprojectsId, agentPoolsIdupdateMaskUpdates an existing agent pool resource.
deletedeleteprojectsId, agentPoolsIdDeletes an agent pool.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentPoolsIdstring
projectsIdstring
agentPoolIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets an agent pool.

SELECT
name,
bandwidthLimit,
displayName,
state
FROM google.storagetransfer.agent_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND agentPoolsId = '{{ agentPoolsId }}' -- required;

INSERT examples

Creates an agent pool resource.

INSERT INTO google.storagetransfer.agent_pools (
data__name,
data__displayName,
data__bandwidthLimit,
projectsId,
agentPoolId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ bandwidthLimit }}',
'{{ projectsId }}',
'{{ agentPoolId }}'
RETURNING
name,
bandwidthLimit,
displayName,
state
;

UPDATE examples

Updates an existing agent pool resource.

UPDATE google.storagetransfer.agent_pools
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__bandwidthLimit = '{{ bandwidthLimit }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND agentPoolsId = '{{ agentPoolsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
bandwidthLimit,
displayName,
state;

DELETE examples

Deletes an agent pool.

DELETE FROM google.storagetransfer.agent_pools
WHERE projectsId = '{{ projectsId }}' --required
AND agentPoolsId = '{{ agentPoolsId }}' --required;