• MapReduce Service

mrs
  1. Help Center
  2. MapReduce Service
  3. API Reference
  4. APIs
  5. Cluster Management APIs
  6. Terminating a Cluster

Terminating a Cluster

Function

This API is used to terminate a cluster after data processing and analysis are completed or the cluster is abnormal. This API is compatible with Sahara.

Clusters in any of the following states cannot be terminated:
  • scaling-out
  • scaling-in
  • starting
  • terminating
  • terminated
  • failed

URI

  • Format:

    DELETE /v1.1/{project_id}/clusters/{cluster_id}

  • Parameter description
    Table 1 URI parameter description

    Parameter

    Mandatory or Not

    Description

    project_id

    Yes

    Project ID. For details on how to obtain the project ID, see Obtaining a Project ID.

    clusterId

    Yes

    Cluster ID

Request

  • Example:

    None.

  • Parameter description

    None.

Response

  • Example:

    None.

  • Parameter description

    None.

Status Code

Table 2 describes the status code of this API.

Table 2 Status code

Status Code

Description

204

The cluster is successfully terminated.

For the description about error status codes, see section Status Codes.