Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idgoogle.storagetransfer.agent_pools

Fields

NameDatatypeDescription
namestringRequired. Specifies a unique string that identifies the agent pool. Format: projects/{project_id}/agentPools/{agent_pool_id}
bandwidthLimitobjectSpecifies a bandwidth limit for an agent pool.
displayNamestringSpecifies the client-specified AgentPool description.
statestringOutput only. Specifies the state of the AgentPool.

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentPoolsId, projectsIdGets an agent pool.
listSELECTprojectsIdLists agent pools.
createINSERTprojectsIdCreates an agent pool resource.
deleteDELETEagentPoolsId, projectsIdDeletes an agent pool.
patchUPDATEagentPoolsId, projectsIdUpdates an existing agent pool resource.

SELECT examples

Lists agent pools.

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

INSERT example

Use the following StackQL query and manifest file to create a new agent_pools resource.

/*+ create */
INSERT INTO google.storagetransfer.agent_pools (
projectsId,
name,
displayName,
bandwidthLimit
)
SELECT
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ bandwidthLimit }}'
;

UPDATE example

Updates a agent_pools resource.

/*+ update */
UPDATE google.storagetransfer.agent_pools
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
bandwidthLimit = '{{ bandwidthLimit }}'
WHERE
agentPoolsId = '{{ agentPoolsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified agent_pools resource.

/*+ delete */
DELETE FROM google.storagetransfer.agent_pools
WHERE agentPoolsId = '{{ agentPoolsId }}'
AND projectsId = '{{ projectsId }}';