@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api SqlManagementClient
@base https://management.azure.com
@version 2018-06-01-preview
@auth OAuth2
@common_fields {resourceGroupName: any # The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., managedInstanceName: any # The name of the managed instance., databaseName: any # The name of the database., subscriptionId: any # The subscription ID that identifies an Azure subscription., api-version: any # The API version to use for the request.}
@endpoints 7
@toc subscriptions(7)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}
@desc Gets the sensitivity label of a given column
@required {schemaName: any # The name of the schema., tableName: any # The name of the table., columnName: any # The name of the column., sensitivityLabelSource: any # The source of the sensitivity label.}
@returns(200) Successfully retrieved the sensitivity label.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}
@desc Creates or updates the sensitivity label of a given column
@required {schemaName: any # The name of the schema., tableName: any # The name of the table., columnName: any # The name of the column., sensitivityLabelSource: any # The source of the sensitivity label., parameters: map # The column sensitivity label resource.}
@returns(200) Successfully updated the sensitivity label.
@returns(201) Successfully created the sensitivity label.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}
@desc Deletes the sensitivity label of a given column
@required {schemaName: any # The name of the schema., tableName: any # The name of the table., columnName: any # The name of the column., sensitivityLabelSource: any # The source of the sensitivity label.}
@returns(200) Successfully deleted the sensitivity label.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable
@desc Disables sensitivity recommendations on a given column
@required {schemaName: any # The name of the schema., tableName: any # The name of the table., columnName: any # The name of the column., sensitivityLabelSource: any}
@returns(200) Successfully disabled the sensitivity recommendations on the given column.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable
@desc Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns)
@required {schemaName: any # The name of the schema., tableName: any # The name of the table., columnName: any # The name of the column., sensitivityLabelSource: any}
@returns(200) Successfully enabled the sensitivity recommendations on the given column.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels
@desc Gets the sensitivity labels of a given database
@optional {$filter: any # An OData filter expression that filters elements in the collection.}
@returns(200) Successfully retrieved the sensitivity labels.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels
@desc Gets the sensitivity labels of a given database
@optional {includeDisabledRecommendations: any # Specifies whether to include disabled recommendations or not., $skipToken: any, $filter: any # An OData filter expression that filters elements in the collection.}
@returns(200) Successfully retrieved the sensitivity labels.

@end
