Skip to main content

ai_agents_preset_templates

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

Overview​

Nameai_agents_preset_templates
TypeResource
Idovh.public_cloud.ai_agents_preset_templates

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringIdentifier to pass as targetSpec.template.id when creating an agent from this preset
namestringHuman-readable name of the preset
ai_endpointsbooleanWhether an agent created from this preset uses the OVHcloud AI Endpoints provider preset (wire: aiEndpoints)
ai_endpoints_integrated_authbooleanWhether the AI Endpoints credential is minted by this service rather than supplied by the caller (wire: aiEndpointsIntegratedAuth)
descriptionstringWhat this preset is for. Empty when the deployment states none.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttemplate_preset_id, project_idA preset is a ready-made configuration OVHcloud publishes, offered alongside the templates a caller writes for themselves. Pass its id as targetSpec.template.id on an agent creation to build an agent from it. The identifier carries a reserved prefix, so a client can tell a preset from a template of its own.
listselectproject_idx_pagination_cursor, x_pagination_sizePresets are ready-made configurations OVHcloud publishes, offered alongside the templates a caller writes for themselves. Pass a preset's id as targetSpec.template.id on an agent creation to build an agent from it. Identifiers carry a reserved prefix, so a client can tell a preset from a template of its own.

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
template_preset_idstringTemplate preset ID (wire: templatePresetId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

A preset is a ready-made configuration OVHcloud publishes, offered alongside the templates a caller writes for themselves. Pass its id as targetSpec.template.id on an agent creation to build an agent from it. The identifier carries a reserved prefix, so a client can tell a preset from a template of its own.

SELECT
id,
name,
ai_endpoints,
ai_endpoints_integrated_auth,
description
FROM ovh.public_cloud.ai_agents_preset_templates
WHERE template_preset_id = '{{ template_preset_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;