Skip to main content

Get credentials

GET 

/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/credentials

Returns the storage credentials vended for a catalog or fileset, each with its type, expiry time and credential properties. Write credentials are returned when the caller owns the object or a parent object or holds WRITE_FILESET on it, and read credentials otherwise.

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

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    metadataObjectType stringrequired

    Possible values: [CATALOG, FILESET]

    The type of the metadata object. Credentials can be vended for catalogs and filesets only; any other type is rejected with an unsupported-operation error. The server matches the value case-insensitively.

    metadataObjectFullName stringrequired

    The full name of the metadata object

Responses​

The storage credentials vended for the catalog or fileset, each with its type, expiry time and credential properties.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    credentials

    object[]

    A list of credential objects

  • Array [

  • credentialType stringrequired

    The type of the credential, for example, s3-token, s3-secret-key, oss-token, oss-secret-key, gcs-token, adls-token, azure-account-key, etc.

    expireTimeInMs integerrequired

    The expiration time of the credential in milliseconds since the epoch, 0 means not expire.

    credentialInfo

    object

    required

    The specific information of the credential.

    property name* string
  • ]

Loading...