All Products
Document Center

Reset a node

Last Updated: Aug 17, 2018


Reset a node in the cluster.

For more information about the API description, see Container Service API reference.


Swarm clusters.

API request and response

Request format

  1. aliyun cs POST /clusters/<cluster_id>/instances/<instance_id>/reset --header "Content-Type=application/json" --body "$(cat reset.json)"

Parameter description:

  • Specify Content-Type as application/json in --header.
  • --body is the body to be sent to the server, which can be read from a local file and must be in the valid JSON format. The reset.json contents are as follows:

    1. {
    2. "password": "password used to log on to the Elastic Compute Service (ECS) instance by using SSH",
    3. "ecs_image_id": "image ID",
    4. "release_eip_flag": "whether or not to release Elastic IP (EIP) after configuring the cluster"
    5. }

Response results

  1. {
  2. "cluster_id": "c61cf530524474386a7ab5a1c192a0d57",
  3. "request_id": "348D4C9C-9105-4A1B-A86E-B58F0F875575",
  4. "task_id": "T-5ad724ab94a2b109e8000004"
  5. }