Share via


Clusters - Resize

Resizes the specified HDInsight cluster to the specified size.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/workernode/resize?api-version=2021-06-01

URI Parameters

Name In Required Type Description
clusterName
path True

string

The name of the cluster.

resourceGroupName
path True

string

The name of the resource group.

roleName
path True

RoleName

The constant value for the roleName

subscriptionId
path True

string

The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

The HDInsight client API Version.

Request Body

Name Type Description
targetInstanceCount

integer (int32)

The target instance count for the operation.

Responses

Name Type Description
200 OK

OK response definition.

202 Accepted

Accepted response definition.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Resize the worker nodes for a Hadoop on Linux cluster

Sample request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/roles/workernode/resize?api-version=2021-06-01

{
  "targetInstanceCount": 10
}

Sample response

location: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/operationresults/operationid?api-version=2021-06-01

Definitions

Name Description
ClusterResizeParameters

The Resize Cluster request parameters.

ErrorResponse

Describes the format of Error response.

RoleName

The constant value for the roleName

ClusterResizeParameters

The Resize Cluster request parameters.

Name Type Description
targetInstanceCount

integer (int32)

The target instance count for the operation.

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

RoleName

The constant value for the roleName

Value Description
workernode