deployment_gpu_specs
Creates, updates, deletes, gets or lists a deployment_gpu_specs resource.
Overview​
| Name | deployment_gpu_specs |
| Type | Resource |
| Id | nvidia.nvcf_deployments.deployment_gpu_specs |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update | update | deployment_id, gpu_spec_id | Updates the GPU specification of the specified function version's deployment. It's important to note that GPU type and backend configurations cannot be modified through this endpoint. If the specified function is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header. |
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.
| Name | Datatype | Description |
|---|---|---|
deployment_id | string (uuid) | Deployment id |
gpu_spec_id | string (uuid) | GPU Specification id |
UPDATE examples​
- update
Updates the GPU specification of the specified function version's deployment. It's important to note that GPU type and backend configurations cannot be modified through this endpoint. If the specified function is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
UPDATE nvidia.nvcf_deployments.deployment_gpu_specs
SET
autoscaling_configuration = '{{ autoscaling_configuration }}',
autoscaling_configuration_policy = '{{ autoscaling_configuration_policy }}',
max_instances = {{ max_instances }},
min_instances = {{ min_instances }}
WHERE
deployment_id = '{{ deployment_id }}' --required
AND gpu_spec_id = '{{ gpu_spec_id }}' --required
RETURNING
gpu_specification;