Skip to main content

beta_datasets

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

Overview

Namebeta_datasets
TypeResource
Idazure.ai_projects.beta_datasets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringServer-assigned unique identifier. Required.
created_atstring (date-time)The timestamp when the job was created, represented in Unix time (seconds since January 1, 1970). Required.
errorobjectError details — populated only on failure.
finished_atstring (date-time)The timestamp when the job was finished, represented in Unix time (seconds since January 1, 1970).
inputsobjectCaller-supplied inputs.
resultobjectResult produced on success.
statusstringCurrent lifecycle status. Required. Known values are: "queued", "in_progress", "succeeded", "failed", and "cancelled". (queued, in_progress, succeeded, failed, cancelled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_generation_jobselectjob_id, endpointGet a data generation job. Retrieves the specified data generation job and its current status.
list_generation_jobsselectendpointlimit, order, after, beforeList data generation jobs. Returns a list of data generation jobs.
create_generation_jobexecendpointOperation-IdCreate a data generation job. Submits a new data generation job for asynchronous execution.
delete_generation_jobexecjob_id, endpointDelete a data generation job. Removes the specified data generation job and its associated output.
cancel_generation_jobexecjob_id, endpointCancel a data generation job. Cancels the specified data generation job if it is still in progress.

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: )
job_idstringThe ID of the job to cancel. Required.
Operation-IdstringClient-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. Default value is None.
afterstring
beforestringA cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. Default value is None.
limitintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None.
orderstringSort order by the created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". Default value is None.

SELECT examples

Get a data generation job. Retrieves the specified data generation job and its current status.

SELECT
id,
created_at,
error,
finished_at,
inputs,
result,
status
FROM azure.ai_projects.beta_datasets
WHERE job_id = '{{ job_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Create a data generation job. Submits a new data generation job for asynchronous execution.

EXEC azure.ai_projects.beta_datasets.create_generation_job 
@endpoint='{{ endpoint }}' --required,
@Operation-Id='{{ Operation-Id }}'
@@json=
'{
"inputs": "{{ inputs }}"
}'
;