|
335 | 335 | "description": "Successfully disabled the sensitivity recommendations on the given column."
|
336 | 336 | },
|
337 | 337 | "default": {
|
338 |
| - "description": "*** Error Responses: ***\n\n * 404 SensitivityLabelsColumnNotFound - The column {0} could not be found in table {2}.{1}\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." |
| 338 | + "description": "*** Error Responses: ***\n\n * 404 SensitivityLabelsColumnNotFound - The column {0} could not be found in table {2}.{1}\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.\n\n * 404 SubscriptionNotFound - The requested subscription was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." |
339 | 339 | }
|
340 | 340 | },
|
341 | 341 | "x-ms-examples": {
|
|
412 | 412 | "description": "Successfully enabled the sensitivity recommendations on the given column."
|
413 | 413 | },
|
414 | 414 | "default": {
|
415 |
| - "description": "*** Error Responses: ***\n\n * 404 SensitivityLabelsColumnNotFound - The column {0} could not be found in table {2}.{1}\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." |
| 415 | + "description": "*** Error Responses: ***\n\n * 404 SensitivityLabelsColumnNotFound - The column {0} could not be found in table {2}.{1}\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.\n\n * 404 SubscriptionNotFound - The requested subscription was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." |
416 | 416 | }
|
417 | 417 | },
|
418 | 418 | "x-ms-examples": {
|
|
422 | 422 | }
|
423 | 423 | }
|
424 | 424 | },
|
| 425 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/sensitivityLabels": { |
| 426 | + "get": { |
| 427 | + "tags": [ |
| 428 | + "ManagedDatabaseSensitivityLabels" |
| 429 | + ], |
| 430 | + "description": "Gets the sensitivity labels of a given database", |
| 431 | + "operationId": "ManagedDatabaseSensitivityLabels_ListByDatabase", |
| 432 | + "parameters": [ |
| 433 | + { |
| 434 | + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" |
| 435 | + }, |
| 436 | + { |
| 437 | + "$ref": "#/parameters/ManagedInstanceNameParameter" |
| 438 | + }, |
| 439 | + { |
| 440 | + "$ref": "#/parameters/DatabaseNameParameter" |
| 441 | + }, |
| 442 | + { |
| 443 | + "name": "$filter", |
| 444 | + "in": "query", |
| 445 | + "description": "An OData filter expression that filters elements in the collection.", |
| 446 | + "required": false, |
| 447 | + "type": "string" |
| 448 | + }, |
| 449 | + { |
| 450 | + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" |
| 451 | + }, |
| 452 | + { |
| 453 | + "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" |
| 454 | + } |
| 455 | + ], |
| 456 | + "responses": { |
| 457 | + "200": { |
| 458 | + "description": "Successfully retrieved the sensitivity labels.", |
| 459 | + "schema": { |
| 460 | + "$ref": "#/definitions/SensitivityLabelListResult" |
| 461 | + } |
| 462 | + }, |
| 463 | + "default": { |
| 464 | + "description": "*** Error Responses: ***\n\n * 400 DatawarehouseDatabaseIsDeactivated - Could not execute Data Classification operation because the database is paused. Please resume it.\n\n * 400 SensitivityLabelsInvalidODataQuery - The specified OData query is either not valid or not supported\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.\n\n * 503 DatabaseUnavailable - The operation failed because the database is unavailable." |
| 465 | + } |
| 466 | + }, |
| 467 | + "x-ms-odata": "#/definitions/SensitivityLabel", |
| 468 | + "x-ms-pageable": { |
| 469 | + "nextLinkName": "nextLink" |
| 470 | + }, |
| 471 | + "x-ms-examples": { |
| 472 | + "Gets the current and recommended sensitivity labels of a given database": { |
| 473 | + "$ref": "./examples/ManagedDatabaseSensitivityLabelsListByDatabase.json" |
| 474 | + } |
| 475 | + } |
| 476 | + } |
| 477 | + }, |
425 | 478 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels": {
|
426 | 479 | "get": {
|
427 | 480 | "tags": [
|
|
0 commit comments