Table of Contents

Interface ISqlResourcesOperations

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

SqlResourcesOperations operations.

public interface ISqlResourcesOperations
Extension Methods

Methods

BeginCreateUpdateSqlContainerWithHttpMessagesAsync(string, string, string, string, SqlContainerCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL container

Task<AzureOperationResponse<SqlContainerGetResultsInner>> BeginCreateUpdateSqlContainerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

createUpdateSqlContainerParameters SqlContainerCreateUpdateParameters

The parameters to provide for the current SQL container.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlContainerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginCreateUpdateSqlDatabaseWithHttpMessagesAsync(string, string, string, SqlDatabaseCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL database

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>> BeginCreateUpdateSqlDatabaseWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

createUpdateSqlDatabaseParameters SqlDatabaseCreateUpdateParameters

The parameters to provide for the current SQL database.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginCreateUpdateSqlStoredProcedureWithHttpMessagesAsync(string, string, string, string, string, SqlStoredProcedureCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL storedProcedure

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>> BeginCreateUpdateSqlStoredProcedureWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

storedProcedureName string

Cosmos DB storedProcedure name.

createUpdateSqlStoredProcedureParameters SqlStoredProcedureCreateUpdateParameters

The parameters to provide for the current SQL storedProcedure.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginCreateUpdateSqlTriggerWithHttpMessagesAsync(string, string, string, string, string, SqlTriggerCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL trigger

Task<AzureOperationResponse<SqlTriggerGetResultsInner>> BeginCreateUpdateSqlTriggerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

triggerName string

Cosmos DB trigger name.

createUpdateSqlTriggerParameters SqlTriggerCreateUpdateParameters

The parameters to provide for the current SQL trigger.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlTriggerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginCreateUpdateSqlUserDefinedFunctionWithHttpMessagesAsync(string, string, string, string, string, SqlUserDefinedFunctionCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL userDefinedFunction

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>> BeginCreateUpdateSqlUserDefinedFunctionWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

userDefinedFunctionName string

Cosmos DB userDefinedFunction name.

createUpdateSqlUserDefinedFunctionParameters SqlUserDefinedFunctionCreateUpdateParameters

The parameters to provide for the current SQL userDefinedFunction.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginDeleteSqlContainerWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL container.

Task<AzureOperationResponse> BeginDeleteSqlContainerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginDeleteSqlDatabaseWithHttpMessagesAsync(string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL database.

Task<AzureOperationResponse> BeginDeleteSqlDatabaseWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginDeleteSqlStoredProcedureWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL storedProcedure.

Task<AzureOperationResponse> BeginDeleteSqlStoredProcedureWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

storedProcedureName string

Cosmos DB storedProcedure name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginDeleteSqlTriggerWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL trigger.

Task<AzureOperationResponse> BeginDeleteSqlTriggerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

triggerName string

Cosmos DB trigger name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginDeleteSqlUserDefinedFunctionWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL userDefinedFunction.

Task<AzureOperationResponse> BeginDeleteSqlUserDefinedFunctionWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

userDefinedFunctionName string

Cosmos DB userDefinedFunction name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginUpdateSqlContainerThroughputWithHttpMessagesAsync(string, string, string, string, ThroughputSettingsUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Update RUs per second of an Azure Cosmos DB SQL container

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> BeginUpdateSqlContainerThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ThroughputSettingsUpdateParameters updateThroughputParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

updateThroughputParameters ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current SQL container.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

BeginUpdateSqlDatabaseThroughputWithHttpMessagesAsync(string, string, string, ThroughputSettingsUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Update RUs per second of an Azure Cosmos DB SQL database

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> BeginUpdateSqlDatabaseThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

updateThroughputParameters ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current SQL database.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

CreateUpdateSqlContainerWithHttpMessagesAsync(string, string, string, string, SqlContainerCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL container

Task<AzureOperationResponse<SqlContainerGetResultsInner>> CreateUpdateSqlContainerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

createUpdateSqlContainerParameters SqlContainerCreateUpdateParameters

The parameters to provide for the current SQL container.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlContainerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

CreateUpdateSqlDatabaseWithHttpMessagesAsync(string, string, string, SqlDatabaseCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL database

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>> CreateUpdateSqlDatabaseWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

createUpdateSqlDatabaseParameters SqlDatabaseCreateUpdateParameters

The parameters to provide for the current SQL database.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

CreateUpdateSqlStoredProcedureWithHttpMessagesAsync(string, string, string, string, string, SqlStoredProcedureCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL storedProcedure

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>> CreateUpdateSqlStoredProcedureWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

storedProcedureName string

Cosmos DB storedProcedure name.

createUpdateSqlStoredProcedureParameters SqlStoredProcedureCreateUpdateParameters

The parameters to provide for the current SQL storedProcedure.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

CreateUpdateSqlTriggerWithHttpMessagesAsync(string, string, string, string, string, SqlTriggerCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL trigger

Task<AzureOperationResponse<SqlTriggerGetResultsInner>> CreateUpdateSqlTriggerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

triggerName string

Cosmos DB trigger name.

createUpdateSqlTriggerParameters SqlTriggerCreateUpdateParameters

The parameters to provide for the current SQL trigger.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlTriggerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

CreateUpdateSqlUserDefinedFunctionWithHttpMessagesAsync(string, string, string, string, string, SqlUserDefinedFunctionCreateUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Create or update an Azure Cosmos DB SQL userDefinedFunction

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>> CreateUpdateSqlUserDefinedFunctionWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

userDefinedFunctionName string

Cosmos DB userDefinedFunction name.

createUpdateSqlUserDefinedFunctionParameters SqlUserDefinedFunctionCreateUpdateParameters

The parameters to provide for the current SQL userDefinedFunction.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

DeleteSqlContainerWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL container.

Task<AzureOperationResponse> DeleteSqlContainerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

DeleteSqlDatabaseWithHttpMessagesAsync(string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL database.

Task<AzureOperationResponse> DeleteSqlDatabaseWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

DeleteSqlStoredProcedureWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL storedProcedure.

Task<AzureOperationResponse> DeleteSqlStoredProcedureWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

storedProcedureName string

Cosmos DB storedProcedure name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

DeleteSqlTriggerWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL trigger.

Task<AzureOperationResponse> DeleteSqlTriggerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

triggerName string

Cosmos DB trigger name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

DeleteSqlUserDefinedFunctionWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Deletes an existing Azure Cosmos DB SQL userDefinedFunction.

Task<AzureOperationResponse> DeleteSqlUserDefinedFunctionWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

userDefinedFunctionName string

Cosmos DB userDefinedFunction name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlContainerThroughputWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> GetSqlContainerThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlContainerWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the SQL container under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<SqlContainerGetResultsInner>> GetSqlContainerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlContainerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlDatabaseThroughputWithHttpMessagesAsync(string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> GetSqlDatabaseThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlDatabaseWithHttpMessagesAsync(string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>> GetSqlDatabaseWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlDatabaseGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlStoredProcedureWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>> GetSqlStoredProcedureWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

storedProcedureName string

Cosmos DB storedProcedure name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlStoredProcedureGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlTriggerWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the SQL trigger under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<SqlTriggerGetResultsInner>> GetSqlTriggerWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

triggerName string

Cosmos DB trigger name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlTriggerGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

GetSqlUserDefinedFunctionWithHttpMessagesAsync(string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>> GetSqlUserDefinedFunctionWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

userDefinedFunctionName string

Cosmos DB userDefinedFunction name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<SqlUserDefinedFunctionGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

ListSqlContainersWithHttpMessagesAsync(string, string, string, Dictionary<string, List<string>>, CancellationToken)

Lists the SQL container under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<IEnumerable<SqlContainerGetResultsInner>>> ListSqlContainersWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<IEnumerable<SqlContainerGetResultsInner>>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

ListSqlDatabasesWithHttpMessagesAsync(string, string, Dictionary<string, List<string>>, CancellationToken)

Lists the SQL databases under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<IEnumerable<SqlDatabaseGetResultsInner>>> ListSqlDatabasesWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<IEnumerable<SqlDatabaseGetResultsInner>>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

ListSqlStoredProceduresWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<IEnumerable<SqlStoredProcedureGetResultsInner>>> ListSqlStoredProceduresWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<IEnumerable<SqlStoredProcedureGetResultsInner>>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

ListSqlTriggersWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Lists the SQL trigger under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<IEnumerable<SqlTriggerGetResultsInner>>> ListSqlTriggersWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<IEnumerable<SqlTriggerGetResultsInner>>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

ListSqlUserDefinedFunctionsWithHttpMessagesAsync(string, string, string, string, Dictionary<string, List<string>>, CancellationToken)

Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.

Task<AzureOperationResponse<IEnumerable<SqlUserDefinedFunctionGetResultsInner>>> ListSqlUserDefinedFunctionsWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<IEnumerable<SqlUserDefinedFunctionGetResultsInner>>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

UpdateSqlContainerThroughputWithHttpMessagesAsync(string, string, string, string, ThroughputSettingsUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Update RUs per second of an Azure Cosmos DB SQL container

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> UpdateSqlContainerThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ThroughputSettingsUpdateParameters updateThroughputParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

containerName string

Cosmos DB container name.

updateThroughputParameters ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current SQL container.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

UpdateSqlDatabaseThroughputWithHttpMessagesAsync(string, string, string, ThroughputSettingsUpdateParameters, Dictionary<string, List<string>>, CancellationToken)

Update RUs per second of an Azure Cosmos DB SQL database

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>> UpdateSqlDatabaseThroughputWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)

Parameters

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

databaseName string

Cosmos DB database name.

updateThroughputParameters ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current SQL database.

customHeaders Dictionary<string, List<string>>

The headers that will be added to request.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<ThroughputSettingsGetResultsInner>>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException

Thrown when a required parameter is null