-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding swagger of sensitivity labels APIs. (#3373)
* Swagger of sensitivity labels APIs Adding swagger containing APIs of sensitivity labels, as long as usage examples of these APIs. * Reference common definitions. Reference common definitions.
- Loading branch information
Showing
7 changed files
with
616 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...ger/Microsoft.Sql/preview/2017-03-01-preview/examples/ColumnSensitivtyLabelCreateMax.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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"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": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"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": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...anager/Microsoft.Sql/preview/2017-03-01-preview/examples/ColumnSensitivtyLabelDelete.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,17 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...e-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ColumnSensitivtyLabelGet.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,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "myTable", | ||
"columnName": "myColumn", | ||
"sensitivityLabelSource": "current", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"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": { | ||
"labelName": "PII", | ||
"informationType": "PhoneNumber" | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...Microsoft.Sql/preview/2017-03-01-preview/examples/SensitivityLabelsListByDatabaseMax.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-01-preview", | ||
"filter": "Name eq 'current'" | ||
}, | ||
"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": { | ||
"labelName": "Sensitive", | ||
"informationType": "Financial" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...Microsoft.Sql/preview/2017-03-01-preview/examples/SensitivityLabelsListByDatabaseMin.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "myServer", | ||
"databaseName": "myDatabase", | ||
"api-version": "2017-03-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": { | ||
"labelName": "Sensitive", | ||
"informationType": "Financial" | ||
} | ||
}, | ||
{ | ||
"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": { | ||
"labelName": "PII", | ||
"informationType": "Email" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.