younifyd
Menu

Data Sources Create

Creates a new datasource.

POST/datasources

Use it in a workflow

  1. Add a step and choose the Azure AI Search connector.
  2. Pick the Data Sources Create action (under Service).
  3. Fill in the fields below, then reference the result from later steps as {{dataSourcesCreate.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

namestringrequired

The name of the datasource.

descriptionstring

The description of the datasource.

typestringrequired

Defines the type of a datasource.

One ofazuresqlcosmosdbazureblobazuretablemysqladlsgen2onelake

credentialsobjectrequired

Represents credentials that can be used to connect to a datasource.

connectionStringstring

The connection string for the datasource. For Azure SQL, Azure Blob, ADLS Gen 2 and Azure Table, this would be the connection string or resource ID if using managed identity. For CosmosDB this would be a formatted connection string specifying ApiKind or resource ID for managed identity. For Onelake files, connection string would be either the workspace guid or workspace FQDN; Onelake only supports managed identity connections. Set to `<unchanged>` (with brackets) if you don't want the connection string updated. Set to `<redacted>` if you want to remove the connection string value from the datasource.

containerobjectrequired

Represents information about the entity (such as Azure SQL table or CosmosDB collection) that will be indexed.

namestringrequired

The name of the table or view (for Azure SQL datasource), collection (for CosmosDB datasource), container (for Azure Blob and ADLS Gen 2 datasources), Azure Table (for Azure Table datasource), or lakehouse (for Onelake datasource) that will be indexed.

querystring

A query that is applied to this data container. For CosmosDB datasource query can flatten and filter data. For Azure Blob and ADLS Gen 2 query can filter by folders. For Azure Table query can filter by row data. For Onelake query can filter by folder or shortcut. Not supported by Azure SQL datasources.

dataChangeDetectionPolicyobject

Base type for data change detection policies.

@odata.typestringrequired

A URI fragment specifying the type of data change detection policy.

dataDeletionDetectionPolicyobject

Base type for data deletion detection policies.

@odata.typestringrequired

A URI fragment specifying the type of data deletion detection policy.

@odata.etagstring

The ETag of the data source.

encryptionKeyobject

A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest, such as indexes and synonym maps.

keyVaultKeyNamestringrequired

The name of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultKeyVersionstringrequired

The version of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultUristringrequired

The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`.

accessCredentialsobject2 fields

Credentials of a registered application created for your search service, used for authenticated access to the encryption keys stored in Azure Key Vault.

json
{
  "name": "string",
  "type": "azuresql",
  "credentials": {
    "connectionString": "string"
  },
  "container": {
    "name": "string",
    "query": "string"
  },
  "description": "string",
  "dataChangeDetectionPolicy": {
    "@odata.type": "string"
  },
  "dataDeletionDetectionPolicy": {
    "@odata.type": "string"
  },
  "@odata.etag": "string",
  "encryptionKey": {
    "keyVaultKeyName": "string",
    "keyVaultKeyVersion": "string",
    "keyVaultUri": "string",
    "accessCredentials": {
      "applicationId": "string",
      "applicationSecret": "string"
    }
  }
}

Response

Returns 201 with a any. Read it in later steps with {{dataSourcesCreate.response.data.<field>}}.

Need more? See the Azure AI Search guide for connection setup and behaviour shared by every action.