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

NameDatatypeDescription
namestringImmutable. The resource name of the DeploymentResourcePool. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
createTimestringOutput only. Timestamp when this DeploymentResourcePool was created.
dedicatedResourcesobjectA description of resources that are dedicated to a DeployedModel, and that need a higher degree of manual configuration.
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.
encryptionSpecobjectRepresents a customer-managed encryption key spec that can be applied to a top-level resource.
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

NameAccessible byRequired ParamsDescription
getSELECTdeploymentResourcePoolsId, locationsId, projectsIdGet a DeploymentResourcePool.
listSELECTlocationsId, projectsIdList DeploymentResourcePools in a location.
query_deployed_modelsSELECTdeploymentResourcePoolsId, locationsId, projectsIdList DeployedModels that have been deployed on this DeploymentResourcePool.
createINSERTlocationsId, projectsIdCreate a DeploymentResourcePool.
deleteDELETEdeploymentResourcePoolsId, locationsId, projectsIdDelete a DeploymentResourcePool.
patchUPDATEdeploymentResourcePoolsId, locationsId, projectsIdUpdate a DeploymentResourcePool.

SELECT examples

List DeploymentResourcePools in a location.

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

INSERT example

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

/*+ create */
INSERT INTO google.aiplatform.deployment_resource_pools (
locationsId,
projectsId,
deploymentResourcePoolId,
deploymentResourcePool
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ deploymentResourcePoolId }}',
'{{ deploymentResourcePool }}'
;

UPDATE example

Updates a deployment_resource_pools resource.

/*+ update */
UPDATE google.aiplatform.deployment_resource_pools
SET
serviceAccount = '{{ serviceAccount }}',
dedicatedResources = '{{ dedicatedResources }}',
disableContainerLogging = true|false,
encryptionSpec = '{{ encryptionSpec }}',
name = '{{ name }}'
WHERE
deploymentResourcePoolsId = '{{ deploymentResourcePoolsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified deployment_resource_pools resource.

/*+ delete */
DELETE FROM google.aiplatform.deployment_resource_pools
WHERE deploymentResourcePoolsId = '{{ deploymentResourcePoolsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';