Skip to main content
create_credential(credential_name=None, type=None, identity=None, secret=None, options=)[source]

Create a new credential.

Parameters

credential_name (str) –

Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name.

type (str) –

Type of the credential to be created. Allowed values are:

  • aws_access_key

  • aws_iam_role

  • azure_ad

  • azure_oauth

  • azure_sas

  • azure_storage_key

  • confluent

  • docker

  • gcs_service_account_id

  • gcs_service_account_keys

  • hdfs

  • jdbc

  • kafka

  • nvidia_api_key

  • openai_api_key

  • rest

identity (str) –

User of the credential to be created.

secret (str) –

Password of the credential to be created.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

credential_name (str) –

Value of input parameter credential_name.

info (dict of str to str) –

Additional information.