Deleting a Job

Function

This API is used to delete a specified job.

URI

  • URI format
    DELETE /v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}
  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID. For details about how to obtain the project ID, see Obtaining the Project ID, Account Name, and AK/SK.

    cluster_id

    Yes

    String

    Cluster ID. Obtain the value from the response for Creating a Cluster.

    job_name

    Yes

    String

    Job name

Request

Sample request
DELETE /v1.1/1551c7f6c808414d8e9f3c514a170f2e/clusters/6ec9a0a4-76be-4262-8697-e7af1fac7920/cdm/job/jdbc2hive

Response

  • Successful sample response
    {}
  • Failed sample response
    {
        "code":"Cdm.0100",
        "errCode":"Cdm.0100",
        "message":"Job [xubin-chaxunstatus_Job] does not exist.",
        "externalMessage":"Job [xubin-chaxunstatus_Job] does not exist."
    }
  • Parameter description of a failed response

    Parameter

    Mandatory

    Type

    Description

    errCode

    Yes

    String

    Error code

    externalMessage

    Yes

    String

    Error message

Return Value

  • Normal

    200

  • Abnormal

    Return Value

    Description

    400 Bad Request

    Request error. For details about the returned error code, see Error Code.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    No operation permission.

    404 Not Found

    The requested resource is not found.

    500 Internal Server Error

    Internal service error.

    503 Service Unavailable

    Service unavailable.