Skip to main content

Test existing catalog connection

POST 

/metalakes/:metalake/catalogs/:catalog/testConnection

Tests whether an existing catalog can connect to its source with its stored configuration, or with proposed changes applied for this test only and not saved. A failed test is reported as an error code in an HTTP 200 response, and testing with proposed changes requires the same access as updating the catalog.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

Body

Optional catalog changes to apply only to this connection test

    updates

    object[]

    required

  • Array [

  • oneOf

    @type stringrequired

    Possible values: [rename]

    newName stringrequired

    The new name of the catalog

  • ]

Responses​

The result of the connection test. code is 0 when the test passed; a failed test, including a missing or disabled catalog, is reported with its error code, exception type and message.

Schema

    code int32required

    Application status code; 0 indicates success

    type string

    Internal exception type when the test fails

    message string

    Sanitized failure message

Loading...