Deleting a Link

Function

This API is used to delete a specified link. However, you cannot delete the links used by jobs.

URI

  • URI format
    DELETE /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_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.

    link_name

    Yes

    String

    Link name

Request

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

Response

  • Parameter description of a successful response

    None

  • If a failure occurs, the HTTP response code is 500. A sample response is as follows:
    {
      "errCode": "Cdm.0021",
      "externalMessage": "Given link name is in use"
    }
  • 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.