diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json new file mode 100644 index 000000000000..df15308ea240 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "attachedDatabaseConfigurationName": "attachedDatabaseConfigurations1", + "api-version": "2019-01-21", + "parameters": { + "location": "westus", + "properties": { + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/attachedDatabaseConfigurations/attachedDatabaseConfigurations1", + "name": "KustoClusterRPTest4/attachedDatabaseConfigurations1", + "type": "Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsDelete.json new file mode 100644 index 000000000000..02b9585ed13b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "attachedDatabaseConfigurationName": "attachedDatabaseConfigurations1", + "api-version": "2019-01-21" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsGet.json new file mode 100644 index 000000000000..869656de4530 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "attachedDatabaseConfigurationName": "attachedDatabaseConfigurations1", + "api-version": "2019-01-21" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/AttachedDatabaseConfigurations/attachedDatabaseConfigurations1", + "name": "KustoClusterRPTest4/attachedDatabaseConfigurations1", + "type": "Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsListByCluster.json new file mode 100644 index 000000000000..858a6972e428 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoAttachedDatabaseConfigurationsListByCluster.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-01-21" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/AttachedDatabaseConfigurations/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations", + "location": "westus", + "properties": { + "clusterResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader", + "databaseName": "db1", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/AttachedDatabaseConfigurations/KustoDatabase9", + "name": "KustoClusterRPTest4/KustoDatabase9", + "type": "Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations", + "location": "westus", + "properties": { + "clusterResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader", + "databaseName": "db1", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterDetachFollowerDatabases.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterDetachFollowerDatabases.json new file mode 100644 index 000000000000..834e874d5345 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterDetachFollowerDatabases.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-01-21", + "followerDatabasesToRemove": { + "clusterResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader3", + "databaseName": "db1" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "clusterResourceId": [ + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader1", + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader2" + ], + "databaseName": "*" + }, + { + "clusterResourceId": [ + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" + ], + "databaseName": "db1" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterListFollowerDatabases.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterListFollowerDatabases.json new file mode 100644 index 000000000000..7cff5c55004b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClusterListFollowerDatabases.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-01-21" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "clusterResourceId": [ + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader1", + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader2" + ], + "databaseName": "*" + }, + { + "clusterResourceId": [ + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader3", + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" + ], + "databaseName": "db1" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCheckNameAvailability.json index 3c19e40a650b..9793f7bc19e0 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCheckNameAvailability.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "api-version": "2019-01-21", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json index 741345efce80..ab118f80e7d5 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json @@ -7,7 +7,7 @@ "parameters": { "location": "westus", "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -24,7 +24,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -40,7 +40,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersDelete.json index a7f2d57314fd..3812127ec1f2 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersDelete.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersDelete.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json index 3a467eb933e5..0a532f66c29c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -16,7 +16,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json index 503f0bfc50b5..07729df8e16c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "api-version": "2019-01-21" @@ -16,7 +16,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -30,7 +30,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json index 9b8d63f87be2..6468c32a6dcb 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -17,7 +17,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -31,7 +31,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json index 57f52e64a6fc..40169dc8d909 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -12,7 +12,7 @@ { "resourceType": "clusters", "sku": { - "name": "D13_v2", + "name": "Standard_D13_v2", "tier": "Standard" }, "capacity": { @@ -25,7 +25,7 @@ { "resourceType": "clusters", "sku": { - "name": "D14_v2", + "name": "Standard_D14_v2", "tier": "Standard" }, "capacity": { @@ -38,7 +38,7 @@ { "resourceType": "clusters", "sku": { - "name": "L8", + "name": "Standard_L8s", "tier": "Standard" }, "capacity": { @@ -51,7 +51,7 @@ { "resourceType": "clusters", "sku": { - "name": "L16", + "name": "Standard_L16s", "tier": "Standard" }, "capacity": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json index cc47e5de54d0..1951afc29364 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json @@ -8,27 +8,67 @@ "200": { "body": { "value": [ - { - "name": "D13_v2", + { + "name": "Standard_D13_v2", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "Standard_D14_v2", "tier": "Standard", - "capacity": 2 + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] }, { - "name": "D14_v2", - "tier": "Standard", - "capacity": 2 - }, - { - "name": "L8", - "tier": "Standard", - "capacity": 2 - }, - { - "name": "L16", - "tier": "Standard", - "capacity": 2 - } - ] + "name": "L8", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "L16", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + } + ] } } } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json index f290ac108b88..b100a348094b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -19,7 +19,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -35,7 +35,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionValidation.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionValidation.json index e1fe101fd1b1..d7d7e6045b0f 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionValidation.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionValidation.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json new file mode 100644 index 000000000000..e533266ba278 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-01-21", + "clusterName": "kustoProd", + "databaseName": "KustoDatabase8", + "dataConnectionName": "DataConnections8", + "resourceGroupName": "kustorptest" + }, + "responses": { + "200": { + "body": { + "name": "DataConnections8", + "nameAvailable": false, + "message": "Name 'DataConnections8' is already taken. Please specify a different name.", + "reason": "AlreadyExists" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsDelete.json index 5cb236d04272..4e88f65784cb 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsDelete.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsDelete.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json index eebb38e4fc96..1ba0988ea058 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json index 5f7035339c23..20719bd35a49 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json index 6e8dc8f955d4..319564f2bd86 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseAddPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseAddPrincipals.json index be2f7639ec25..3e556302c8d0 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseAddPrincipals.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseAddPrincipals.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseListPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseListPrincipals.json index 5e7b4649a3bc..e0fbaf1f5c3e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseListPrincipals.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseListPrincipals.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseRemovePrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseRemovePrincipals.json index 9f11831058a5..d90b0777259e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseRemovePrincipals.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabaseRemovePrincipals.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCheckNameAvailability.json index ddc4c83d0b7c..93157babf0b5 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCheckNameAvailability.json @@ -1,10 +1,10 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "api-version": "2019-01-21", "resourceGroupName": "kustorptest", "clusterName": "kustoProd", - "databaseName": { + "resourceName": { "name": "kuskus", "type": "Microsoft.Kusto/Clusters/Databases" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json index 034ccb063590..5fb510eb04ba 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json @@ -8,6 +8,7 @@ "parameters": { "location": "westus", "properties": { + "kind": "ReadWrite", "softDeletePeriod": "P1D" } } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesDelete.json index 78885b5d190e..b366c723c106 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesDelete.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesDelete.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json index 796f80b9365f..b6432bdfc87b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json index b4112bf5068b..e8169320b10b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json index 034ccb063590..e1097aa26208 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -8,6 +8,7 @@ "parameters": { "location": "westus", "properties": { + "kind": "ReadWrite", "softDeletePeriod": "P1D" } } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoOperationsList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoOperationsList.json index 4f7480238f36..9799f080f5ff 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoOperationsList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoOperationsList.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "api-version": "2019-01-21" }, diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json index 47b8cfff0188..45b4ffd57ae9 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json @@ -299,6 +299,105 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases": { + "post": { + "tags": [ + "Clusters" + ], + "description": "Returns a list of databases that are owned by this cluster and were followed by another cluster.", + "operationId": "Clusters_ListFollowerDatabases", + "x-ms-examples": { + "KustoClusterListFollowerDatabases": { + "$ref": "./examples/KustoClusterListFollowerDatabases.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of followed databases.", + "schema": { + "$ref": "#/definitions/FollowerDatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases": { + "post": { + "tags": [ + "Clusters" + ], + "description": "Detaches all followers of a database owned by this cluster.", + "operationId": "Clusters_DetachFollowerDatabases", + "x-ms-examples": { + "KustoClusterDetachFollowerDatabases": { + "$ref": "./examples/KustoClusterDetachFollowerDatabases.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "followerDatabaseToRemove", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FollowerDatabaseRequest" + }, + "description": "List of follower databases to remove." + } + ], + "responses": { + "200": { + "description": "Successfully detached the follower databases.", + "schema": { + "$ref": "#/definitions/FollowerDatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters": { "get": { "tags": [ @@ -400,7 +499,7 @@ "responses": { "200": { "description": "OK.", - "schema": { "$ref": "#/definitions/ListSkusResult" } + "schema": { "$ref": "#/definitions/SkuDescriptionList" } }, "default": { "description": "Error response describing why the operation failed.", @@ -492,13 +591,13 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "databaseName", + "name": "resourceName", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DatabaseCheckNameRequest" + "$ref": "#/definitions/CheckNameRequest" }, - "description": "The name of the database." + "description": "The name of the resource." } ], "responses": { @@ -737,7 +836,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DatabaseUpdate" + "$ref": "#/definitions/Database" }, "description": "The database parameters supplied to the Update operation." }, @@ -977,6 +1076,205 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations": { + "get": { + "tags": [ + "AttachedDatabaseConfigurations" + ], + "description": "Returns the list of attached database configurations of the given Kusto cluster.", + "operationId": "AttachedDatabaseConfigurations_ListByCluster", + "x-ms-examples": { + "KustoAttachedDatabaseConfigurationsListByCluster": { + "$ref": "./examples/KustoAttachedDatabaseConfigurationsListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of attached database configurations.", + "schema": { + "$ref": "#/definitions/AttachedDatabaseConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}": { + "get": { + "tags": [ + "AttachedDatabaseConfigurations" + ], + "description": "Returns an attached database configuration.", + "operationId": "AttachedDatabaseConfigurations_Get", + "x-ms-examples": { + "AttachedDatabaseConfigurationsGet": { + "$ref": "./examples/KustoAttachedDatabaseConfigurationsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/AttachedDatabaseConfigurationNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified attached database configuration.", + "schema": { + "$ref": "#/definitions/AttachedDatabaseConfiguration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "AttachedDatabaseConfigurations" + ], + "description": "Creates or updates an attached database configuration.", + "operationId": "AttachedDatabaseConfigurations_CreateOrUpdate", + "x-ms-examples": { + "AttachedDatabaseConfigurationsCreateOrUpdate": { + "$ref": "./examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/AttachedDatabaseConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AttachedDatabaseConfiguration" + }, + "description": "The database parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/AttachedDatabaseConfiguration" + } + }, + "201": { + "description": "Successfully created the database.", + "schema": { + "$ref": "#/definitions/AttachedDatabaseConfiguration" + } + }, + "202": { + "description": "Accepted the create database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "AttachedDatabaseConfigurations" + ], + "description": "Deletes the attached database configuration with the given name.", + "operationId": "AttachedDatabaseConfigurations_Delete", + "x-ms-examples": { + "AttachedDatabaseConfigurationsDelete": { + "$ref": "./examples/KustoAttachedDatabaseConfigurationsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/AttachedDatabaseConfigurationNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the database." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified database does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections": { "get": { "tags": [ @@ -1016,27 +1314,75 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation": { + "post": { + "tags": [ + "DataConnections" + ], + "operationId": "DataConnections_dataConnectionValidation", + "x-ms-examples": { + "KustoDataConnectionValidation": { + "$ref": "./examples/KustoDataConnectionValidation.json" + } + }, + "description": "Checks that the data connection parameters are valid.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnectionValidation" + }, + "description": "The data connection parameters supplied to the CreateOrUpdate operation." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/DataConnectionValidationListResult" } } - }, - "x-ms-pageable": { - "nextLinkName": null } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability": { "post": { "tags": [ "DataConnections" ], - "operationId": "DataConnections_dataConnectionValidation", + "operationId": "DataConnections_CheckNameAvailability", "x-ms-examples": { - "KustoDataConnectionValidation": { - "$ref": "./examples/KustoDataConnectionValidation.json" + "KustoDatabaseCheckNameAvailability": { + "$ref": "./examples/KustoDataConnectionsCheckNameAvailability.json" } }, - "description": "Checks that the data connection parameters are valid.", + "description": "Checks that the data connection name is valid and is not already in use.", "parameters": [ { "$ref": "#/parameters/ResourceGroupParameter" @@ -1054,20 +1400,26 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "parameters", + "name": "dataConnectionName", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DataConnectionValidation" + "$ref": "#/definitions/DataConnectionCheckNameRequest" }, - "description": "The data connection parameters supplied to the CreateOrUpdate operation." + "description": "The name of the data connection." } ], "responses": { "200": { - "description": "OK -- Operation to check the kusto resource name availability was successful.", + "description": "OK -- Operation to check the Kusto resource name availability was successful.", "schema": { - "$ref": "#/definitions/DataConnectionValidationListResult" + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" } } } @@ -1370,7 +1722,8 @@ "Creating", "Deleting", "Succeeded", - "Failed" + "Failed", + "Moving" ], "x-ms-enum": { "name": "ProvisioningState", @@ -1393,6 +1746,10 @@ "$ref": "#/definitions/TrustedExternalTenant" }, "description": "The cluster's external tenants." + }, + "intelligentAutoscale": { + "$ref": "#/definitions/intelligentAutoscale", + "description": "Intelligent auto scale definition." } }, "description": "Class representing the Kusto cluster properties." @@ -1460,6 +1817,85 @@ }, "description": "Azure capacity definition." }, + "SkuDescriptionList": { + "description": "The list of the Kusto SKU descriptions", + "type": "object", + "properties": { + "value": { + "description": "SKU descriptions", + "type": "array", + "items": { + "$ref": "#/definitions/SkuDescription" + }, + "readOnly": true + } + } + }, + "SkuDescription": { + "description": "The Kusto SKU description of given resource type", + "type": "object", + "properties": { + "resourceType": { + "description": "The resource type", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the SKU", + "type": "string", + "readOnly": true + }, + "tier": { + "description": "The tier of the SKU", + "type": "string", + "readOnly": true + }, + "locations": { + "description": "The set of locations that the SKU is available", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "locationInfo": { + "description": "Locations and zones", + "type": "array", + "items": { + "$ref": "#/definitions/SkuLocationInfoItem" + }, + "readOnly": true + }, + "restrictions": { + "description": "The restrictions because of which SKU cannot be used", + "type": "array", + "items": { + "type": "object" + }, + "readOnly": true + } + } + }, + "SkuLocationInfoItem": { + "description": "The locations and zones info for SKU.", + "type": "object", + "required": [ + "location" + ], + "properties": { + "location": { + "description": "The available location of the SKU.", + "type": "string" + }, + "zones": { + "description": "The available zone of the SKU.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, "AzureSku": { "type": "object", "required": [ @@ -1471,13 +1907,18 @@ "description": "SKU name.", "type": "string", "enum": [ - "D13_v2", - "D14_v2", - "L8", - "L16", - "D11_v2", - "D12_v2", - "L4" + "Standard_DS13_v2+1TB_PS", + "Standard_DS13_v2+2TB_PS", + "Standard_DS14_v2+3TB_PS", + "Standard_DS14_v2+4TB_PS", + "Standard_D13_v2", + "Standard_D14_v2", + "Standard_L8s", + "Standard_L16s", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_L4s", + "Dev(No SLA)_Standard_D11_v2" ], "x-ms-enum": { "name": "AzureSkuName", @@ -1492,6 +1933,7 @@ "description": "SKU tier.", "type": "string", "enum": [ + "Basic", "Standard" ], "x-ms-enum": { @@ -1502,6 +1944,29 @@ }, "description": "Azure SKU definition." }, + "intelligentAutoscale": { + "type": "object", + "required": [ + "version", + "minimum", + "maximum" + ], + "properties": { + "version": { + "description": "The version of the template defined, for instance 1.", + "type": "integer" + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + } + }, + "description": "A class that contains the intelligent auto scale definition." + }, "DatabaseStatistics": { "type": "object", "readOnly": true, @@ -1513,7 +1978,68 @@ }, "description": "A class that contains database statistics information." }, - "DatabaseProperties": { + "AttachedDatabaseConfigurationProperties": { + "properties": { + "databaseName": { + "type": "string", + "description": "The name of the database which you would like to attach, use * if you want to follow all current and future databases." + }, + "clusterResourceId": { + "type": "string", + "description": "The resource id of the cluster where the databases you would like to attach reside." + }, + "attachedDatabaseNames": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "The list of databases from the clusterResourceId which are currently attached to the cluster." + } + }, + "description": "Class representing the an attached database configuration properties of kind specific.", + "required": [ + "databaseName", + "clusterResourceId" + ] + }, + "ReadWriteDatabaseProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Moving" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "softDeletePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." + }, + "hotCachePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept in cache for fast queries in TimeSpan." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "description": "The statistics of the database." + } + }, + "description": "Class representing the Kusto database properties." + }, + "ReadOnlyAttachedDatabaseProperties": { "properties": { "provisioningState": { "type": "string", @@ -1524,7 +2050,8 @@ "Creating", "Deleting", "Succeeded", - "Failed" + "Failed", + "Moving" ], "x-ms-enum": { "name": "ProvisioningState", @@ -1533,13 +2060,14 @@ }, "softDeletePeriod": { "type": "string", + "readOnly": true, "format": "duration", "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." }, "hotCachePeriod": { "type": "string", "format": "duration", - "description": "The time the data that should be kept in cache for fast queries in TimeSpan." + "description": "The time the data should be kept in cache for fast queries in TimeSpan." }, "statistics": { "$ref": "#/definitions/DatabaseStatistics", @@ -1691,7 +2219,19 @@ ], "description": "Class representing an update to a Kusto cluster." }, - "Database": { + "AttachedDatabaseConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AttachedDatabaseConfiguration" + }, + "description": "The list of attached database configurations." + } + }, + "description": "The list attached database configurations operation response." + }, + "AttachedDatabaseConfiguration": { "properties": { "location": { "type": "string", @@ -1699,8 +2239,8 @@ }, "properties": { "x-ms-client-flatten": true, - "description": "The database properties.", - "$ref": "#/definitions/DatabaseProperties" + "description": "The properties of the attached database configuration.", + "$ref": "#/definitions/AttachedDatabaseConfigurationProperties" } }, "allOf": [ @@ -1708,26 +2248,69 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" } ], - "description": "Class representing a Kusto database." + "description": "Class representing an attached database configuration." }, - "DatabaseUpdate": { + "Database": { + "required": [ + "kind" + ], "properties": { "location": { "type": "string", "description": "Resource location." }, + "kind": { + "description": "Kind of the database", + "enum": [ + "ReadWrite", + "ReadOnlyAttached" + ], + "type": "string", + "x-ms-enum": { + "name": "Kind", + "modelAsString": true + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing a Kusto database.", + "discriminator": "kind" + }, + "ReadWriteDatabase": { + "properties": { "properties": { "x-ms-client-flatten": true, - "description": "The properties of the updated database.", - "$ref": "#/definitions/DatabaseProperties" + "description": "The database properties.", + "$ref": "#/definitions/ReadWriteDatabaseProperties" } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + "$ref": "#/definitions/Database" + } + ], + "description": "Class representing a read write database.", + "x-ms-discriminator-value": "ReadWrite" + }, + "ReadOnlyAttachedDatabase": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The database properties.", + "$ref": "#/definitions/ReadOnlyAttachedDatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Database" } ], - "description": "Class representing an update to a Kusto database." + "description": "Class representing a read only attached database.", + "x-ms-discriminator-value": "ReadOnlyAttached" }, "DatabasePrincipal": { "type": "object", @@ -1821,6 +2404,35 @@ }, "description": "The list Kusto database principals operation response." }, + "FollowerDatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FollowerDatabaseResult" + }, + "description": "The list of follower database result." + } + }, + "description": "The list Kusto database principals operation response." + }, + "FollowerDatabaseResult": { + "type": "object", + "properties": { + "clusterResourceId": { + "description": "List of resource ids of clusters that are following the database owned by this cluster.", + "type": "array", + "items": { + "type": "string" + } + }, + "databaseName": { + "type": "string", + "description": "The database name owned by this cluster that was followed. * in case following all databases." + } + }, + "description": "A class representing database principal entity." + }, "DataConnection": { "required": [ "kind" @@ -1873,6 +2485,24 @@ }, "description": "The list Kusto database principals operation request." }, + "FollowerDatabaseRequest": { + "type": "object", + "required": [ + "clusterResourceId", + "databaseName" + ], + "properties": { + "clusterResourceId": { + "type": "string", + "description": "Resource id of the cluster that follows a database owned by this cluster." + }, + "databaseName": { + "type": "string", + "description": "The database name owned by this cluster that was followed. * in case following all databases." + } + }, + "description": "A class representing follower database request." + }, "DataConnectionValidation": { "properties": { "dataConnectionName": { @@ -1977,23 +2607,24 @@ ], "description": "The result returned from a cluster check name availability request." }, - "DatabaseCheckNameRequest": { + "CheckNameRequest": { "type": "object", "properties": { "name": { "type": "string", - "description": "Database name." + "description": "Resource name." }, "type": { "type": "string", "enum": [ - "Microsoft.Kusto/clusters/databases" + "Microsoft.Kusto/clusters/databases", + "Microsoft.Kusto/clusters/attachedDatabaseConfigurations" ], "x-ms-enum": { "name": "Type", "modelAsString": false }, - "description": "The type of resource, Microsoft.Kusto/clusters/databases." + "description": "The type of resource, for instance Microsoft.Kusto/clusters/databases." } }, "required": [ @@ -2002,6 +2633,31 @@ ], "description": "The result returned from a database check name availability request." }, + "DataConnectionCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Data Connection name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases/dataConnections" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases/dataConnections." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a data connections check name availability request." + }, "CheckNameResult": { "type": "object", "properties": { @@ -2016,12 +2672,24 @@ "message": { "type": "string", "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + }, + "reason": { + "type": "string", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "reason", + "modelAsString": true + }, + "description": "Message providing the reason why the given name is invalid." } }, "description": "The result returned from a check name availability request." }, "ListResourceSkusResult": { - "description": "List of available SKUs for an existing Kusto Cluster.", + "description": "List of available SKUs for a Kusto Cluster.", "type": "object", "properties": { "value": { @@ -2031,17 +2699,6 @@ } } }, - "ListSkusResult": { - "description": "List of available SKUs for a new Kusto Cluster.", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { "$ref": "#/definitions/AzureSku" }, - "description": "The collection of available SKUs for new resources." - } - } - }, "CloudErrorBody": { "x-ms-external": true, "properties": { @@ -2149,6 +2806,14 @@ "type": "string", "x-ms-parameter-location": "method" }, + "AttachedDatabaseConfigurationNameParameter": { + "name": "attachedDatabaseConfigurationName", + "in": "path", + "description": "The name of the attached database configuration.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, "ResourceGroupParameter": { "name": "resourceGroupName", "in": "path",