diff --git a/custom-words.txt b/custom-words.txt index 736ef2052a35..9a881ad5b6d6 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2993,6 +2993,7 @@ wandisco wans wargs wasb +wasbs wasm wasserstein watchlist @@ -3167,6 +3168,7 @@ primingjob operatorconnect getent useraccount +userassignedidentities businessmetadata usermetadata Relaytype diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateAutoscaleCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateAutoscaleCluster.json new file mode 100644 index 000000000000..ef5b63e96ac4 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateAutoscaleCluster.json @@ -0,0 +1,335 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1", + "HDInsightCluster": { + "location": "West US 2", + "properties": { + "clusterType": "kafka", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2 + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": 3600, + "scheduleBasedConfig": { + "defaultCount": 10, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 20 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 25 + } + ] + }, + "loadBasedConfig": { + "minNodes": 10, + "maxNodes": 20, + "pollInterval": 60, + "cooldownPeriod": 300, + "scalingRules": [ + { + "actionType": "scaleup", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "greaterThan", + "threshold": 90 + } + }, + { + "actionType": "scaledown", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "lessThan", + "threshold": 20 + } + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "components": [ + { + "name": "Hive", + "version": "2.4.1" + } + ], + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": 3600, + "scheduleBasedConfig": { + "defaultCount": 10, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 20 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 25 + } + ] + }, + "loadBasedConfig": { + "minNodes": 10, + "maxNodes": 20, + "pollInterval": 60, + "cooldownPeriod": 300, + "scalingRules": [ + { + "actionType": "scaleup", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "greaterThan", + "threshold": 90 + } + }, + { + "actionType": "scaledown", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "lessThan", + "threshold": 20 + } + } + ] + } + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Accepted", + "clusterType": "kafka", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": 3600, + "scheduleBasedConfig": { + "defaultCount": 10, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 20 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 25 + } + ] + }, + "loadBasedConfig": { + "minNodes": 10, + "maxNodes": 20, + "pollInterval": 60, + "cooldownPeriod": 300, + "scalingRules": [ + { + "actionType": "scaleup", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "greaterThan", + "threshold": 90 + } + }, + { + "actionType": "scaledown", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "lessThan", + "threshold": 20 + } + } + ] + } + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateClusterPool.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateClusterPool.json new file mode 100644 index 000000000000..7e272900ae34 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateClusterPool.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "ClusterPool": { + "location": "West US 2", + "properties": { + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksVersion": "1.24", + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "provisioningState": "Accepted", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksVersion": "1.24", + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateSparkCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateSparkCluster.json new file mode 100644 index 000000000000..d7539c71112c --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/CreateSparkCluster.json @@ -0,0 +1,314 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1", + "HDInsightCluster": { + "location": "West US 2", + "properties": { + "clusterType": "spark", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "0.0.1", + "ossVersion": "2.2.3", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "serviceConfigsProfiles": [ + { + "serviceName": "spark-service", + "configs": [ + { + "component": "spark-config", + "files": [ + { + "fileName": "spark-defaults.conf", + "values": { + "spark.eventLog.enabled": "true" + } + } + ] + } + ] + }, + { + "serviceName": "yarn-service", + "configs": [ + { + "component": "yarn-config", + "files": [ + { + "fileName": "core-site.xml", + "values": { + "fs.defaultFS": "wasb://testcontainer@teststorage.dfs.core.windows.net/", + "storage.name": "teststorage", + "storage.protocol": "wasb", + "storage.key": "test key", + "storage.container": "testcontainer" + } + }, + { + "fileName": "yarn-site.xml", + "values": { + "yarn.webapp.ui2.enable": "false" + } + } + ] + } + ] + } + ], + "sparkProfile": {}, + "sshProfile": { + "count": 2 + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "spark", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "0.0.1", + "ossVersion": "2.2.3", + "components": [ + { + "name": "HDFS", + "version": "2.2.3" + } + ], + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "serviceConfigsProfiles": [ + { + "serviceName": "spark-service", + "configs": [ + { + "component": "spark-config", + "files": [ + { + "fileName": "spark-defaults.conf", + "values": { + "spark.eventLog.enabled": "true" + } + } + ] + } + ] + }, + { + "serviceName": "yarn-service", + "configs": [ + { + "component": "yarn-config", + "files": [ + { + "fileName": "core-site.xml", + "values": { + "fs.defaultFS": "wasb://testcontainer@teststorage.dfs.core.windows.net/", + "storage.name": "teststorage", + "storage.protocol": "wasb", + "storage.key": "test key", + "storage.container": "testcontainer" + } + }, + { + "fileName": "yarn-site.xml", + "values": { + "yarn.webapp.ui2.enable": "false" + } + } + ] + } + ] + } + ], + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "sparkProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Accepted", + "clusterType": "spark", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "0.0.1", + "ossVersion": "2.2.3", + "components": [ + { + "name": "HDFS", + "version": "2.2.3" + } + ], + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "serviceConfigsProfiles": [ + { + "serviceName": "spark-service", + "configs": [ + { + "component": "spark-config", + "files": [ + { + "fileName": "spark-defaults.conf", + "values": { + "spark.eventLog.enabled": "true" + } + } + ] + } + ] + }, + { + "serviceName": "yarn-service", + "configs": [ + { + "component": "yarn-config", + "files": [ + { + "fileName": "core-site.xml", + "values": { + "fs.defaultFS": "wasb://testcontainer@teststorage.dfs.core.windows.net/", + "storage.name": "teststorage", + "storage.protocol": "wasb", + "storage.key": "test key", + "storage.container": "testcontainer" + } + }, + { + "fileName": "yarn-site.xml", + "values": { + "yarn.webapp.ui2.enable": "false" + } + } + ] + } + ] + } + ], + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "sparkProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteCluster.json new file mode 100644 index 000000000000..142c97810fcb --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteCluster.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "rg1", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1" + }, + "responses": { + "200": { + "description": "Successful.", + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "description": "Cluster delete request accepted.", + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteClusterPool.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteClusterPool.json new file mode 100644 index 000000000000..f42610f4b2f0 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/DeleteClusterPool.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "rg1", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1" + }, + "responses": { + "200": { + "description": "Successful.", + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "202": { + "description": "Cluster Pool delete request accepted.", + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetCluster.json new file mode 100644 index 000000000000..d3df7c8b1424 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetCluster.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "components": [ + { + "name": "Hive", + "version": "2.4.1" + } + ], + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterInstanceView.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterInstanceView.json new file mode 100644 index 000000000000..a4944fd08cb1 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterInstanceView.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "clusterName": "cluster1", + "resourceGroupName": "rg1", + "api-version": "2023-06-01-preview", + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "clusterPoolName": "clusterPool1" + }, + "responses": { + "200": { + "body": { + "name": "default", + "properties": { + "status": { + "ready": "True", + "reason": "", + "message": "" + }, + "serviceStatuses": [ + { + "kind": "ZooKeeper", + "ready": "true", + "message": "" + } + ] + } + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterPool.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterPool.json new file mode 100644 index 000000000000..1d6a2f638f7b --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetClusterPool.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksVersion": "1.24", + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetOperations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetOperations.json new file mode 100644 index 000000000000..3ee35d68c9ab --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/GetOperations.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "resourceGroup1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.HDInsight/clusterpool/read", + "isDataAction": false, + "display": { + "provider": "HDInsight on AKS", + "resource": "Cluster Pool.", + "operation": "Get Cluster Pool Operation result.", + "description": "Get any cluster pool." + }, + "origin": "user, system" + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterPoolVersions.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterPoolVersions.json new file mode 100644 index 000000000000..d3d68ee90e4f --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterPoolVersions.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "location": "westus2", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.HDInsight/locations/westus2/availableclusterpoolversions/1.0", + "name": "1.0", + "properties": { + "clusterPoolVersion": "1.0", + "aksVersion": "1.24", + "isPreview": false + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.HDInsight/locations/westus2/availableclusterpoolversions/1.1", + "name": "1.1", + "properties": { + "clusterPoolVersion": "1.1", + "aksVersion": "1.25", + "isPreview": false + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.HDInsight/locations/westus2/availableclusterpoolversions/1.2", + "name": "1.2", + "properties": { + "clusterPoolVersion": "1.2", + "aksVersion": "1.26", + "isPreview": true + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterVersions.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterVersions.json new file mode 100644 index 000000000000..b1da94fb829b --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListAvailableClusterVersions.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "location": "westus2", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.HDInsight/locations/westus2/availableclusterversions/flink_1.16.0-1.0.4", + "name": "flink_1.16.0-1.0.4", + "properties": { + "clusterType": "Flink", + "clusterVersion": "1.0.4", + "ossVersion": "1.16.0", + "clusterPoolVersion": "1.0", + "isPreview": false, + "components": [ + { + "name": "TaskManager", + "version": "1.16.0" + }, + { + "name": "JobManager", + "version": "1.16.0" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.HDInsight/locations/westus2/availableclusterversions/spark_3.3.1-1.0.4", + "name": "spark_3.3.1-1.0.4", + "properties": { + "clusterType": "Spark", + "clusterVersion": "1.0.4", + "ossVersion": "3.3.1", + "clusterPoolVersion": "1.0", + "isPreview": false, + "components": [ + { + "name": "Hadoop", + "version": "3.2.3" + }, + { + "name": "Hive", + "version": "3.1.4" + } + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterInstanceViews.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterInstanceViews.json new file mode 100644 index 000000000000..6af3c1e01ab1 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterInstanceViews.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "clusterName": "cluster1", + "resourceGroupName": "rg1", + "api-version": "2023-06-01-preview", + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "clusterPoolName": "clusterPool1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "properties": { + "status": { + "ready": "True", + "reason": "", + "message": "" + }, + "serviceStatuses": [ + { + "kind": "ZooKeeper", + "ready": "true", + "message": "" + } + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterJobs.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterJobs.json new file mode 100644 index 000000000000..da809a7418da --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterJobs.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "resourceGroupName": "hiloResourcegroup", + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterPool1", + "clusterName": "cluster1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1/jobs/flink-job-1", + "properties": { + "jobType": "FlinkJob", + "jobName": "flink-job-1", + "jobJarDirectory": "jobJarDirectory1", + "jarName": "job.jar", + "entryClass": "com.microsoft.hilo.flink.job.streaming.ExampleJob", + "flinkConfiguration": { + "parallelism": "1", + "savepoint.directory": "savepoint-directory" + }, + "jobId": "362b911137dfefc2e55784666f4d4253", + "status": "STOP-FAILED", + "jobOutput": "job-output", + "actionResult": "SUCCESS" + } + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPools.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPools.json new file mode 100644 index 000000000000..3870d11dee67 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPools.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "hiloResourcegroup", + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksVersion": "1.24", + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "location": "West US 2", + "tags": { + "department": "MightyMight", + "company": "Contoso" + } + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPoolsSubscription.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPoolsSubscription.json new file mode 100644 index 000000000000..d6be9c963a9d --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterPoolsSubscription.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "clusterPoolProfile": { + "clusterPoolVersion": "1.2" + }, + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "aksClusterProfile": { + "aksVersion": "1.24", + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "location": "West US 2", + "tags": { + "department": "MightyMight", + "company": "Contoso" + } + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterServiceConfigs.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterServiceConfigs.json new file mode 100644 index 000000000000..66a6c3e67bde --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClusterServiceConfigs.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "clusterName": "cluster1", + "resourceGroupName": "rg1", + "api-version": "2023-06-01-preview", + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "clusterPoolName": "clusterPool1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "serviceName": "hadoop-service", + "componentName": "hadoop-component", + "fileName": "capacity-scheduler.xml", + "content": "" + } + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClustersByClusterPoolName.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClustersByClusterPoolName.json new file mode 100644 index 000000000000..d44a41d76507 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ListClustersByClusterPoolName.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "components": [ + { + "name": "Hive", + "version": "2.4.1" + } + ], + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "location": "West US 2", + "tags": { + "department": "MightyMight", + "company": "Contoso" + } + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/LocationsNameAvailability.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/LocationsNameAvailability.json new file mode 100644 index 000000000000..1d7bd9a43853 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/LocationsNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "api-version": "2023-06-01-preview", + "location": "southeastasia", + "NameAvailabilityParameters": { + "name": "contosemember1", + "type": "Microsoft.HDInsight/clusterPools/clusters" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "nameAvailable": false, + "reason": "AlreadyExists" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchCluster.json new file mode 100644 index 000000000000..a6758a9d0626 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchCluster.json @@ -0,0 +1,446 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1", + "ClusterPatchRequest": { + "location": "West US 2", + "properties": { + "clusterProfile": { + "serviceConfigsProfiles": [ + { + "serviceName": "TestService1", + "configs": [ + { + "component": "TestComp1", + "files": [ + { + "fileName": "TestFile1", + "values": { + "Test.config.1": "1", + "Test.config.2": "2" + } + }, + { + "fileName": "TestFile2", + "values": { + "Test.config.3": "3", + "Test.config.4": "4" + } + } + ] + }, + { + "component": "TestComp2", + "files": [ + { + "fileName": "TestFile3", + "content": "TestContent", + "path": "TestPath" + }, + { + "fileName": "TestFile4", + "values": { + "Test.config.7": "7", + "Test.config.8": "8" + } + } + ] + } + ] + }, + { + "serviceName": "TestService2", + "configs": [ + { + "component": "TestComp3", + "files": [ + { + "fileName": "TestFile5", + "values": { + "Test.config.9": "9" + } + } + ] + } + ] + } + ], + "sshProfile": { + "count": 2 + }, + "authorizationProfile": { + "userIds": [ + "Testuser1", + "Testuser2" + ] + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": -1, + "scheduleBasedConfig": { + "defaultCount": 3, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday, Tuesday, Wednesday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + } + ] + } + }, + "logAnalyticsProfile": { + "enabled": true, + "applicationLogs": { + "stdErrorEnabled": true, + "stdOutEnabled": true + }, + "metricsEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "serviceConfigsProfiles": [ + { + "serviceName": "TestService1", + "configs": [ + { + "component": "TestComp1", + "files": [ + { + "fileName": "TestFile1", + "values": { + "Test.config.1": "1", + "Test.config.2": "2" + } + }, + { + "fileName": "TestFile2", + "values": { + "Test.config.3": "3", + "Test.config.4": "4" + } + } + ] + }, + { + "component": "TestComp2", + "files": [ + { + "fileName": "TestFile3", + "content": "TestContent", + "path": "TestPath" + }, + { + "fileName": "TestFile4", + "values": { + "Test.config.7": "7", + "Test.config.8": "8" + } + } + ] + } + ] + }, + { + "serviceName": "TestService2", + "configs": [ + { + "component": "TestComp3", + "files": [ + { + "fileName": "TestFile5", + "values": { + "Test.config.9": "9" + } + } + ] + } + ] + } + ], + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": -1, + "scheduleBasedConfig": { + "defaultCount": 3, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday, Tuesday, Wednesday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + } + ] + } + }, + "logAnalyticsProfile": { + "enabled": true, + "applicationLogs": { + "stdErrorEnabled": true, + "stdOutEnabled": true + }, + "metricsEnabled": true + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://management.azure.com/providers/Microsoft.HDInsight/locations/EASTUS/operationStatuses/676c3c86-188d-4591-9b55-c4298b4a1279?api-version=2023-06-01-preview" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 4 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "serviceConfigsProfiles": [ + { + "serviceName": "TestService1", + "configs": [ + { + "component": "TestComp1", + "files": [ + { + "fileName": "TestFile1", + "values": { + "Test.config.1": "1", + "Test.config.2": "2" + } + }, + { + "fileName": "TestFile2", + "values": { + "Test.config.3": "3", + "Test.config.4": "4" + } + } + ] + }, + { + "component": "TestComp2", + "files": [ + { + "fileName": "TestFile3", + "content": "TestContent", + "path": "TestPath" + }, + { + "fileName": "TestFile4", + "values": { + "Test.config.7": "7", + "Test.config.8": "8" + } + } + ] + } + ] + }, + { + "serviceName": "TestService2", + "configs": [ + { + "component": "TestComp3", + "files": [ + { + "fileName": "TestFile5", + "values": { + "Test.config.9": "9" + } + } + ] + } + ] + } + ], + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": -1, + "scheduleBasedConfig": { + "defaultCount": 3, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday, Tuesday, Wednesday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 3 + } + ] + } + }, + "logAnalyticsProfile": { + "enabled": true, + "applicationLogs": { + "stdErrorEnabled": true, + "stdOutEnabled": true + }, + "metricsEnabled": true + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchClusterPool.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchClusterPool.json new file mode 100644 index 000000000000..bf3e334d8cec --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/PatchClusterPool.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterPoolTags": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/pathToOperationResult" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/pathToOperationResult" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1", + "name": "clusterpool1", + "type": "Microsoft.HDInsight/clusterPools", + "properties": { + "provisioningState": "Succeeded", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "managedResourceGroupName": "hdi-45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "vmSize": "Standard_D3_v2", + "count": 3 + }, + "aksClusterProfile": { + "aksClusterAgentPoolIdentityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ManagedIdentity/userAssignedIdentities/clusterpool1-agentpool", + "msiClientId": "a89fb478-2a84-4d9b-8f18-3e8c4d1db3eb", + "msiObjectId": "dc7ef861-8b55-4ffb-9003-20885cd895a9" + }, + "aksClusterResourceId": "/subscriptions/subid/resourceGroups/hdi-45cd32aead6e4a91b079a0cdbfac8c36/providers/Microsoft.ContainerService/managedClusters/clusterpool1" + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ResizeCluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ResizeCluster.json new file mode 100644 index 000000000000..57f4a5eb1f75 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/ResizeCluster.json @@ -0,0 +1,138 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1", + "ClusterResizeRequest": { + "location": "West US 2", + "properties": { + "targetWorkerNodeCount": 5 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", + "name": "cluster1", + "type": "Microsoft.HDInsight/clusterPools/clusters", + "properties": { + "provisioningState": "Succeeded", + "clusterType": "kafka", + "deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", + "computeProfile": { + "nodes": [ + { + "type": "worker", + "vmSize": "Standard_D3_v2", + "count": 3 + } + ] + }, + "clusterProfile": { + "clusterVersion": "1.0.1", + "ossVersion": "2.4.1", + "identityProfile": { + "msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", + "msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", + "msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" + }, + "authorizationProfile": { + "userIds": [ + "testuser1", + "testuser2" + ] + }, + "connectivityProfile": { + "web": { + "fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" + }, + "ssh": [ + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" + }, + { + "endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" + } + ] + }, + "kafkaProfile": {}, + "sshProfile": { + "count": 2, + "podPrefix": "sshnode" + }, + "autoscaleProfile": { + "enabled": true, + "autoscaleType": "ScheduleBased", + "gracefulDecommissionTimeout": 3600, + "scheduleBasedConfig": { + "defaultCount": 10, + "timeZone": "Cen. Australia Standard Time", + "schedules": [ + { + "days": [ + "Monday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 20 + }, + { + "days": [ + "Sunday" + ], + "startTime": "00:00", + "endTime": "12:00", + "count": 25 + } + ] + }, + "loadBasedConfig": { + "minNodes": 10, + "maxNodes": 20, + "pollInterval": 60, + "cooldownPeriod": 300, + "scalingRules": [ + { + "actionType": "scaleup", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "greaterThan", + "threshold": 90 + } + }, + { + "actionType": "scaledown", + "evaluationCount": 3, + "scalingMetric": "cpu", + "comparisonRule": { + "operator": "lessThan", + "threshold": 20 + } + } + ] + } + } + } + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + }, + "location": "West US 2" + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-06-01-preview" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/RunClusterJob.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/RunClusterJob.json new file mode 100644 index 000000000000..40db47287c4e --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/examples/RunClusterJob.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", + "resourceGroupName": "hiloResourcegroup", + "api-version": "2023-06-01-preview", + "clusterPoolName": "clusterpool1", + "clusterName": "cluster1", + "ClusterJob": { + "properties": { + "jobType": "FlinkJob", + "jobName": "flink-job-name", + "action": "START", + "jobJarDirectory": "abfs://flinkjob@hilosa.dfs.core.windows.net/jars", + "jarName": "flink-sleep-job-0.0.1-SNAPSHOT.jar", + "entryClass": "com.microsoft.hilo.flink.job.streaming.SleepJob", + "flinkConfiguration": { + "parallelism": "1", + "savepoint.directory": "abfs://flinkjob@hilosa.dfs.core.windows.net/savepoint" + } + } + } + }, + "responses": { + "202": { + "headers": { + "location": "http://azure.async.operation/status" + } + }, + "200": { + "body": { + "properties": { + "jobType": "FlinkJob", + "jobName": "flink-job-name", + "action": "START", + "jobJarDirectory": "abfs://flinkjob@hilosa.dfs.core.windows.net/jars", + "jarName": "flink-sleep-job-0.0.1-SNAPSHOT.jar", + "entryClass": "com.microsoft.hilo.flink.job.streaming.SleepJob", + "flinkConfiguration": { + "parallelism": "1", + "savepoint.directory": "abfs://flinkjob@hilosa.dfs.core.windows.net/savepoint" + } + } + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/hdinsight.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/hdinsight.json new file mode 100644 index 000000000000..04f27577871e --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/preview/2023-06-01-preview/hdinsight.json @@ -0,0 +1,3149 @@ +{ + "swagger": "2.0", + "info": { + "title": "HDInsight on AKS Management Client", + "description": "The HDInsight on AKS Management Client.", + "version": "2023-06-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}": { + "get": { + "description": "Gets a cluster pool.", + "operationId": "ClusterPools_Get", + "x-ms-examples": { + "ClusterPoolGet": { + "$ref": "./examples/GetClusterPool.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + } + ], + "responses": { + "200": { + "description": "Clusterpool details.", + "schema": { + "$ref": "#/definitions/ClusterPool" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "description": "Creates or updates a cluster pool.", + "operationId": "ClusterPools_CreateOrUpdate", + "x-ms-examples": { + "ClusterPoolPut": { + "$ref": "./examples/CreateClusterPool.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "name": "ClusterPool", + "description": "The Cluster Pool to create.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterPool" + } + } + ], + "responses": { + "201": { + "description": "ClusterPool is created.", + "schema": { + "$ref": "#/definitions/ClusterPool" + } + }, + "200": { + "description": "Update successful.", + "schema": { + "$ref": "#/definitions/ClusterPool" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "description": "Updates an existing Cluster Pool Tags.", + "operationId": "ClusterPools_UpdateTags", + "x-ms-examples": { + "ClusterPoolsPatchTags": { + "$ref": "./examples/PatchClusterPool.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "name": "clusterPoolTags", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsObject" + }, + "description": "Parameters supplied to update tags." + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/ClusterPool" + } + }, + "202": { + "description": "Accepted.", + "headers": { + "Location": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ClusterPool" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "description": "Deletes a Cluster Pool.", + "operationId": "ClusterPools_Delete", + "x-ms-examples": { + "ClusterPoolDelete": { + "$ref": "./examples/DeleteClusterPool.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + } + ], + "responses": { + "200": { + "description": "Successful." + }, + "202": { + "description": "Accepted response definition.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "No content - The Cluster Pool doesn't exist." + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusterpools": { + "get": { + "operationId": "ClusterPools_ListBySubscription", + "x-ms-examples": { + "ClusterPoolsListBySubscription": { + "$ref": "./examples/ListClusterPoolsSubscription.json" + } + }, + "description": "Gets the list of Cluster Pools within a Subscription.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Cluster Pools successfully returned.", + "schema": { + "$ref": "#/definitions/ClusterPoolListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools": { + "get": { + "operationId": "ClusterPools_ListByResourceGroup", + "x-ms-examples": { + "ClusterPoolsListByResourceGroup": { + "$ref": "./examples/ListClusterPools.json" + } + }, + "description": "Lists the HDInsight cluster pools under a resource group.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Cluster Pools successfully returned.", + "schema": { + "$ref": "#/definitions/ClusterPoolListResult" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters": { + "get": { + "operationId": "Clusters_ListByClusterPoolName", + "description": "Lists the HDInsight cluster pools under a resource group.", + "x-ms-examples": { + "HDInsightClustersListByClusterPoolName": { + "$ref": "./examples/ListClustersByClusterPoolName.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + } + ], + "responses": { + "200": { + "description": "Clusters successfully returned.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/resize": { + "post": { + "description": "Resize an existing Cluster.", + "operationId": "Clusters_Resize", + "x-ms-examples": { + "HDInsightClusterResize": { + "$ref": "./examples/ResizeCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "ClusterResizeRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResizeData" + }, + "description": "Resize a cluster." + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "Cluster resize request accepted.", + "headers": { + "location": { + "type": "string", + "description": "URL to get the status of the resize operation." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}": { + "get": { + "operationId": "Clusters_Get", + "description": "Gets a HDInsight cluster.", + "x-ms-examples": { + "HDInsightClusterGet": { + "$ref": "./examples/GetCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Cluster details.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "operationId": "Clusters_Create", + "description": "Creates a cluster.", + "x-ms-examples": { + "HDInsightClusterPut": { + "$ref": "./examples/CreateAutoscaleCluster.json" + }, + "HDInsightSparkClusterPut": { + "$ref": "./examples/CreateSparkCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "HDInsightCluster", + "in": "body", + "required": true, + "description": "The cluster to create.", + "schema": { + "$ref": "#/definitions/Cluster" + } + } + ], + "responses": { + "201": { + "description": "Cluster is created.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "200": { + "description": "Update successful.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "description": "Updates an existing Cluster.", + "operationId": "Clusters_Update", + "x-ms-examples": { + "HDInsightClustersPatchTags": { + "$ref": "./examples/PatchCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "ClusterPatchRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterPatch" + }, + "description": "Patch a cluster." + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "Accepted.", + "headers": { + "Location": { + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "operationId": "Clusters_Delete", + "description": "Deletes a cluster.", + "x-ms-examples": { + "HDInsightClustersDelete": { + "$ref": "./examples/DeleteCluster.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Successful." + }, + "202": { + "description": "Cluster delete request accepted.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "No content - The Cluster doesn't exist." + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/runJob": { + "post": { + "operationId": "ClusterJobs_RunJob", + "description": "Operations on jobs of HDInsight on AKS cluster.", + "x-ms-examples": { + "RunClusterJob": { + "$ref": "./examples/RunClusterJob.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "ClusterJob", + "description": "The Cluster job.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterJob" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/ClusterJob" + } + }, + "202": { + "description": "Run cluster job action request accepted.", + "headers": { + "location": { + "type": "string", + "description": "URL to get the status of the resize operation." + } + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/jobs": { + "get": { + "operationId": "ClusterJobs_List", + "description": "Get jobs of HDInsight on AKS cluster.", + "x-ms-examples": { + "ListClusterJobs": { + "$ref": "./examples/ListClusterJobs.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "Cluster job details.", + "schema": { + "$ref": "#/definitions/ClusterJobList" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/serviceConfigs": { + "get": { + "operationId": "Clusters_ListServiceConfigs", + "description": "Lists the config dump of all services running in cluster.", + "x-ms-examples": { + "HDInsightClusterGetServiceConfigs": { + "$ref": "./examples/ListClusterServiceConfigs.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceConfigListResult" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability": { + "post": { + "description": "Check the availability of the resource name.", + "operationId": "Locations_CheckNameAvailability", + "x-ms-examples": { + "LocationsNameAvailability": { + "$ref": "./examples/LocationsNameAvailability.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "name": "NameAvailabilityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityParameters" + }, + "description": "The name and type of the resource." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/NameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/instanceViews": { + "get": { + "operationId": "Clusters_ListInstanceViews", + "x-ms-examples": { + "HDInsightClusterGetInstanceViews": { + "$ref": "./examples/ListClusterInstanceViews.json" + } + }, + "description": "Lists the lists of instance views", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterInstanceViewsResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/instanceViews/default": { + "get": { + "operationId": "Clusters_GetInstanceView", + "description": "Gets the status of a cluster instance.", + "x-ms-examples": { + "HDInsightClusterGetInstanceView": { + "$ref": "./examples/GetClusterInstanceView.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClusterPoolNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ClusterInstanceViewResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.HDInsight/operations": { + "get": { + "description": "Returns list of operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "ListOperations": { + "$ref": "./examples/GetOperations.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation details.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/availableClusterPoolVersions": { + "get": { + "description": "Returns a list of available cluster pool versions.", + "operationId": "AvailableClusterPoolVersions_ListByLocation", + "x-ms-examples": { + "ClusterPoolVersionListResult": { + "$ref": "./examples/ListAvailableClusterPoolVersions.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Available cluster pool versions successfully returned.", + "schema": { + "$ref": "#/definitions/ClusterPoolVersionsListResult" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/availableClusterVersions": { + "get": { + "description": "Returns a list of available cluster versions.", + "operationId": "AvailableClusterVersions_ListByLocation", + "x-ms-examples": { + "ClusterVersionListResult": { + "$ref": "./examples/ListAvailableClusterVersions.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Available cluster versions successfully returned.", + "schema": { + "$ref": "#/definitions/ClusterVersionsListResult" + } + }, + "default": { + "description": "Error Response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ClusterPoolListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterPool" + }, + "description": "The list of cluster pools." + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.", + "readOnly": true + } + }, + "description": "The list cluster pools operation response." + }, + "ClusterPoolProfile": { + "type": "object", + "description": "Cluster pool profile.", + "required": [ + "clusterPoolVersion" + ], + "properties": { + "clusterPoolVersion": { + "$ref": "#/definitions/ClusterPoolVersionPattern" + } + } + }, + "ClusterPoolComputeProfile": { + "type": "object", + "description": "Cluster pool compute profile.", + "required": [ + "vmSize" + ], + "properties": { + "vmSize": { + "type": "string", + "description": "The virtual machine SKU.", + "pattern": "^[a-zA-Z0-9_\\-]{0,256}$" + }, + "count": { + "description": "The number of virtual machines.", + "type": "integer", + "format": "int32", + "default": 3, + "maximum": 10, + "minimum": 3 + } + } + }, + "ClusterPoolNetworkProfile": { + "type": "object", + "description": "Cluster pool networking configuration.", + "required": [ + "subnetId" + ], + "properties": { + "subnetId": { + "type": "string", + "description": "Cluster pool subnet resource id.", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } + } + } + }, + "ClusterPoolLogAnalyticsProfile": { + "type": "object", + "description": "Cluster pool log analytics profile used to enable or disable OMS agent for AKS cluster.", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "description": "True if log analytics is enabled for cluster pool, otherwise false." + }, + "workspaceId": { + "type": "string", + "description": "Log analytics workspace to associate with the OMS agent.", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.OperationalInsights/workspaces" + } + ] + } + } + } + }, + "AksClusterProfile": { + "type": "object", + "description": "Properties of the cluster pool underlying AKS cluster.", + "properties": { + "aksClusterResourceId": { + "type": "string", + "description": "ARM Resource ID of the AKS cluster", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ContainerService/managedClusters" + } + ] + } + }, + "aksClusterAgentPoolIdentityProfile": { + "description": "Identity properties of the AKS cluster agentpool MSI", + "allOf": [ + { + "$ref": "#/definitions/IdentityProfile" + } + ] + }, + "aksVersion": { + "type": "string", + "description": "AKS control plane and default node pool version of this ClusterPool", + "readOnly": true + } + } + }, + "ClusterPoolResourceProperties": { + "type": "object", + "required": [ + "computeProfile" + ], + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string", + "enum": [ + "Accepted", + "Succeeded", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStatus", + "modelAsString": true + }, + "readOnly": true + }, + "deploymentId": { + "type": "string", + "description": "A unique id generated by the RP to identify the resource.", + "example": "45cd32aead6e4a91b079a0cdbfac8c36", + "readOnly": true + }, + "managedResourceGroupName": { + "type": "string", + "description": "A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.", + "minLength": 1, + "maxLength": 40, + "example": "hdi-45cd32aead6e4a91b079a0cdbfac8c36" + }, + "aksManagedResourceGroupName": { + "type": "string", + "description": "A resource group created by AKS, to hold the infrastructure resources created by AKS on-behalf of customers. It is generated by cluster pool name and managed resource group name by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}", + "readOnly": true, + "example": "MC_hdi-45cd32aead6e4a91b079a0cdbfac8c36_test-pool_eastus" + }, + "clusterPoolProfile": { + "description": "CLuster pool profile.", + "allOf": [ + { + "$ref": "#/definitions/ClusterPoolProfile" + } + ] + }, + "computeProfile": { + "description": "CLuster pool compute profile.", + "allOf": [ + { + "$ref": "#/definitions/ClusterPoolComputeProfile" + } + ] + }, + "aksClusterProfile": { + "description": "Properties of underlying AKS cluster.", + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/AksClusterProfile" + } + ] + }, + "networkProfile": { + "description": "Cluster pool network profile.", + "allOf": [ + { + "$ref": "#/definitions/ClusterPoolNetworkProfile" + } + ] + }, + "logAnalyticsProfile": { + "description": "Cluster pool log analytics profile to enable OMS agent for AKS cluster.", + "allOf": [ + { + "$ref": "#/definitions/ClusterPoolLogAnalyticsProfile" + } + ] + }, + "status": { + "type": "string", + "description": "Business status of the resource.", + "example": "Running", + "readOnly": true + } + }, + "description": "Cluster pool resource properties." + }, + "ClusterPool": { + "type": "object", + "description": "Cluster pool.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Gets or sets the properties. Define cluster pool specific properties.", + "$ref": "#/definitions/ClusterPoolResourceProperties" + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", + "description": "SystemData of cluster pool.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + }, + "ClusterListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of clusters." + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "The list cluster operation response." + }, + "ClusterLogAnalyticsProfile": { + "type": "object", + "description": "Cluster log analytics profile to enable or disable OMS agent for cluster.", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "description": "True if log analytics is enabled for the cluster, otherwise false." + }, + "applicationLogs": { + "$ref": "#/definitions/ClusterLogAnalyticsApplicationLogs" + }, + "metricsEnabled": { + "type": "boolean", + "description": "True if metrics are enabled, otherwise false." + } + } + }, + "ClusterLogAnalyticsApplicationLogs": { + "type": "object", + "description": "Collection of logs to be enabled or disabled for log analytics.", + "properties": { + "stdOutEnabled": { + "type": "boolean", + "description": "True if stdout is enabled, otherwise false." + }, + "stdErrorEnabled": { + "type": "boolean", + "description": "True if stderror is enabled, otherwise false." + } + } + }, + "ClusterPrometheusProfile": { + "type": "object", + "description": "Cluster Prometheus profile.", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable Prometheus for cluster or not.", + "default": false + } + } + }, + "IdentityProfile": { + "type": "object", + "description": "Identity Profile with details of an MSI.", + "required": [ + "msiResourceId", + "msiClientId", + "msiObjectId" + ], + "properties": { + "msiResourceId": { + "type": "string", + "description": "ResourceId of the MSI.", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ManagedIdentity/userAssignedIdentities" + } + ] + } + }, + "msiClientId": { + "type": "string", + "description": "ClientId of the MSI.", + "pattern": "^[{(]?[0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}[)}]?$" + }, + "msiObjectId": { + "type": "string", + "description": "ObjectId of the MSI.", + "pattern": "^[{(]?[0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}[)}]?$" + } + } + }, + "AuthorizationProfile": { + "type": "object", + "description": "Authorization profile with details of AAD user Ids and group Ids authorized for data plane access.", + "properties": { + "userIds": { + "type": "array", + "description": "AAD user Ids authorized for data plane access.", + "items": { + "type": "string" + } + }, + "groupIds": { + "type": "array", + "description": "AAD group Ids authorized for data plane access.", + "items": { + "type": "string" + } + } + } + }, + "SecretReference": { + "type": "object", + "description": "Secret reference and corresponding properties of a key vault secret.", + "required": [ + "referenceName", + "type", + "keyVaultObjectName" + ], + "properties": { + "referenceName": { + "type": "string", + "description": "Reference name of the secret to be used in service configs." + }, + "type": { + "type": "string", + "description": "Type of key vault object: secret, key or certificate.", + "enum": [ + "Key", + "Secret", + "Certificate" + ], + "x-ms-enum": { + "name": "KeyVaultObjectType", + "modelAsString": true + } + }, + "version": { + "type": "string", + "description": "Version of the secret in key vault." + }, + "keyVaultObjectName": { + "type": "string", + "description": "Object identifier name of the secret in key vault.", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,126}$" + } + } + }, + "SecretsProfile": { + "type": "object", + "description": "The cluster secret profile.", + "required": [ + "keyVaultResourceId" + ], + "properties": { + "keyVaultResourceId": { + "type": "string", + "description": "Name of the user Key Vault where all the cluster specific user secrets are stored.", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.KeyVault/vaults" + } + ] + } + }, + "secrets": { + "type": "array", + "description": "Properties of Key Vault secret.", + "items": { + "$ref": "#/definitions/SecretReference" + }, + "x-ms-identifiers": [] + } + } + }, + "ClusterConfigFile": { + "type": "object", + "description": "Cluster configuration files.", + "required": [ + "fileName" + ], + "properties": { + "fileName": { + "type": "string", + "description": "Configuration file name.", + "example": "hive-conf.xml." + }, + "content": { + "type": "string", + "description": "Free form content of the entire configuration file." + }, + "encoding": { + "type": "string", + "description": "This property indicates if the content is encoded and is case-insensitive. Please set the value to base64 if the content is base64 encoded. Set it to none or skip it if the content is plain text.", + "enum": [ + "Base64", + "None" + ], + "x-ms-enum": { + "name": "ContentEncoding", + "modelAsString": true + } + }, + "path": { + "type": "string", + "description": "Path of the config file if content is specified." + }, + "values": { + "type": "object", + "description": "List of key value pairs\nwhere key represents a valid service configuration name and value represents the value of the config.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ClusterServiceConfig": { + "type": "object", + "description": "Cluster configs per component.", + "required": [ + "component", + "files" + ], + "properties": { + "component": { + "type": "string", + "description": "Name of the component the config files should apply to." + }, + "files": { + "type": "array", + "description": "List of Config Files.", + "items": { + "$ref": "#/definitions/ClusterConfigFile" + }, + "x-ms-identifiers": [] + } + } + }, + "ClusterServiceConfigsProfile": { + "type": "object", + "description": "Cluster service configs.", + "required": [ + "serviceName", + "configs" + ], + "properties": { + "serviceName": { + "type": "string", + "description": "Name of the service the configurations should apply to." + }, + "configs": { + "type": "array", + "description": "List of service configs.", + "items": { + "$ref": "#/definitions/ClusterServiceConfig" + }, + "x-ms-identifiers": [] + } + } + }, + "ConnectivityProfile": { + "type": "object", + "description": "Cluster connectivity profile.", + "required": [ + "web" + ], + "properties": { + "web": { + "description": "Web connectivity endpoint details.", + "allOf": [ + { + "$ref": "#/definitions/WebConnectivityEndpoint" + } + ] + }, + "ssh": { + "type": "array", + "description": "List of SSH connectivity endpoints.", + "items": { + "$ref": "#/definitions/SshConnectivityEndpoint" + }, + "x-ms-identifiers": [] + } + }, + "readOnly": true + }, + "WebConnectivityEndpoint": { + "type": "object", + "description": "Web connectivity endpoint details.", + "required": [ + "fqdn" + ], + "properties": { + "fqdn": { + "type": "string", + "description": "Web connectivity endpoint.", + "example": "clusterName11223344.clusterPoolName55667788.eastus.hdinsightaks.net" + } + }, + "readOnly": true + }, + "SshConnectivityEndpoint": { + "type": "object", + "description": "SSH connectivity endpoint details.", + "required": [ + "endpoint" + ], + "properties": { + "endpoint": { + "type": "string", + "description": "SSH connectivity endpoint.", + "example": "clusterName11223344.clusterPoolName55667788.eastus.hdinsightaks.net/ssh/host/podPrefix-0" + } + } + }, + "ClusterProfile": { + "type": "object", + "required": [ + "identityProfile", + "authorizationProfile", + "clusterVersion", + "ossVersion" + ], + "properties": { + "clusterVersion": { + "$ref": "#/definitions/ThreeOrFourPartVersionPattern" + }, + "ossVersion": { + "$ref": "#/definitions/ThreePartVersionPattern" + }, + "components": { + "$ref": "#/definitions/ClusterComponents" + }, + "identityProfile": { + "$ref": "#/definitions/IdentityProfile" + }, + "authorizationProfile": { + "$ref": "#/definitions/AuthorizationProfile" + }, + "secretsProfile": { + "$ref": "#/definitions/SecretsProfile" + }, + "serviceConfigsProfiles": { + "type": "array", + "description": "The service configs profiles.", + "items": { + "$ref": "#/definitions/ClusterServiceConfigsProfile" + }, + "x-ms-identifiers": [] + }, + "connectivityProfile": { + "$ref": "#/definitions/ConnectivityProfile" + }, + "logAnalyticsProfile": { + "$ref": "#/definitions/ClusterLogAnalyticsProfile" + }, + "prometheusProfile": { + "$ref": "#/definitions/ClusterPrometheusProfile" + }, + "sshProfile": { + "$ref": "#/definitions/SshProfile" + }, + "autoscaleProfile": { + "$ref": "#/definitions/AutoscaleProfile" + }, + "kafkaProfile": { + "type": "object", + "description": "Kafka cluster profile.", + "additionalProperties": true + }, + "trinoProfile": { + "$ref": "#/definitions/TrinoProfile" + }, + "llapProfile": { + "type": "object", + "description": "LLAP cluster profile.", + "additionalProperties": true + }, + "flinkProfile": { + "$ref": "#/definitions/FlinkProfile" + }, + "sparkProfile": { + "$ref": "#/definitions/SparkProfile" + }, + "stubProfile": { + "type": "object", + "description": "Stub cluster profile.", + "additionalProperties": true + }, + "scriptActionProfiles": { + "$ref": "#/definitions/ScriptActionProfiles" + } + }, + "description": "Cluster profile." + }, + "SshProfile": { + "type": "object", + "description": "Ssh profile for the cluster.", + "required": [ + "count" + ], + "properties": { + "count": { + "type": "integer", + "description": "Number of ssh pods per cluster.", + "format": "int32", + "maximum": 5.0, + "minimum": 0.0 + }, + "podPrefix": { + "type": "string", + "description": "Prefix of the pod names. Pod number will be appended to the prefix. The ingress URLs for the pods will be available at //-", + "readOnly": true + } + } + }, + "AutoscaleProfile": { + "type": "object", + "description": "This is the Autoscale profile for the cluster. This will allow customer to create cluster enabled with Autoscale.", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "description": "This indicates whether auto scale is enabled on HDInsight on AKS cluster." + }, + "gracefulDecommissionTimeout": { + "type": "integer", + "format": "int32", + "description": "This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout." + }, + "autoscaleType": { + "type": "string", + "description": "User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.", + "enum": [ + "ScheduleBased", + "LoadBased" + ], + "x-ms-enum": { + "name": "AutoscaleType", + "modelAsString": true + } + }, + "scheduleBasedConfig": { + "description": "Profiles of schedule based Autoscale.", + "$ref": "#/definitions/ScheduleBasedConfig" + }, + "loadBasedConfig": { + "description": "Profiles of load based Autoscale.", + "$ref": "#/definitions/LoadBasedConfig" + } + } + }, + "ScheduleBasedConfig": { + "type": "object", + "description": "Profile of schedule based Autoscale.", + "required": [ + "timeZone", + "defaultCount", + "schedules" + ], + "properties": { + "timeZone": { + "type": "string", + "description": "User has to specify the timezone on which the schedule has to be set for schedule based autoscale configuration." + }, + "defaultCount": { + "type": "integer", + "format": "int32", + "description": "Setting default node count of current schedule configuration. Default node count specifies the number of nodes which are default when an specified scaling operation is executed (scale up/scale down)" + }, + "schedules": { + "type": "array", + "description": "This specifies the schedules where scheduled based Autoscale to be enabled, the user has a choice to set multiple rules within the schedule across days and times (start/end).", + "items": { + "$ref": "#/definitions/Schedule" + }, + "x-ms-identifiers": [] + } + } + }, + "Schedule": { + "type": "object", + "description": "Schedule definition.", + "required": [ + "days", + "startTime", + "endTime", + "count" + ], + "properties": { + "startTime": { + "type": "string", + "pattern": "^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$", + "description": "User has to set the start time of current schedule configuration, format like 10:30 (HH:MM)." + }, + "endTime": { + "type": "string", + "pattern": "^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$", + "description": "User has to set the end time of current schedule configuration, format like 10:30 (HH:MM)." + }, + "count": { + "type": "integer", + "format": "int32", + "description": "User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer." + }, + "days": { + "type": "array", + "description": "User has to set the days where schedule has to be set for autoscale operation.", + "items": { + "type": "string", + "enum": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + "x-ms-enum": { + "name": "ScheduleDay", + "modelAsString": true + } + } + } + } + }, + "LoadBasedConfig": { + "type": "object", + "description": "Profile of load based Autoscale.", + "required": [ + "minNodes", + "maxNodes", + "scalingRules" + ], + "properties": { + "minNodes": { + "type": "integer", + "format": "int32", + "description": "User needs to set the minimum number of nodes for load based scaling, the load based scaling will use this to scale up and scale down between minimum and maximum number of nodes." + }, + "maxNodes": { + "type": "integer", + "format": "int32", + "description": "User needs to set the maximum number of nodes for load based scaling, the load based scaling will use this to scale up and scale down between minimum and maximum number of nodes." + }, + "pollInterval": { + "type": "integer", + "format": "int32", + "description": "User can specify the poll interval, this is the time period (in seconds) after which scaling metrics are polled for triggering a scaling operation." + }, + "cooldownPeriod": { + "type": "integer", + "format": "int32", + "description": "This is a cool down period, this is a time period in seconds, which determines the amount of time that must elapse between a scaling activity started by a rule and the start of the next scaling activity, regardless of the rule that triggers it. The default value is 300 seconds." + }, + "scalingRules": { + "type": "array", + "description": "The scaling rules.", + "items": { + "$ref": "#/definitions/ScalingRule" + }, + "x-ms-identifiers": [] + } + } + }, + "ScalingRule": { + "type": "object", + "description": "The scaling rule.", + "required": [ + "actionType", + "comparisonRule", + "evaluationCount", + "scalingMetric" + ], + "properties": { + "actionType": { + "type": "string", + "description": "The action type.", + "enum": [ + "scaleup", + "scaledown" + ], + "x-ms-enum": { + "name": "ScaleActionType", + "modelAsString": true + } + }, + "evaluationCount": { + "type": "integer", + "format": "int32", + "description": "This is an evaluation count for a scaling condition, the number of times a trigger condition should be successful, before scaling activity is triggered." + }, + "scalingMetric": { + "type": "string", + "description": "Metrics name for individual workloads. For example: cpu" + }, + "comparisonRule": { + "$ref": "#/definitions/ComparisonRule" + } + } + }, + "ComparisonRule": { + "type": "object", + "description": "The comparison rule.", + "required": [ + "operator", + "threshold" + ], + "properties": { + "operator": { + "type": "string", + "description": "The comparison operator.", + "enum": [ + "greaterThan", + "greaterThanOrEqual", + "lessThan", + "lessThanOrEqual" + ], + "x-ms-enum": { + "name": "ComparisonOperator", + "modelAsString": true + } + }, + "threshold": { + "type": "number", + "description": "Threshold setting." + } + } + }, + "TrinoProfile": { + "type": "object", + "description": "Trino Cluster profile.", + "properties": { + "catalogOptions": { + "$ref": "#/definitions/CatalogOptions" + }, + "coordinator": { + "$ref": "#/definitions/TrinoCoordinator" + }, + "userPluginsSpec": { + "$ref": "#/definitions/TrinoUserPlugins" + }, + "userTelemetrySpec": { + "$ref": "#/definitions/TrinoUserTelemetry" + }, + "worker": { + "$ref": "#/definitions/TrinoWorker" + } + } + }, + "CatalogOptions": { + "type": "object", + "description": "Trino cluster catalog options.", + "properties": { + "hive": { + "type": "array", + "description": "hive catalog options.", + "items": { + "$ref": "#/definitions/HiveCatalogOption" + }, + "x-ms-identifiers": [] + } + } + }, + "HiveCatalogOption": { + "type": "object", + "description": "Hive Catalog Option", + "required": [ + "catalogName", + "metastoreDbConnectionURL", + "metastoreDbConnectionUserName", + "metastoreDbConnectionPasswordSecret", + "metastoreWarehouseDir" + ], + "properties": { + "catalogName": { + "description": "Name of trino catalog which should use specified hive metastore.", + "minLength": 1, + "type": "string" + }, + "metastoreDbConnectionPasswordSecret": { + "description": "Secret reference name from secretsProfile.secrets containing password for database connection.", + "type": "string" + }, + "metastoreDbConnectionURL": { + "description": "Connection string for hive metastore database.", + "type": "string" + }, + "metastoreDbConnectionUserName": { + "description": "User name for database connection.", + "type": "string" + }, + "metastoreWarehouseDir": { + "description": "Metastore root directory URI, format: abfs[s]://@.dfs.core.windows.net/. More details: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri", + "type": "string" + } + } + }, + "FlinkCatalogOptions": { + "type": "object", + "description": "Flink cluster catalog options.", + "properties": { + "hive": { + "$ref": "#/definitions/FlinkHiveCatalogOption" + } + } + }, + "FlinkHiveCatalogOption": { + "type": "object", + "description": "Hive Catalog Option for Flink cluster.", + "required": [ + "metastoreDbConnectionURL", + "metastoreDbConnectionUserName", + "metastoreDbConnectionPasswordSecret" + ], + "properties": { + "metastoreDbConnectionPasswordSecret": { + "description": "Secret reference name from secretsProfile.secrets containing password for database connection.", + "type": "string" + }, + "metastoreDbConnectionURL": { + "description": "Connection string for hive metastore database.", + "type": "string" + }, + "metastoreDbConnectionUserName": { + "description": "User name for database connection.", + "type": "string" + } + } + }, + "TrinoCoordinator": { + "type": "object", + "description": "Trino Coordinator.", + "properties": { + "debug": { + "$ref": "#/definitions/TrinoDebugConfig", + "x-ms-client-flatten": true + }, + "highAvailabilityEnabled": { + "type": "boolean", + "description": "The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.", + "default": true + } + } + }, + "TrinoWorker": { + "type": "object", + "description": "Trino worker.", + "properties": { + "debug": { + "$ref": "#/definitions/TrinoDebugConfig", + "x-ms-client-flatten": true + } + } + }, + "TrinoDebugConfig": { + "type": "object", + "description": "Trino debug configuration.", + "properties": { + "enable": { + "type": "boolean", + "description": "The flag that if enable debug or not.", + "default": false + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The debug port.", + "default": 8008 + }, + "suspend": { + "type": "boolean", + "description": "The flag that if suspend debug or not.", + "default": false + } + } + }, + "TrinoUserTelemetry": { + "type": "object", + "description": "User telemetry", + "properties": { + "storage": { + "$ref": "#/definitions/TrinoTelemetryConfig" + } + } + }, + "TrinoTelemetryConfig": { + "type": "object", + "description": "Trino user telemetry definition.", + "properties": { + "hivecatalogName": { + "type": "string", + "description": "Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.", + "minLength": 1 + }, + "hivecatalogSchema": { + "type": "string", + "description": "Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.", + "default": "trinologs" + }, + "partitionRetentionInDays": { + "type": "integer", + "description": "Retention period for query log table partitions, this doesn't have any affect on actual data.", + "format": "int32", + "default": 365 + }, + "path": { + "type": "string", + "description": "Azure storage location of the blobs.", + "minLength": 1 + } + } + }, + "TrinoUserPlugins": { + "type": "object", + "description": "Trino user plugins spec", + "properties": { + "plugins": { + "type": "array", + "description": "Trino user plugins.", + "items": { + "$ref": "#/definitions/TrinoUserPlugin" + }, + "x-ms-identifiers": [] + } + } + }, + "TrinoUserPlugin": { + "type": "object", + "description": "Trino user plugin.", + "properties": { + "enabled": { + "type": "boolean", + "description": "Denotes whether the plugin is active or not." + }, + "name": { + "type": "string", + "description": "This field maps to the sub-directory in trino plugins location, that will contain all the plugins under path.", + "minLength": 1 + }, + "path": { + "type": "string", + "description": "Fully qualified path to the folder containing the plugins.", + "minLength": 1, + "pattern": "^(https)|(abfss)://.*$" + } + } + }, + "SparkProfile": { + "type": "object", + "description": "The spark cluster profile.", + "properties": { + "defaultStorageUrl": { + "type": "string", + "description": "The default storage URL." + }, + "metastoreSpec": { + "$ref": "#/definitions/SparkMetastoreSpec" + }, + "userPluginsSpec": { + "$ref": "#/definitions/SparkUserPlugins" + } + } + }, + "SparkUserPlugins": { + "type": "object", + "description": "Spark user plugins spec", + "properties": { + "plugins": { + "type": "array", + "description": "Spark user plugins.", + "items": { + "$ref": "#/definitions/SparkUserPlugin" + }, + "x-ms-identifiers": [] + } + } + }, + "SparkUserPlugin": { + "type": "object", + "description": "Spark user plugin.", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string", + "description": "Fully qualified path to the folder containing the plugins.", + "minLength": 1, + "pattern": "^(https)|(abfss)://.*$" + } + } + }, + "ScriptActionProfiles": { + "type": "array", + "description": "The script action profile list.", + "items": { + "$ref": "#/definitions/ScriptActionProfile" + }, + "x-ms-identifiers": [] + }, + "ScriptActionProfile": { + "type": "object", + "description": "The script action profile.", + "required": [ + "name", + "type", + "url", + "services" + ], + "properties": { + "type": { + "type": "string", + "description": "Type of the script action. Supported type is bash scripts." + }, + "name": { + "type": "string", + "description": "Script name." + }, + "url": { + "type": "string", + "description": "Url of the script file.", + "pattern": "^(https)|(http)|(abfss)|(abfs)|(wasbs)|(wasb)://.*$" + }, + "parameters": { + "type": "string", + "description": "Additional parameters for the script action. It should be space-separated list of arguments required for script execution." + }, + "services": { + "items": { + "type": "string" + }, + "type": "array", + "description": "List of services to apply the script action." + }, + "timeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "Timeout duration for the script action in minutes." + }, + "shouldPersist": { + "type": "boolean", + "default": true, + "description": "Specify if the script should persist on the cluster." + } + } + }, + "SparkMetastoreSpec": { + "type": "object", + "description": "The metastore specification for Spark cluster.", + "required": [ + "dbServerHost", + "dbUserName", + "dbPasswordSecretName", + "keyVaultId" + ], + "properties": { + "dbServerHost": { + "type": "string", + "description": "The database server host." + }, + "dbName": { + "type": "string", + "description": "The database name." + }, + "dbUserName": { + "type": "string", + "description": "The database user name." + }, + "dbPasswordSecretName": { + "type": "string", + "description": "The secret name which contains the database user password." + }, + "keyVaultId": { + "type": "string", + "description": "The key vault resource id." + }, + "thriftUrl": { + "type": "string", + "description": "The thrift url." + } + } + }, + "FlinkProfile": { + "type": "object", + "description": "The Flink cluster profile.", + "required": [ + "storage", + "jobManager", + "taskManager" + ], + "properties": { + "storage": { + "$ref": "#/definitions/FlinkStorageProfile" + }, + "numReplicas": { + "type": "integer", + "format": "int32", + "description": "The number of task managers." + }, + "jobManager": { + "description": "Job Manager container/ process CPU and memory requirements", + "$ref": "#/definitions/ComputeResourceDefinition" + }, + "historyServer": { + "description": "History Server container/ process CPU and memory requirements", + "$ref": "#/definitions/ComputeResourceDefinition" + }, + "taskManager": { + "description": "Task Manager container/ process CPU and memory requirements", + "$ref": "#/definitions/ComputeResourceDefinition" + }, + "catalogOptions": { + "$ref": "#/definitions/FlinkCatalogOptions" + } + } + }, + "FlinkStorageProfile": { + "type": "object", + "description": "The storage profile", + "required": [ + "storageUri" + ], + "properties": { + "storageUri": { + "type": "string", + "pattern": "^(\\w{4,5})://(.*)@(.*).\\b(blob|dfs)\\b\\.core\\.windows\\.net$", + "description": "Storage account uri which is used for savepoint and checkpoint state." + }, + "storagekey": { + "type": "string", + "description": "Storage key is only required for wasb(s) storage.", + "x-ms-secret": true + } + } + }, + "ComputeResourceDefinition": { + "type": "object", + "description": "The cpu and memory requirement definition.", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "type": "number", + "format": "float", + "description": "The required CPU." + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "The required memory in MB, Container memory will be 110 percentile" + } + } + }, + "ClusterResourceProperties": { + "type": "object", + "required": [ + "clusterType", + "computeProfile", + "clusterProfile" + ], + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "type": "string", + "enum": [ + "Accepted", + "Succeeded", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStatus", + "modelAsString": true + }, + "readOnly": true + }, + "clusterType": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The type of cluster.", + "pattern": "^[a-zA-Z][a-zA-Z0-9]{0,31}$" + }, + "deploymentId": { + "type": "string", + "description": "A unique id generated by the RP to identify the resource.", + "example": "45cd32aead6e4a91b079a0cdbfac8c36", + "readOnly": true + }, + "computeProfile": { + "description": "The compute profile.", + "$ref": "#/definitions/ComputeProfile" + }, + "clusterProfile": { + "$ref": "#/definitions/ClusterProfile" + }, + "status": { + "type": "string", + "description": "Business status of the resource.", + "example": "Running", + "readOnly": true + } + }, + "description": "Cluster resource properties." + }, + "ComputeProfile": { + "type": "object", + "description": "The compute profile.", + "required": [ + "nodes" + ], + "properties": { + "nodes": { + "type": "array", + "description": "The nodes definitions.", + "items": { + "$ref": "#/definitions/NodeProfile" + }, + "x-ms-identifiers": [] + } + } + }, + "NodeProfile": { + "type": "object", + "description": "The node profile.", + "required": [ + "type", + "vmSize", + "count" + ], + "properties": { + "type": { + "type": "string", + "description": "The node type.", + "pattern": "^(head|Head|HEAD|worker|Worker|WORKER)$" + }, + "vmSize": { + "type": "string", + "description": "The virtual machine SKU.", + "pattern": "^[a-zA-Z0-9_\\-]{0,256}$" + }, + "count": { + "description": "The number of virtual machines.", + "type": "integer", + "format": "int32", + "minimum": 1.0 + } + } + }, + "Cluster": { + "type": "object", + "description": "The cluster.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Gets or sets the properties. Define cluster specific properties.", + "$ref": "#/definitions/ClusterResourceProperties" + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", + "description": "SystemData of cluster.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "ClusterPatch": { + "type": "object", + "description": "The patch for a cluster.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Define cluster patch specific properties.", + "$ref": "#/definitions/ClusterPatchProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "ClusterPatchProperties": { + "type": "object", + "description": "Cluster resource patch data.", + "properties": { + "clusterProfile": { + "$ref": "#/definitions/UpdatableClusterProfile" + } + } + }, + "UpdatableClusterProfile": { + "type": "object", + "properties": { + "serviceConfigsProfiles": { + "type": "array", + "description": "The service configs profiles.", + "items": { + "$ref": "#/definitions/ClusterServiceConfigsProfile" + }, + "x-ms-identifiers": [] + }, + "sshProfile": { + "$ref": "#/definitions/SshProfile" + }, + "autoscaleProfile": { + "$ref": "#/definitions/AutoscaleProfile" + }, + "authorizationProfile": { + "$ref": "#/definitions/AuthorizationProfile" + }, + "logAnalyticsProfile": { + "$ref": "#/definitions/ClusterLogAnalyticsProfile" + }, + "prometheusProfile": { + "$ref": "#/definitions/ClusterPrometheusProfile" + }, + "scriptActionProfiles": { + "$ref": "#/definitions/ScriptActionProfiles" + } + }, + "description": "Cluster resource patch properties." + }, + "ClusterResizeData": { + "type": "object", + "description": "The parameters for resizing a cluster.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Sets the properties. Define cluster resize specific properties.", + "$ref": "#/definitions/ClusterResizeProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "ClusterResizeProperties": { + "type": "object", + "description": "The properties for resizing a cluster.", + "required": [ + "targetWorkerNodeCount" + ], + "properties": { + "targetWorkerNodeCount": { + "type": "integer", + "format": "int32", + "description": "Target node count of worker node." + } + } + }, + "ServiceConfigListResult": { + "type": "object", + "description": "Cluster instance service configs api response.", + "properties": { + "value": { + "type": "array", + "description": "Cluster instance service config array.", + "items": { + "$ref": "#/definitions/ServiceConfigResult" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.", + "readOnly": true + } + } + }, + "ServiceConfigResult": { + "type": "object", + "description": "Cluster instance service config.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Cluster instance service config properties.", + "allOf": [ + { + "$ref": "#/definitions/ServiceConfigListResultProperties" + } + ] + } + } + }, + "ServiceConfigListResultProperties": { + "type": "object", + "properties": { + "serviceName": { + "type": "string", + "description": "Service Config Name." + }, + "fileName": { + "type": "string", + "description": "File Name." + }, + "content": { + "type": "string", + "description": "Content in the service config file." + }, + "componentName": { + "type": "string", + "description": "Component Name." + }, + "type": { + "type": "string", + "description": "Config type." + }, + "path": { + "type": "string", + "description": "Config file path." + }, + "customKeys": { + "type": "object", + "description": "The custom keys.", + "additionalProperties": { + "type": "string" + } + }, + "defaultKeys": { + "type": "object", + "description": "The default keys.", + "additionalProperties": { + "$ref": "#/definitions/ServiceConfigListResultValueEntity" + } + } + }, + "required": [ + "serviceName", + "componentName", + "fileName" + ], + "description": "Service config response." + }, + "ServiceConfigListResultValueEntity": { + "type": "object", + "description": "Default config details.", + "properties": { + "value": { + "type": "string", + "description": "Config value." + }, + "description": { + "type": "string", + "description": "Config description." + } + }, + "required": [ + "value" + ] + }, + "ClusterInstanceViewsResult": { + "type": "object", + "properties": { + "value": { + "items": { + "$ref": "#/definitions/ClusterInstanceViewResult" + }, + "type": "array", + "description": "Cluster instance view array.", + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "The instance view of a HDInsight Cluster." + }, + "ClusterInstanceViewResult": { + "type": "object", + "description": "Cluster Instance View.", + "required": [ + "name", + "properties" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the instance view." + }, + "properties": { + "description": "Properties of the instance view.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/ClusterInstanceViewProperties" + } + ] + } + } + }, + "ClusterInstanceViewProperties": { + "type": "object", + "description": "Cluster Instance View Properties.", + "required": [ + "status", + "serviceStatuses" + ], + "properties": { + "status": { + "description": "Status of the instance view.", + "allOf": [ + { + "$ref": "#/definitions/ClusterInstanceViewStatus" + } + ] + }, + "serviceStatuses": { + "type": "array", + "description": "List of statuses of relevant services that make up the HDInsight on aks cluster to surface to the customer.", + "items": { + "$ref": "#/definitions/ServiceStatus" + }, + "x-ms-identifiers": [] + } + } + }, + "ClusterInstanceViewStatus": { + "type": "object", + "description": "Status of the instance view.", + "required": [ + "ready" + ], + "properties": { + "ready": { + "type": "string", + "description": "The cluster ready status" + }, + "reason": { + "type": "string", + "description": "The status reason." + }, + "message": { + "type": "string", + "description": "The additional message." + } + } + }, + "ServiceStatus": { + "type": "object", + "description": "Describes the status of a service of a HDInsight on aks cluster.", + "required": [ + "kind", + "ready" + ], + "properties": { + "kind": { + "type": "string", + "description": "Kind of the service. E.g. \"Zookeeper\"." + }, + "ready": { + "type": "string", + "description": "Indicates if the service is ready / healthy. Values can be \"true\", \"false\", \"unknown\" or anything else." + }, + "message": { + "type": "string", + "description": "A message describing the error if any." + } + } + }, + "NameAvailabilityParameters": { + "description": "Details of check name availability request body.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name for checking availability." + }, + "type": { + "type": "string", + "description": "The resource type in Microsoft.HDInsight." + } + } + }, + "NameAvailabilityResult": { + "description": "Result of check name availability.", + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Indicator of availability of the Microsoft.HDInsight resource name." + }, + "reason": { + "type": "string", + "description": "The reason of unavailability." + }, + "message": { + "type": "string", + "description": "The error message of unavailability." + } + } + }, + "ClusterPoolVersionPattern": { + "type": "string", + "description": "Cluster pool version is a 2-part version.", + "example": "1.2", + "pattern": "^(0|[1-9][0-9]{0,18})\\.(0|[1-9][0-9]{0,18})$" + }, + "ClusterPoolVersionsListResult": { + "type": "object", + "description": "Represents a list of cluster pool versions.", + "properties": { + "value": { + "type": "array", + "description": "The list of cluster pool versions.", + "items": { + "$ref": "#/definitions/ClusterPoolVersion" + } + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.", + "readOnly": true + } + } + }, + "ClusterPoolVersion": { + "type": "object", + "description": "Available cluster pool version.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Cluster pool version properties.", + "$ref": "#/definitions/ClusterPoolVersionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ClusterPoolVersionProperties": { + "type": "object", + "description": "Cluster pool version properties.", + "properties": { + "clusterPoolVersion": { + "$ref": "#/definitions/ClusterPoolVersionPattern" + }, + "aksVersion": { + "type": "string", + "description": "AKS version.", + "example": "1.24" + }, + "isPreview": { + "type": "boolean", + "description": "Indicate if this version is in preview or not.", + "default": false + } + } + }, + "ThreePartVersionPattern": { + "type": "string", + "description": "Version with three part.", + "example": "1.0.4", + "pattern": "^(0|[1-9][0-9]{0,18})\\.(0|[1-9][0-9]{0,18})\\.(0|[1-9][0-9]{0,18})$" + }, + "ThreeOrFourPartVersionPattern": { + "type": "string", + "description": "Version with 3/4 part.", + "example": "1.0.4", + "pattern": "^(0|[1-9][0-9]{0,18})\\.(0|[1-9][0-9]{0,18})\\.(0|[1-9][0-9]{0,18})(?:\\.(0|[1-9][0-9]{0,18}))?$" + }, + "ClusterVersionsListResult": { + "type": "object", + "description": "Represents a list of cluster versions.", + "properties": { + "value": { + "type": "array", + "description": "The list of cluster versions.", + "items": { + "$ref": "#/definitions/ClusterVersion" + } + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.", + "readOnly": true + } + } + }, + "ClusterVersion": { + "type": "object", + "description": "Available cluster version.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Cluster version properties.", + "$ref": "#/definitions/ClusterVersionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ClusterVersionProperties": { + "type": "object", + "description": "Cluster version properties.", + "properties": { + "clusterType": { + "type": "string", + "description": "The type of cluster.", + "pattern": "^[a-zA-Z][a-zA-Z0-9]{0,31}$" + }, + "clusterVersion": { + "$ref": "#/definitions/ThreePartVersionPattern" + }, + "ossVersion": { + "$ref": "#/definitions/ThreePartVersionPattern" + }, + "clusterPoolVersion": { + "type": "string", + "description": "The two part cluster pool version. If the cluster version is before cluster pool version on-board, the return value will be empty string", + "example": "1.0" + }, + "isPreview": { + "type": "boolean", + "description": "Indicate if this version is in preview or not.", + "default": false + }, + "components": { + "$ref": "#/definitions/ClusterComponents" + } + } + }, + "ClusterComponents": { + "type": "array", + "description": "Component list of this cluster type and version.", + "readOnly": true, + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "x-ms-identifiers": [], + "example": [ + { + "name": "HDFS", + "version": "1.2.3" + }, + { + "name": "HIVE", + "version": "1.2.3" + } + ] + }, + "ClusterJobList": { + "description": "Collection of cluster job.", + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "Collection of cluster job.", + "uniqueItems": false, + "items": { + "$ref": "#/definitions/ClusterJob" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + } + } + }, + "ClusterJob": { + "description": "Cluster job.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "properties": { + "properties": { + "$ref": "#/definitions/ClusterJobProperties" + } + } + }, + "ClusterJobProperties": { + "description": "Properties of cluster job.", + "type": "object", + "properties": { + "jobType": { + "description": "Type of cluster job.", + "enum": [ + "FlinkJob" + ], + "type": "string", + "x-ms-enum": { + "name": "jobType", + "modelAsString": true + } + } + }, + "discriminator": "jobType", + "required": [ + "jobType" + ] + }, + "FlinkJobProperties": { + "description": "Properties of flink job.", + "type": "object", + "required": [ + "jobName" + ], + "allOf": [ + { + "$ref": "#/definitions/ClusterJobProperties" + } + ], + "properties": { + "jobName": { + "description": "Name of job", + "type": "string" + }, + "jobJarDirectory": { + "description": "A string property that specifies the directory where the job JAR is located.", + "type": "string" + }, + "jarName": { + "description": "A string property that represents the name of the job JAR.", + "type": "string" + }, + "entryClass": { + "description": "A string property that specifies the entry class for the Flink job.", + "type": "string" + }, + "args": { + "description": "A string property representing additional JVM arguments for the Flink job. It should be space separated value.", + "type": "string" + }, + "savePointName": { + "description": "A string property that represents the name of the savepoint for the Flink job", + "type": "string" + }, + "action": { + "description": "A string property that indicates the action to be performed on the Flink job. It can have one of the following enum values => NEW, UPDATE, STATELESS_UPDATE, STOP, START, CANCEL, SAVEPOINT, LIST_SAVEPOINT, or DELETE.", + "type": "string", + "enum": [ + "NEW", + "UPDATE", + "STATELESS_UPDATE", + "STOP", + "START", + "CANCEL", + "SAVEPOINT", + "LIST_SAVEPOINT", + "DELETE" + ], + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + }, + "flinkConfiguration": { + "description": "Additional properties used to configure Flink jobs. It allows users to set properties such as parallelism and jobSavePointDirectory. It accepts additional key-value pairs as properties, where the keys are strings and the values are strings as well.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "jobId": { + "description": "Unique id for identifying a job", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Status of job.", + "type": "string", + "readOnly": true + }, + "jobOutput": { + "description": "Output of job.", + "type": "string", + "readOnly": true + }, + "actionResult": { + "description": "Action result of job.", + "type": "string", + "readOnly": true + }, + "lastSavePoint": { + "description": "The last savepoint.", + "type": "string", + "readOnly": true + } + }, + "x-ms-discriminator-value": "FlinkJob" + } + }, + "parameters": { + "ClusterPoolNameParameter": { + "name": "clusterPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cluster pool.", + "x-ms-parameter-location": "method" + }, + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the HDInsight cluster.", + "x-ms-parameter-location": "method" + }, + "ClusterTypeNameParameter": { + "name": "clusterTypeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the HDInsight on aks cluster type.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.go.md b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.go.md new file mode 100644 index 000000000000..0504453ad8cb --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.go.md @@ -0,0 +1,12 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + + +``` yaml $(go) && $(track2) +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/hdinsight/armhdinsightonaks +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +azure-arm: true +``` \ No newline at end of file diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md new file mode 100644 index 000000000000..5f6a1c2ebdb5 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md @@ -0,0 +1,115 @@ +# HDInsight On Aks + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for HDInsight On Aks. + +--- + +## Getting Started + +To build the SDK for HDInsight, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` + +--- + +## Configuration + +### Basic Information + +These are the global settings for the HDInsight On Aks API. + +``` yaml +title: HDInsightOnAksManagementClient +description: HDInsight On Aks Management Client +openapi-type: arm +openapi-subtype: rpaas +azure-arm: true +tag: package-2023-06-preview +``` + +### Suppression + + +### Tag: package-2023-06-preview +These settings apply only when `--tag=package-2023-06-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-06-preview' +input-file: + - preview/2023-06-01-preview/hdinsight.json +suppressions: + - code: MISSING_APIS_IN_DEFAULT_TAG + reason: Remove deprecated APIs in new API version. + - code: ResourceNameRestriction + reason: Keep compatibility with old API version. + - code: PatchBodyParametersSchema + reason: The "location" property is a must for a tracked resource. + - code: TrackedResourcePatchOperation + reason: This is a false positive, the "tags" property is defined in TrackedResource. + - code: OperationIdNounVerb + reason: This is false alarm. We checked that the operation id "Clusters_ListByClusterPoolName" is correct. + - code: GetCollectionOnlyHasValueAndNextLink + reason: This is false alarm. +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-net-track2 + - repo: azure-sdk-for-go + - repo: azure-sdk-for-java + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-js + - repo: azure-sdk-for-node + - repo: azure-resource-manager-schemas + - repo: azure-powershell +``` + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Azure.ResourceManager.HDInsightOnAks + output-folder: $(csharp-sdks-folder)/hdinsight/Azure.ResourceManager.HDInsightOnAks/src/Generated + clear-output-folder: true +``` + + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.hdinsightonaks +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-hdinsightonaks +``` diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.nodejs.md b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.nodejs.md new file mode 100644 index 000000000000..0c1d9bd10148 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.nodejs.md @@ -0,0 +1,29 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-hdinsight + output-folder: $(node-sdks-folder)/lib/services/hdInsightManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` + +## Tag: package-hdinsightonaks-2023-06-preview and Node.js + +These settings apply only when `--tag=package-hdinsightonaks-2023-06-preview --nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(tag) == 'package-hdinsightonaks-2023-06-preview' && $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-hdinsightonaks + output-folder: $(node-sdks-folder)/lib/services/hdInsightOnAksManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.python.md b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.python.md new file mode 100644 index 000000000000..e1423a2943a8 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.python.md @@ -0,0 +1,25 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +title: HDInsightOnAksMgmtClient +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.hdinsightonaks +package-name: azure-mgmt-hdinsightonaks +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/hdinsight/azure-mgmt-hdinsightonaks/azure/mgmt/hdinsightonaks +``` + +``` yaml $(python) +modelerfour: + lenient-model-deduplication: true +``` diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.typescript.md b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.typescript.md new file mode 100644 index 000000000000..e234db578f18 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.typescript.md @@ -0,0 +1,12 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-hdinsightonaks" + output-folder: "$(typescript-sdks-folder)/sdk/hdinsight/arm-hdinsightonaks" + generate-metadata: true +``` diff --git a/specification/hdinsight/resource-manager/readme.md b/specification/hdinsight/resource-manager/readme.md index 46beeb06fb17..0ba51f73cd35 100644 --- a/specification/hdinsight/resource-manager/readme.md +++ b/specification/hdinsight/resource-manager/readme.md @@ -128,6 +128,7 @@ input-file: - Microsoft.HDInsight/preview/2023-04-15-preview/scriptActions.json - Microsoft.HDInsight/preview/2023-04-15-preview/virtualMachines.json ``` + ### Tag: package-2021-06 These settings apply only when `--tag=package-2021-06` is specified on the command line.