doc-exports/docs/mrs/api-ref/mrs_02_0032.html
Yang, Tong bd2b57f749 MRS API 2.0.38.SP20 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-11-16 15:06:08 +00:00

5.6 KiB

Deleting a Cluster

Function

This API is used to delete 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

    Description

    project_id

    Yes

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

    cluster_id

    Yes

    Cluster ID

Request

Request parameters

None.

Response

Response parameters

None.

Example

  • Example request

    None.

  • Example response

    None.

Status Code

Table 2 describes the status code of this API.

Table 2 Status code

Status Code

Description

204

The cluster has been successfully terminated.

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