Skip to main content

open_ais

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

Overview

Nameopen_ais
TypeResource
Idazure_isv.elastic.open_ais

Fields

NameDatatypeDescription
idtextThe id of the integration.
nametextName of the integration.
integrationNametextfield from the properties object
keytextfield from the properties object
last_refresh_attextfield from the properties object
monitorNametextfield from the properties object
open_ai_connector_idtextfield from the properties object
open_ai_resource_endpointtextfield from the properties object
open_ai_resource_idtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the integration.

Methods

NameAccessible byRequired ParamsDescription
getSELECTintegrationName, monitorName, resourceGroupName, subscriptionId
listSELECTmonitorName, resourceGroupName, subscriptionId
create_or_updateINSERTintegrationName, monitorName, resourceGroupName, subscriptionId
deleteDELETEintegrationName, monitorName, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
integrationName,
key,
last_refresh_at,
monitorName,
open_ai_connector_id,
open_ai_resource_endpoint,
open_ai_resource_id,
resourceGroupName,
subscriptionId,
type
FROM azure_isv.elastic.vw_open_ais
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.elastic.open_ais (
integrationName,
monitorName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ integrationName }}',
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified open_ais resource.

/*+ delete */
DELETE FROM azure_isv.elastic.open_ais
WHERE integrationName = '{{ integrationName }}'
AND monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';