Skip to main content

deployment_resource_pools

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

Overview

Namedeployment_resource_pools
TypeResource
Idgoogle.aiplatform.deployment_resource_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The resource name of the DeploymentResourcePool. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
createTimestring (google-datetime)Output only. Timestamp when this DeploymentResourcePool was created.
dedicatedResourcesobjectRequired. The underlying DedicatedResources that the DeploymentResourcePool uses. (id: GoogleCloudAiplatformV1DedicatedResources)
disableContainerLoggingbooleanIf the DeploymentResourcePool is deployed with custom-trained Models or AutoML Tabular Models, the container(s) of the DeploymentResourcePool will send stderr and stdout streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to Cloud Logging pricing. User can disable container logging by setting this flag to true.
encryptionSpecobjectCustomer-managed encryption key spec for a DeploymentResourcePool. If set, this DeploymentResourcePool will be secured by this key. Endpoints and the DeploymentResourcePool they deploy in need to have the same EncryptionSpec. (id: GoogleCloudAiplatformV1EncryptionSpec)
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
serviceAccountstringThe service account that the DeploymentResourcePool's container(s) run as. Specify the email address of the service account. If this service account is not specified, the container(s) run as a service account that doesn't have access to the resource project. Users deploying the Models to this DeploymentResourcePool must have the iam.serviceAccounts.actAs permission on this service account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, deploymentResourcePoolsIdGet a DeploymentResourcePool.
query_deployed_modelsselectprojectsId, locationsId, deploymentResourcePoolsIdpageSize, pageTokenList DeployedModels that have been deployed on this DeploymentResourcePool.
listselectprojectsId, locationsIdpageSize, pageTokenList DeploymentResourcePools in a location.
createinsertprojectsId, locationsIdCreate a DeploymentResourcePool.
patchupdateprojectsId, locationsId, deploymentResourcePoolsIdupdateMaskUpdate a DeploymentResourcePool.
deletedeleteprojectsId, locationsId, deploymentResourcePoolsIdDelete a DeploymentResourcePool.

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
deploymentResourcePoolsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Get a DeploymentResourcePool.

SELECT
name,
createTime,
dedicatedResources,
disableContainerLogging,
encryptionSpec,
satisfiesPzi,
satisfiesPzs,
serviceAccount
FROM google.aiplatform.deployment_resource_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deploymentResourcePoolsId = '{{ deploymentResourcePoolsId }}' -- required;

INSERT examples

Create a DeploymentResourcePool.

INSERT INTO google.aiplatform.deployment_resource_pools (
data__deploymentResourcePool,
data__deploymentResourcePoolId,
projectsId,
locationsId
)
SELECT
'{{ deploymentResourcePool }}',
'{{ deploymentResourcePoolId }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a DeploymentResourcePool.

UPDATE google.aiplatform.deployment_resource_pools
SET
data__name = '{{ name }}',
data__dedicatedResources = '{{ dedicatedResources }}',
data__encryptionSpec = '{{ encryptionSpec }}',
data__serviceAccount = '{{ serviceAccount }}',
data__disableContainerLogging = {{ disableContainerLogging }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND deploymentResourcePoolsId = '{{ deploymentResourcePoolsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete a DeploymentResourcePool.

DELETE FROM google.aiplatform.deployment_resource_pools
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND deploymentResourcePoolsId = '{{ deploymentResourcePoolsId }}' --required;