Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensitivity labels: Disable/Enable recommended sensitivity labels #5083

Merged
merged 7 commits into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "includeDisabledRecommendations",
"in": "query",
"description": "Specifies whether to include disabled recommendations or not.",
"required": false,
"type": "boolean"
},
{
"name": "$skipToken",
"in": "query",
Expand Down Expand Up @@ -128,6 +135,152 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable": {
"post": {
"tags": [
"SensitivityLabels"
],
"description": "Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns)",
"operationId": "SensitivityLabels_EnableRecommendation",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "schemaName",
"in": "path",
"description": "The name of the schema.",
"required": true,
"type": "string"
},
{
"name": "tableName",
"in": "path",
"description": "The name of the table.",
"required": true,
"type": "string"
},
{
"name": "columnName",
"in": "path",
"description": "The name of the column.",
"required": true,
"type": "string"
},
{
"name": "sensitivityLabelSource",
"in": "path",
"required": true,
"type": "string",
"enum": [
"recommended"
],
"x-ms-enum": {
"name": "SensitivityLabelSource",
"modelAsString": false
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully enabled the sensitivity recommendations on the given column."
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 DatawarehouseDatabaseIsDeactivated - Could not execute Data Classification operation because the database is paused. Please resume it.\n\n * 404 SensitivityLabelsColumnNotFound - The specified column could not be found\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance."
}
},
"x-ms-examples": {
"Enables sensitivity recommendations on a given column": {
"$ref": "./examples/RecommendedColumnSensitivityLabelEnable.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable": {
"post": {
"tags": [
"SensitivityLabels"
],
"description": "Disables sensitivity recommendations on a given column",
"operationId": "SensitivityLabels_DisableRecommendation",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "schemaName",
"in": "path",
"description": "The name of the schema.",
"required": true,
"type": "string"
},
{
"name": "tableName",
"in": "path",
"description": "The name of the table.",
"required": true,
"type": "string"
},
{
"name": "columnName",
"in": "path",
"description": "The name of the column.",
"required": true,
"type": "string"
},
{
"name": "sensitivityLabelSource",
"in": "path",
"required": true,
"type": "string",
"enum": [
"recommended"
],
"x-ms-enum": {
"name": "SensitivityLabelSource",
"modelAsString": false
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully disabled the sensitivity recommendation on the given column."
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 DatawarehouseDatabaseIsDeactivated - Could not execute Data Classification operation because the database is paused. Please resume it.\n\n * 404 SensitivityLabelsColumnNotFound - The specified column could not be found\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance."
}
},
"x-ms-examples": {
"Disables sensitivity recommendations on a given column": {
"$ref": "./examples/RecommendedColumnSensitivityLabelDisable.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}": {
"get": {
"tags": [
Expand Down Expand Up @@ -389,6 +542,11 @@
"informationTypeId": {
"description": "The information type ID.",
"type": "string"
},
"isDisabled": {
"description": "Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.",
"type": "boolean",
"readOnly": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "myServer",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn",
"sensitivityLabelSource": "recommended",
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"serverName": "myServer",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn",
"sensitivityLabelSource": "recommended",
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn",
"sensitivityLabelSource": "recommended",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myRG",
"managedInstanceName": "myManagedInstanceName",
"databaseName": "myDatabase",
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn",
"sensitivityLabelSource": "recommended",
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {}
}
}
Loading