Adds on-premises compute nodes to a specified cluster on hybrid cloud or cluster on the cloud.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AddLocalNodes

The operation that you want to perform. Set the value to AddLocalNodes.

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

Nodes String Yes [{"HostName":"test-HostName","IpAddress":"192.168. **. **"}]

The information of local nodes. The value is a JSON string that contains the HostName and IpAddress of on-premises nodes.

Response parameters

Parameter Type Example Description
InstanceIds List [{"HostName":"test-HostName","IpAddress":"192.168. **. **"}]

The instance IDs of on-premises compute nodes in a hybrid cloud cluster.

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=AddLocalNodes
&ClusterId=ehpc-hz-FYUr32****
&Nodes=[{"HostName":"test-HostName","IpAddress":"192.168. **. **"}]
&<Common request parameters>

Sample success responses

XML format

<AddLocalNodesResponse>
    <RequestIds>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
    <InstanceIds>[{"HostName":"test-HostName","IpAddress":"192.168. **. **"}]</InstanceIds>
</AddLocalNodesResponse>

JSON format

{
	"RequestIds": "04F0F334-1335-436C-A1D7-6C044FE73368",
	"InstanceIds": "[{\"HostName\":\"test-HostName\",\"IpAddress\":\"192.168. **. **\"}]"
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The server is temporarily unavailable.

For a list of error codes, visit the API Error Center.