Deleting an Exclusive Cluster

Function

This API is used to delete an exclusive cluster. If there are jobs running in the exclusive cluster to be deleted, jobs will stop automatically and immediately.

URI

  • URI format

    DELETE /v1.0/{project_id}/reserved_cluster/{cluster_id}

  • Parameter description
    Table 1 URI parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

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

    cluster_id

    Yes

    ID of an exclusive cluster.

Request

None

Response

  • Example response
    {
      "message_id": "CS.21020",
      "message": "Cluster 10 is being deleted.",
      "current_time": 1550199559915
    }
  • Parameter description
    Table 2 Response parameters

    Parameter

    Mandatory

    Type

    Description

    message_id

    No

    String

    Message type ID.

    message

    No

    String

    Message content.

    current_time

    No

    Int

    Current time, expressed by milliseconds.

Status Code

Table 3 describes the status code.

Table 3 Status code

Status Code

Description

200

An exclusive cluster is successfully deleted.

400

The input parameters are invalid.

Error Code

For details, see Error Codes.