Skip to content

Kusto: Add Kusto swagger specification, documentation and examples #3584

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 10 commits into from
Aug 6, 2018
3 changes: 2 additions & 1 deletion profiles/ResourceSchemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ batch:
- ../specification/web/resource-manager/Microsoft.Web/2016-03-01/ResourceProvider.json
- ../specification/web/resource-manager/Microsoft.Web/2016-08-01/WebApps.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServiceEnvironments.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServicePlans.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServicePlans.json
- ../specification/kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json

# some invalid swagger
# - ../specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/2017-02-28-preview/timeseriesinsights.json
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3",
"name": "KustoClusterRPTest3",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3",
"name": "KustoClusterRPTest3",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
},
"201": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9",
"name": "KustoClusterRPTest4/KustoDatabase9",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
},
"201": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "operationName",
"display": {
"provider": "providerName",
"resource": "resourceName",
"operation": "operationName",
"description": "description"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a false positive but the linter is complaining the value of "description" cannot be "description".

No action needed but just want to document this here.

}
}
]
}
}
}
}
Loading