Skip to main content

investigations

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

Overview

Nameinvestigations
TypeResource
Idazure.ai_discovery.investigations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID of the operation. Required.
errorobjectError object that describes the error when status is "Failed".
resultobjectThe result of the operation.
statusstringThe status of the operation. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", and "Canceled". (NotStarted, Running, Succeeded, Failed, Canceled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_operation_statusselectproject_name, investigation_name, operation_id, endpointGet the status of a long-running operation.
getselectproject_name, investigation_name, endpointFetch a Investigation by name.
listselectproject_name, endpointcreatedSinceList Investigation resources.
create_or_updateinsertproject_name, investigation_name, endpointUpdates an Investigation.
create_or_updatereplaceproject_name, investigation_name, endpointUpdates an Investigation.
deletedeleteproject_name, investigation_name, endpointDelete a Investigation.
create_or_replaceexecproject_name, investigation_name, endpointCreates an Investigation.
get_discovery_engineexecproject_name, investigation_name, endpointGet the discovery engine for an investigation.
update_discovery_engineexecproject_name, investigation_name, endpointUpdate the discovery engine for an investigation. This will create the discovery engine if it does not already exist.
get_discovery_engine_memoryexecproject_name, investigation_name, endpointskip, top, maxPageSizeList discovery engine working memory entries for an investigation.
start_discovery_engineexecproject_name, investigation_name, endpointStart the discovery engine for an investigation.
stop_discovery_engineexecproject_name, investigation_name, endpointStop the discovery engine for an investigation.

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: )
investigation_namestringThe investigation name. Required.
operation_idstringThe unique ID of the operation. Required.
project_namestringThe project name. Required.
createdSincestring (date-time)The oldest creation timestamp to keep. Default value is None.
maxPageSizeintegerBound the number of results that come back in one response. Default value is None.
skipintegerSkip results. Default value is None.
topintegerQuery the top results. Default value is None.

SELECT examples

Get the status of a long-running operation.

SELECT
id,
error,
result,
status
FROM azure.ai_discovery.investigations
WHERE project_name = '{{ project_name }}' -- required
AND investigation_name = '{{ investigation_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Updates an Investigation.

INSERT INTO azure.ai_discovery.investigations (
description,
tags,
displayName,
project_name,
investigation_name,
endpoint
)
SELECT
'{{ description }}',
'{{ tags }}',
'{{ displayName }}',
'{{ project_name }}',
'{{ investigation_name }}',
'{{ endpoint }}'
RETURNING
name,
createdAt,
createdBy,
createdByType,
description,
displayName,
lastModifiedAt,
lastModifiedBy,
lastModifiedByType,
projectName,
status,
tags
;

REPLACE examples

Updates an Investigation.

REPLACE azure.ai_discovery.investigations
SET
description = '{{ description }}',
tags = '{{ tags }}',
displayName = '{{ displayName }}'
WHERE
project_name = '{{ project_name }}' --required
AND investigation_name = '{{ investigation_name }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
name,
createdAt,
createdBy,
createdByType,
description,
displayName,
lastModifiedAt,
lastModifiedBy,
lastModifiedByType,
projectName,
status,
tags;

DELETE examples

Delete a Investigation.

DELETE FROM azure.ai_discovery.investigations
WHERE project_name = '{{ project_name }}' --required
AND investigation_name = '{{ investigation_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Creates an Investigation.

EXEC azure.ai_discovery.investigations.create_or_replace 
@project_name='{{ project_name }}' --required,
@investigation_name='{{ investigation_name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"description": "{{ description }}",
"tags": "{{ tags }}",
"displayName": "{{ displayName }}"
}'
;