-
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.
Kusto pools principal assignment (#14079)
* kustoPool PrincipalAssignments * fixed list principal assignments * principalAssignment list example * principalAssignment get example * KustoPoolPrincipalAssignmentsCreateOrUpdate * KustoPoolPrincipalAssignmentsDelete * databases PrincipalAssignments * minor change * KustoPoolDatabasePrincipalAssignmentsList * KustoDatabasePrincipalAssignmentsGet * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate * KustoPoolDatabasePrincipalAssignmentsDelete * fixed example ref * added system data * kustoPoolCheckNameAvailability * KustoPoolsCheckNameAvailability example Co-authored-by: Itay Sofer <itsofer@microsoft.com>
- Loading branch information
Showing
10 changed files
with
1,029 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...view/2021-04-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.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,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"databaseName": "Kustodatabase8", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...apse/preview/2021-04-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsDelete.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,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"databaseName": "Kustodatabase8", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...Synapse/preview/2021-04-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsGet.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,29 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"databaseName": "Kustodatabase8", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ynapse/preview/2021-04-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsList.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,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"databaseName": "Kustodatabase8", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal2", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal2", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...apse/preview/2021-04-01-preview/examples/KustoPoolPrincipalAssignmentsCreateOrUpdate.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,52 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"role": "AllDatabasesAdmin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...soft.Synapse/preview/2021-04-01-preview/examples/KustoPoolPrincipalAssignmentsDelete.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,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...crosoft.Synapse/preview/2021-04-01-preview/examples/KustoPoolPrincipalAssignmentsGet.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,28 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"principalAssignmentName": "kustoprincipal1", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...rosoft.Synapse/preview/2021-04-01-preview/examples/KustoPoolPrincipalAssignmentsList.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": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"workspaceName": "synapseWorkspaceName", | ||
"kustoPoolName": "kustoclusterrptest4", | ||
"api-version": "2021-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal2", | ||
"name": "synapseWorkspaceName/kustoclusterrptest4/kustoprincipal2", | ||
"type": "Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments", | ||
"properties": { | ||
"role": "Admin", | ||
"principalId": "87654321-1234-1234-1234-123456789123", | ||
"principalType": "App", | ||
"tenantId": "12345678-1234-1234-1234-123456789123", | ||
"tenantName": "tenantName", | ||
"principalName": "TestApp", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...icrosoft.Synapse/preview/2021-04-01-preview/examples/KustoPoolsCheckNameAvailability.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"api-version": "2021-04-01-preview", | ||
"location": "westus", | ||
"kustoPoolName": { | ||
"name": "kustoclusterrptest4", | ||
"type": "Microsoft.Synapse/workspaces/kustoPools" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "kustoclusterrptest4", | ||
"nameAvailable": false, | ||
"message": "Name 'kustoclusterrptest4' is already taken. Please specify a different name" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.