forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing SensitivityLabels APIs to fix S360 issues (Azure#17562)
* add the missing SensitivityLabels APIs to fix S360 issues * add example files
- Loading branch information
1 parent
413b636
commit 2159075
Showing
4 changed files
with
202 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...l/preview/2021-08-01-preview/examples/ManagedDatabaseSensitivityLabelsListByDatabase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"informationType": "Financial", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "05e6eaa1-075a-4fb4-a732-a92215a2444a", | ||
"labelName": "Sensitive", | ||
"rank": "Critical" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn2/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn2", | ||
"informationType": "Email", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII", | ||
"rank": "Medium" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...er/Microsoft.Sql/preview/2021-08-01-preview/examples/SensitivityLabelsListByDatabase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current", | ||
"name": "current", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"informationType": "Financial", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "05e6eaa1-075a-4fb4-a732-a92215a2444a", | ||
"labelName": "Sensitive" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn2/sensitivityLabels/recommended", | ||
"name": "recommended", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels", | ||
"properties": { | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn2", | ||
"informationType": "Email", | ||
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646", | ||
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff", | ||
"labelName": "PII" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |