-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
CosmosDBCassandraViewCreateUpdate.json
42 lines (42 loc) · 1.62 KB
/
CosmosDBCassandraViewCreateUpdate.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
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2023-03-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspacename",
"viewName": "viewname",
"createUpdateCassandraViewParameters": {
"tags": {},
"properties": {
"resource": {
"id": "viewname",
"viewDefinition": "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)"
},
"options": {}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspacename/views/viewname",
"name": "viewname",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/views",
"tags": {},
"properties": {
"resource": {
"id": "viewname",
"viewDefinition": "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY KEY (columnc, columna)"
}
}
}
},
"202": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2023-03-01-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2023-03-01-preview"
}
}
}
}