-
Notifications
You must be signed in to change notification settings - Fork 5k
/
CosmosDBMongoDBRoleDefinitionList.json
44 lines (44 loc) · 1.22 KB
/
CosmosDBMongoDBRoleDefinitionList.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"resourceGroupName": "myResourceGroupName",
"accountName": "myAccountName",
"api-version": "2023-03-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myRoleDefinitionId",
"name": "myRoleDefinitionId",
"type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions",
"properties": {
"roleName": "myRoleName",
"type": "CustomRole",
"databaseName": "sales",
"privileges": [
{
"resource": {
"db": "sales",
"collection": "coll"
},
"actions": [
"find",
"insert"
]
}
],
"roles": [
{
"db": "sales",
"role": "myReadRole"
}
]
}
}
]
}
}
}
}