Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idazure.ai_projects.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA unique identifier for the connection, generated by the service. Required.
namestringThe friendly name of the connection, provided by the user. Required.
credentialsobjectThe credentials used by the connection. Required.
isDefaultbooleanWhether the connection is tagged as the default connection of its type. Required.
metadataobjectMetadata of the connection. Required.
targetstringThe connection URL to be used for this service. Required.
typestringCategory of the connection. Required. Known values are: "AzureOpenAI", "AzureBlob", "AzureStorageAccount", "CognitiveSearch", "CosmosDB", "ApiKey", "AppConfig", "AppInsights", "CustomKeys", and "RemoteTool_Preview". (AzureOpenAI, AzureBlob, AzureStorageAccount, CognitiveSearch, CosmosDB, ApiKey, AppConfig, AppInsights, CustomKeys, RemoteTool_Preview)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectendpointconnectionType, defaultConnectionList connections. Returns the connections available in the current project, optionally filtered by type or default status.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
connectionTypestringLists connections of this specific type. Known values are: "AzureOpenAI", "AzureBlob", "AzureStorageAccount", "CognitiveSearch", "CosmosDB", "ApiKey", "AppConfig", "AppInsights", "CustomKeys", and "RemoteTool_Preview". Default value is None.
defaultConnectionbooleanLists connections that are default connections. Default value is None.

SELECT examples

List connections. Returns the connections available in the current project, optionally filtered by type or default status.

SELECT
id,
name,
credentials,
isDefault,
metadata,
target,
type
FROM azure.ai_projects.connections
WHERE endpoint = '{{ endpoint }}' -- required
AND connectionType = '{{ connectionType }}'
AND defaultConnection = '{{ defaultConnection }}'
;