Credentials¶
The following endpoints outline how to manage user credentials.
GET /api/v2/credentials/¶
List all sets of credentials available for given user.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
offset | query | integer | false | Number of results to skip. |
limit | query | integer | false | At most this many results are returned. The default may change without notice. |
types | query | any | false | Includes only credentials of the specified type. Repeat the parameter for filtering on multiple statuses. |
orderBy | query | string | false | The order to sort the credentials. Defaults to the order by the creation_date in descending order. |
Enumerated Values¶
Parameter | Value |
---|---|
orderBy | [creationDate , -creationDate ] |
Example responses¶
200 Response
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "List of credentials.",
"items": {
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A paginated list of credentials. | CredentialsListResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
POST /api/v2/credentials/¶
Store a new set of credentials.
Body parameter¶
{
"discriminator": {
"propertyName": "credentialType"
},
"oneOf": [
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"basic"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"password": {
"description": "Password to store for this credentials.",
"type": "string"
},
"snowflakeAccountName": {
"description": "Snowflake account name.",
"type": "string",
"x-versionadded": "v2.21"
},
"user": {
"description": "Username to store for this credentials.",
"type": "string"
}
},
"required": [
"name",
"password",
"user"
],
"type": "object"
},
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"refreshToken": {
"description": "OAUTH token.",
"type": "string"
},
"token": {
"description": "OAUTH token.",
"type": "string"
}
},
"required": [
"credentialType",
"name",
"refreshToken",
"token"
],
"type": "object"
},
{
"properties": {
"awsAccessKeyId": {
"description": "AWS access key ID.",
"type": "string",
"x-versionadded": "v2.20"
},
"awsSecretAccessKey": {
"description": "AWS secret access key.",
"type": "string",
"x-versionadded": "v2.20"
},
"awsSessionToken": {
"description": "AWS session token.",
"type": "string",
"x-versionadded": "v2.20"
},
"configId": {
"description": "ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"s3"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"configId": {
"description": "ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"gcp"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"gcpKey": {
"description": "The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account *User Managed Key* (in the *IAM & admin > Service accounts section* of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.",
"properties": {
"authProviderX509CertUrl": {
"description": "Auth provider X509 certificate URL.",
"format": "uri",
"type": "string"
},
"authUri": {
"description": "Auth URI.",
"format": "uri",
"type": "string"
},
"clientEmail": {
"description": "Client email address.",
"type": "string"
},
"clientId": {
"description": "Client ID.",
"type": "string"
},
"clientX509CertUrl": {
"description": "Client X509 certificate URL.",
"format": "uri",
"type": "string"
},
"privateKey": {
"description": "Private key.",
"type": "string"
},
"privateKeyId": {
"description": "Private key ID",
"type": "string"
},
"projectId": {
"description": "Project ID.",
"type": "string"
},
"tokenUri": {
"description": "Token URI.",
"format": "uri",
"type": "string"
},
"type": {
"description": "GCP account type.",
"enum": [
"service_account"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"googleConfigId": {
"description": "ID of Google configurations shared by admin (deprecated). Please use configId instead.",
"type": "string",
"x-versionadded": "v2.30"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"azureConnectionString": {
"description": "Azure connection string.",
"type": "string",
"x-versionadded": "v2.21"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"azure"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"azureConnectionString",
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"azureTenantId": {
"description": "Tenant ID of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"clientId": {
"description": "Client ID of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"clientSecret": {
"description": "Client Secret of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"configId": {
"description": "ID of secure configuration to share Azure service principal credentials by admin.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"azure_service_principal"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "Snowflake OAUTH client ID.",
"type": "string",
"x-versionadded": "v2.23"
},
"clientSecret": {
"description": "Snowflake OAUTH client secret.",
"type": "string",
"x-versionadded": "v2.23"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"snowflake_oauth_user_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"oauthConfigId": {
"description": "ID of snowflake OAuth configurations shared by admin.",
"type": "string",
"x-versionadded": "v2.30"
},
"oauthIssuerType": {
"description": "OAuth issuer type.",
"enum": [
"azure",
"okta",
"snowflake"
],
"type": "string",
"x-versionadded": "v2.27"
},
"oauthIssuerUrl": {
"description": "OAuth issuer URL.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.27"
},
"oauthScopes": {
"description": "OAuth scopes.",
"items": {
"description": "OAuth scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
},
"snowflakeAccountName": {
"description": "Snowflake account name.",
"type": "string",
"x-versionadded": "v2.21"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "ADLS Gen2 OAuth client ID.",
"type": "string",
"x-versionadded": "v2.27"
},
"clientSecret": {
"description": "ADLS Gen2 OAuth client secret.",
"type": "string",
"x-versionadded": "v2.27"
},
"configId": {
"description": "ID of secure configuration to share ADLS OAuth credentials by admin.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"adls_gen2_oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"oauthScopes": {
"description": "ADLS Gen2 OAuth scopes.",
"items": {
"description": "ADLS Gen2 OAuth scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"configId": {
"description": "ID of Snowflake Key Pair Credentials Secure configurations to share by admin",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"snowflake_key_pair_user_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"passphrase": {
"description": "Optional passphrase to encrypt private key.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"privateKeyStr": {
"description": "Private key for key pair authentication.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"user": {
"description": "Username for this credential.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"databricks_access_token_account"
],
"type": "string"
},
"databricksAccessToken": {
"description": "Databricks personal access token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"databricksAccessToken",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "Client ID for Databricks Service Principal.",
"type": "string",
"x-versionadded": "v2.33"
},
"clientSecret": {
"description": "Client secret for Databricks Service Principal.",
"type": "string",
"x-versionadded": "v2.33"
},
"configId": {
"description": "ID of Databricks Service Principal Credentials Secure configuration to share by admin",
"type": "string",
"x-versionadded": "v2.33"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"databricks_service_principal_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"apiToken": {
"description": "API token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"api_token"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"apiToken",
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"authUrl": {
"description": "The URL used for SAP authentication.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"clientId": {
"description": "SAP OAUTH client ID.",
"type": "string",
"x-versionadded": "v2.35"
},
"clientSecret": {
"description": "SAP OAUTH client secret.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"sap_oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"sapAiApiUrl": {
"description": "The URL used for SAP AI API service.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
}
},
"required": [
"authUrl",
"clientId",
"clientSecret",
"credentialType",
"name",
"sapAiApiUrl"
],
"type": "object"
}
]
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | CredentialsBody | false | none |
Example responses¶
201 Response
{
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Credentials stored successfully. | CreateCredentialsResponse |
409 | Conflict | The specified name is already in use. | None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
GET /api/v2/credentials/associations/{associationId}/¶
Returns a list of credentials associated with the specified object for the given session user.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
offset | query | integer | false | Number of results to skip. |
limit | query | integer | false | At most this many results are returned. The default may change without notice. |
orderBy | query | string | false | Sort order which will be applied to credential associations list. Prefix the attribute name with a dash to sort in descending order, e.g. "-is_default". Absent by default. |
associationId | path | string | true | The compound ID of the data connection. |
Enumerated Values¶
Parameter | Value |
---|---|
orderBy | [isDefault , -isDefault ] |
Example responses¶
200 Response
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "List of credentials associations.",
"items": {
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"enum": [
"batchPredictionJobDefinition",
"dataconnection"
],
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name",
"objectId",
"objectType"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | List of credentials associated with the object for the session user. | ListCredentialsAssociationsResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
DELETE /api/v2/credentials/{credentialId}/¶
Delete the credential set matching the specified ID if it is not used by any data connection or batch prediction job.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
credentialId | path | string | true | Credentials entity ID. |
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Credentials deleted successfully. | None |
409 | Conflict | Credentials are in use by one or more data connections or batch prediction jobs. | None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
GET /api/v2/credentials/{credentialId}/¶
Return the credential set matching the specified ID.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
credentialId | path | string | true | Credentials entity ID. |
Example responses¶
200 Response
{
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Credentials retrieved successfully. | CreateCredentialsResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
PATCH /api/v2/credentials/{credentialId}/¶
Update specified credentials
Body parameter¶
{
"properties": {
"apiToken": {
"description": "API token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"authUrl": {
"description": "The URL used for SAP OAuth authentication.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"awsAccessKeyId": {
"description": "AWS access key ID (applicable for credentialType `s3` only).",
"type": "string"
},
"awsSecretAccessKey": {
"description": "The AWS secret access key (applicable for credentialType `s3` only).",
"type": "string"
},
"awsSessionToken": {
"description": "The AWS session token (applicable for credentialType `s3` only).",
"type": "string"
},
"azureConnectionString": {
"description": "Azure connection string (applicable for credentialType `azure` only).",
"type": "string",
"x-versionadded": "v2.21"
},
"azureTenantId": {
"description": "Tenant ID of the Azure AD service principal (applicable for credentialType `azure_service_principal` only).",
"type": "string",
"x-versionadded": "v2.30"
},
"clientId": {
"description": "OAUTH client ID (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account` and `azure_service_principal`).",
"type": "string",
"x-versionadded": "v2.23"
},
"clientSecret": {
"description": "OAUTH client secret (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account` and `azure_service_principal`).",
"type": "string",
"x-versionadded": "v2.23"
},
"configId": {
"description": "ID of secure configuration credentials to share by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"databricksAccessToken": {
"description": "Databricks personal access token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"description": {
"description": "Description of credentials. If omitted, and name is not omitted, clears any previous description for that name.",
"type": "string"
},
"gcpKey": {
"description": "The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account *User Managed Key* (in the *IAM & admin > Service accounts section* of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.",
"properties": {
"authProviderX509CertUrl": {
"description": "Auth provider X509 certificate URL.",
"format": "uri",
"type": "string"
},
"authUri": {
"description": "Auth URI.",
"format": "uri",
"type": "string"
},
"clientEmail": {
"description": "Client email address.",
"type": "string"
},
"clientId": {
"description": "Client ID.",
"type": "string"
},
"clientX509CertUrl": {
"description": "Client X509 certificate URL.",
"format": "uri",
"type": "string"
},
"privateKey": {
"description": "Private key.",
"type": "string"
},
"privateKeyId": {
"description": "Private key ID",
"type": "string"
},
"projectId": {
"description": "Project ID.",
"type": "string"
},
"tokenUri": {
"description": "Token URI.",
"format": "uri",
"type": "string"
},
"type": {
"description": "GCP account type.",
"enum": [
"service_account"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"googleConfigId": {
"description": "ID of Google configurations shared by admin (deprecated). Please use configId instead.",
"type": "string",
"x-versionadded": "v2.30"
},
"name": {
"description": "Name of credentials.",
"type": "string"
},
"oauthConfigId": {
"description": "ID of snowflake OAuth configurations shared by admin.",
"type": "string",
"x-versionadded": "v2.30"
},
"oauthIssuerType": {
"description": "Snowflake IDP issuer type (applicable for credentialType `snowflake_oauth_user_account` only).",
"enum": [
"azure",
"okta",
"snowflake"
],
"type": "string",
"x-versionadded": "v2.27"
},
"oauthIssuerUrl": {
"description": "Snowflake External IDP issuer URL (applicable for Snowflake External OAUTH connections only).",
"format": "uri",
"type": "string",
"x-versionadded": "v2.27"
},
"oauthScopes": {
"description": "External OAUTH scopes (applicable for Snowflake External OAUTH connections and credentialType `snowflake_oauth_user_account`).",
"items": {
"description": "AUTH scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
},
"passphrase": {
"description": "Optional passphrase to encrypt private key.(applicable for credentialType `snowflake_key_pair_user_account` only).",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"password": {
"description": "Password to update for this set of credentials (applicable for credentialType `basic` only).",
"type": "string"
},
"privateKeyStr": {
"description": "Private key for key pair authentication.(applicable for credentialType `snowflake_key_pair_user_account` only).",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"refreshToken": {
"description": "OAUTH refresh token (applicable for credentialType `oauth` only).",
"type": "string"
},
"sapAiApiUrl": {
"description": "The URL used for SAP AI API service.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"snowflakeAccountName": {
"description": "Snowflake account name (applicable for `snowflake_oauth_user_account` only).",
"type": "string",
"x-versionadded": "v2.21"
},
"token": {
"description": "OAUTH token (applicable for credentialType `oauth` only).",
"type": "string"
},
"user": {
"description": "Username to update for this set of credentials (applicable for credentialType `basic` and `snowflake_key_pair_user_account` only).",
"type": "string"
}
},
"type": "object"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
credentialId | path | string | true | Credentials entity ID. |
body | body | CredentialsUpdate | false | none |
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Set of credentials updated | None |
404 | Not Found | Requested credentials not found | None |
409 | Conflict | The name specified for credentials is already in use. | None |
422 | Unprocessable Entity | Must specify at least one field to update | None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
GET /api/v2/credentials/{credentialId}/associations/¶
List all objects associated with specified credentials for the current user.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
offset | query | integer | false | Number of results to skip. |
limit | query | integer | false | At most this many results are returned. The default may change without notice. |
types | query | any | false | Includes only credentials of the specified type. Repeat the parameter for filtering on multiple statuses. |
orderBy | query | string | false | The order to sort the credentials. Defaults to the order by the creation_date in descending order. |
credentialId | path | string | true | Credentials entity ID. |
Enumerated Values¶
Parameter | Value |
---|---|
orderBy | [creationDate , -creationDate ] |
Example responses¶
200 Response
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "Objects associated with the specified credentials.",
"items": {
"properties": {
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"link": {
"description": "Link to get more details about associated object.",
"format": "uri",
"type": [
"string",
"null"
]
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"type": "string"
}
},
"required": [
"link",
"objectId",
"objectType"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Objects associated with the specified credentials for the current user. | CredentialsListAssociationsResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
PATCH /api/v2/credentials/{credentialId}/associations/¶
Add objects associated with credentials
Body parameter¶
{
"properties": {
"credentialsToAdd": {
"description": "Objects to associate with given credentials.",
"items": {
"properties": {
"objectId": {
"description": "Object ID identifying the object to be associated with the credentials.",
"type": "string"
},
"objectType": {
"description": "Type of object associated with the credentials.",
"enum": [
"dataconnection"
],
"type": "string"
}
},
"required": [
"objectId",
"objectType"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"credentialsToRemove": {
"description": "Object IDs, each of which identifies an object to be disassociated from this credential. To see which objects are currently associated, see the response from [GET /api/v2/credentials/{credentialId}/associations/][get-apiv2credentialscredentialidassociations].",
"items": {
"description": "Object ID to be disassociated from given credentials.",
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
credentialId | path | string | true | Credentials entity ID. |
body | body | CredentialsAssociationUpdate | false | none |
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | none | None |
204 | No Content | Credentials association updated | None |
404 | Not Found | Requested credentials not found | None |
409 | Conflict | One or more associations already exists when adding or one or more associations do not exist | None |
422 | Unprocessable Entity | Must specify a field to update or must specify only one of credentialsToAdd or credentialsToRemove . |
None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
PUT /api/v2/credentials/{credentialId}/associations/{associationId}/¶
Set (create or update) the credentials' association for the given Data Connection for the given session Owner for the given credentials.
Body parameter¶
{
"properties": {
"isDefault": {
"default": false,
"description": "Whether this credentials' association with the given object is default for given session user.",
"type": "boolean"
}
},
"type": "object"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
credentialId | path | string | true | Credentials entity ID. |
associationId | path | string | true | The compound ID of the data connection. |
body | body | SetCredentialsAssociationRequest | false | none |
Example responses¶
200 Response
{
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"enum": [
"batchPredictionJobDefinition",
"dataconnection"
],
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name",
"objectId",
"objectType"
],
"type": "object"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Credentials association was successfully set (created or updated). | RetrieveCredentialAssociationResponse |
201 | Created | New credential association was created. | None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
Schemas¶
CreateCredentialsResponse
{
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
creationDate | string(date-time) | true | ISO-8601 formatted date/time when these credentials were created. | |
credentialId | string | true | ID of these credentials. | |
credentialType | string | false | Type of credentials. | |
description | string | false | Description of these credentials. | |
name | string | true | Name of these credentials. |
Enumerated Values¶
Property | Value |
---|---|
credentialType | [adls_gen2_oauth , api_token , azure , azure_service_principal , basic , bearer , databricks_access_token_account , databricks_service_principal_account , gcp , oauth , rsa , s3 , sap_oauth , snowflake_key_pair_user_account , snowflake_oauth_user_account , tableau_access_token ] |
CredentialsAssociationUpdate
{
"properties": {
"credentialsToAdd": {
"description": "Objects to associate with given credentials.",
"items": {
"properties": {
"objectId": {
"description": "Object ID identifying the object to be associated with the credentials.",
"type": "string"
},
"objectType": {
"description": "Type of object associated with the credentials.",
"enum": [
"dataconnection"
],
"type": "string"
}
},
"required": [
"objectId",
"objectType"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"credentialsToRemove": {
"description": "Object IDs, each of which identifies an object to be disassociated from this credential. To see which objects are currently associated, see the response from [GET /api/v2/credentials/{credentialId}/associations/][get-apiv2credentialscredentialidassociations].",
"items": {
"description": "Object ID to be disassociated from given credentials.",
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
credentialsToAdd | [CredentialsToAdd] | false | minItems: 1 |
Objects to associate with given credentials. |
credentialsToRemove | [string] | false | minItems: 1 |
Object IDs, each of which identifies an object to be disassociated from this credential. To see which objects are currently associated, see the response from GET /api/v2/credentials/{credentialId}/associations/. |
CredentialsAssociationsData
{
"properties": {
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"link": {
"description": "Link to get more details about associated object.",
"format": "uri",
"type": [
"string",
"null"
]
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"type": "string"
}
},
"required": [
"link",
"objectId",
"objectType"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
isDefault | boolean | false | Whether this credential association with the given object is default for given session user. | |
link | string,null(uri) | true | Link to get more details about associated object. | |
objectId | string | true | Associated object ID. | |
objectType | string | true | Associated object type. |
CredentialsBody
{
"discriminator": {
"propertyName": "credentialType"
},
"oneOf": [
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"basic"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"password": {
"description": "Password to store for this credentials.",
"type": "string"
},
"snowflakeAccountName": {
"description": "Snowflake account name.",
"type": "string",
"x-versionadded": "v2.21"
},
"user": {
"description": "Username to store for this credentials.",
"type": "string"
}
},
"required": [
"name",
"password",
"user"
],
"type": "object"
},
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"refreshToken": {
"description": "OAUTH token.",
"type": "string"
},
"token": {
"description": "OAUTH token.",
"type": "string"
}
},
"required": [
"credentialType",
"name",
"refreshToken",
"token"
],
"type": "object"
},
{
"properties": {
"awsAccessKeyId": {
"description": "AWS access key ID.",
"type": "string",
"x-versionadded": "v2.20"
},
"awsSecretAccessKey": {
"description": "AWS secret access key.",
"type": "string",
"x-versionadded": "v2.20"
},
"awsSessionToken": {
"description": "AWS session token.",
"type": "string",
"x-versionadded": "v2.20"
},
"configId": {
"description": "ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"s3"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"configId": {
"description": "ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"gcp"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"gcpKey": {
"description": "The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account *User Managed Key* (in the *IAM & admin > Service accounts section* of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.",
"properties": {
"authProviderX509CertUrl": {
"description": "Auth provider X509 certificate URL.",
"format": "uri",
"type": "string"
},
"authUri": {
"description": "Auth URI.",
"format": "uri",
"type": "string"
},
"clientEmail": {
"description": "Client email address.",
"type": "string"
},
"clientId": {
"description": "Client ID.",
"type": "string"
},
"clientX509CertUrl": {
"description": "Client X509 certificate URL.",
"format": "uri",
"type": "string"
},
"privateKey": {
"description": "Private key.",
"type": "string"
},
"privateKeyId": {
"description": "Private key ID",
"type": "string"
},
"projectId": {
"description": "Project ID.",
"type": "string"
},
"tokenUri": {
"description": "Token URI.",
"format": "uri",
"type": "string"
},
"type": {
"description": "GCP account type.",
"enum": [
"service_account"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"googleConfigId": {
"description": "ID of Google configurations shared by admin (deprecated). Please use configId instead.",
"type": "string",
"x-versionadded": "v2.30"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"azureConnectionString": {
"description": "Azure connection string.",
"type": "string",
"x-versionadded": "v2.21"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"azure"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"azureConnectionString",
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"azureTenantId": {
"description": "Tenant ID of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"clientId": {
"description": "Client ID of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"clientSecret": {
"description": "Client Secret of the Azure AD service principal.",
"type": "string",
"x-versionadded": "v2.30"
},
"configId": {
"description": "ID of secure configuration to share Azure service principal credentials by admin.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"azure_service_principal"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "Snowflake OAUTH client ID.",
"type": "string",
"x-versionadded": "v2.23"
},
"clientSecret": {
"description": "Snowflake OAUTH client secret.",
"type": "string",
"x-versionadded": "v2.23"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"snowflake_oauth_user_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"oauthConfigId": {
"description": "ID of snowflake OAuth configurations shared by admin.",
"type": "string",
"x-versionadded": "v2.30"
},
"oauthIssuerType": {
"description": "OAuth issuer type.",
"enum": [
"azure",
"okta",
"snowflake"
],
"type": "string",
"x-versionadded": "v2.27"
},
"oauthIssuerUrl": {
"description": "OAuth issuer URL.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.27"
},
"oauthScopes": {
"description": "OAuth scopes.",
"items": {
"description": "OAuth scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
},
"snowflakeAccountName": {
"description": "Snowflake account name.",
"type": "string",
"x-versionadded": "v2.21"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "ADLS Gen2 OAuth client ID.",
"type": "string",
"x-versionadded": "v2.27"
},
"clientSecret": {
"description": "ADLS Gen2 OAuth client secret.",
"type": "string",
"x-versionadded": "v2.27"
},
"configId": {
"description": "ID of secure configuration to share ADLS OAuth credentials by admin.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"adls_gen2_oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"oauthScopes": {
"description": "ADLS Gen2 OAuth scopes.",
"items": {
"description": "ADLS Gen2 OAuth scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"configId": {
"description": "ID of Snowflake Key Pair Credentials Secure configurations to share by admin",
"type": "string",
"x-versionadded": "v2.32"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"snowflake_key_pair_user_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"passphrase": {
"description": "Optional passphrase to encrypt private key.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"privateKeyStr": {
"description": "Private key for key pair authentication.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"user": {
"description": "Username for this credential.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"credentialType": {
"description": "Credentials type.",
"enum": [
"databricks_access_token_account"
],
"type": "string"
},
"databricksAccessToken": {
"description": "Databricks personal access token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"databricksAccessToken",
"name"
],
"type": "object"
},
{
"properties": {
"clientId": {
"description": "Client ID for Databricks Service Principal.",
"type": "string",
"x-versionadded": "v2.33"
},
"clientSecret": {
"description": "Client secret for Databricks Service Principal.",
"type": "string",
"x-versionadded": "v2.33"
},
"configId": {
"description": "ID of Databricks Service Principal Credentials Secure configuration to share by admin",
"type": "string",
"x-versionadded": "v2.33"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"databricks_service_principal_account"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"apiToken": {
"description": "API token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"api_token"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
}
},
"required": [
"apiToken",
"credentialType",
"name"
],
"type": "object"
},
{
"properties": {
"authUrl": {
"description": "The URL used for SAP authentication.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"clientId": {
"description": "SAP OAUTH client ID.",
"type": "string",
"x-versionadded": "v2.35"
},
"clientSecret": {
"description": "SAP OAUTH client secret.",
"type": "string",
"x-versionadded": "v2.35"
},
"credentialType": {
"description": "Credentials type.",
"enum": [
"sap_oauth"
],
"type": "string"
},
"description": {
"description": "Credentials description.",
"type": "string"
},
"name": {
"description": "Credentials name.",
"type": "string"
},
"sapAiApiUrl": {
"description": "The URL used for SAP AI API service.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
}
},
"required": [
"authUrl",
"clientId",
"clientSecret",
"credentialType",
"name",
"sapAiApiUrl"
],
"type": "object"
}
]
}
Properties¶
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» credentialType | string | false | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» password | string | true | Password to store for this credentials. | |
» snowflakeAccountName | string | false | Snowflake account name. | |
» user | string | true | Username to store for this credentials. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» refreshToken | string | true | OAUTH token. | |
» token | string | true | OAUTH token. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» awsAccessKeyId | string | false | AWS access key ID. | |
» awsSecretAccessKey | string | false | AWS secret access key. | |
» awsSessionToken | string | false | AWS session token. | |
» configId | string | false | ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated). | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» configId | string | false | ID of Secure configurations to share S3 or GCP credentials by admin. Alternative to googleConfigId (deprecated). | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» gcpKey | GCPKey | false | The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account User Managed Key (in the IAM & admin > Service accounts section of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified. | |
» googleConfigId | string | false | ID of Google configurations shared by admin (deprecated). Please use configId instead. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» azureConnectionString | string | true | Azure connection string. | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» azureTenantId | string | false | Tenant ID of the Azure AD service principal. | |
» clientId | string | false | Client ID of the Azure AD service principal. | |
» clientSecret | string | false | Client Secret of the Azure AD service principal. | |
» configId | string | false | ID of secure configuration to share Azure service principal credentials by admin. | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» clientId | string | false | Snowflake OAUTH client ID. | |
» clientSecret | string | false | Snowflake OAUTH client secret. | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» oauthConfigId | string | false | ID of snowflake OAuth configurations shared by admin. | |
» oauthIssuerType | string | false | OAuth issuer type. | |
» oauthIssuerUrl | string(uri) | false | OAuth issuer URL. | |
» oauthScopes | [string] | false | minItems: 1 |
OAuth scopes. |
» snowflakeAccountName | string | false | Snowflake account name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» clientId | string | false | ADLS Gen2 OAuth client ID. | |
» clientSecret | string | false | ADLS Gen2 OAuth client secret. | |
» configId | string | false | ID of secure configuration to share ADLS OAuth credentials by admin. | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» oauthScopes | [string] | false | minItems: 1 |
ADLS Gen2 OAuth scopes. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» configId | string | false | ID of Snowflake Key Pair Credentials Secure configurations to share by admin | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» passphrase | string | false | minLength: 1 minLength: 1 |
Optional passphrase to encrypt private key. |
» privateKeyStr | string | false | minLength: 1 minLength: 1 |
Private key for key pair authentication. |
» user | string | false | Username for this credential. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» credentialType | string | true | Credentials type. | |
» databricksAccessToken | string | true | minLength: 1 minLength: 1 |
Databricks personal access token. |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» clientId | string | false | Client ID for Databricks Service Principal. | |
» clientSecret | string | false | Client secret for Databricks Service Principal. | |
» configId | string | false | ID of Databricks Service Principal Credentials Secure configuration to share by admin | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» apiToken | string | true | minLength: 1 minLength: 1 |
API token. |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | |
» authUrl | string(uri) | true | The URL used for SAP authentication. | |
» clientId | string | true | SAP OAUTH client ID. | |
» clientSecret | string | true | SAP OAUTH client secret. | |
» credentialType | string | true | Credentials type. | |
» description | string | false | Credentials description. | |
» name | string | true | Credentials name. | |
» sapAiApiUrl | string(uri) | true | The URL used for SAP AI API service. |
Enumerated Values¶
Property | Value |
---|---|
credentialType | basic |
credentialType | oauth |
credentialType | s3 |
credentialType | gcp |
credentialType | azure |
credentialType | azure_service_principal |
credentialType | snowflake_oauth_user_account |
oauthIssuerType | [azure , okta , snowflake ] |
credentialType | adls_gen2_oauth |
credentialType | snowflake_key_pair_user_account |
credentialType | databricks_access_token_account |
credentialType | databricks_service_principal_account |
credentialType | api_token |
credentialType | sap_oauth |
CredentialsListAssociationsResponse
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "Objects associated with the specified credentials.",
"items": {
"properties": {
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"link": {
"description": "Link to get more details about associated object.",
"format": "uri",
"type": [
"string",
"null"
]
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"type": "string"
}
},
"required": [
"link",
"objectId",
"objectType"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | integer | false | Number of items returned on this page. | |
data | [CredentialsAssociationsData] | true | Objects associated with the specified credentials. | |
next | string,null(uri) | true | URL pointing to the next page (if null, there is no next page). | |
previous | string,null(uri) | true | URL pointing to the previous page (if null, there is no previous page). | |
totalCount | integer | true | The total number of items across all pages. |
CredentialsListResponse
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "List of credentials.",
"items": {
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | integer | false | Number of items returned on this page. | |
data | [CreateCredentialsResponse] | true | List of credentials. | |
next | string,null(uri) | true | URL pointing to the next page (if null, there is no next page). | |
previous | string,null(uri) | true | URL pointing to the previous page (if null, there is no previous page). | |
totalCount | integer | true | The total number of items across all pages. |
CredentialsToAdd
{
"properties": {
"objectId": {
"description": "Object ID identifying the object to be associated with the credentials.",
"type": "string"
},
"objectType": {
"description": "Type of object associated with the credentials.",
"enum": [
"dataconnection"
],
"type": "string"
}
},
"required": [
"objectId",
"objectType"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
objectId | string | true | Object ID identifying the object to be associated with the credentials. | |
objectType | string | true | Type of object associated with the credentials. |
Enumerated Values¶
Property | Value |
---|---|
objectType | dataconnection |
CredentialsUpdate
{
"properties": {
"apiToken": {
"description": "API token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"authUrl": {
"description": "The URL used for SAP OAuth authentication.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"awsAccessKeyId": {
"description": "AWS access key ID (applicable for credentialType `s3` only).",
"type": "string"
},
"awsSecretAccessKey": {
"description": "The AWS secret access key (applicable for credentialType `s3` only).",
"type": "string"
},
"awsSessionToken": {
"description": "The AWS session token (applicable for credentialType `s3` only).",
"type": "string"
},
"azureConnectionString": {
"description": "Azure connection string (applicable for credentialType `azure` only).",
"type": "string",
"x-versionadded": "v2.21"
},
"azureTenantId": {
"description": "Tenant ID of the Azure AD service principal (applicable for credentialType `azure_service_principal` only).",
"type": "string",
"x-versionadded": "v2.30"
},
"clientId": {
"description": "OAUTH client ID (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account` and `azure_service_principal`).",
"type": "string",
"x-versionadded": "v2.23"
},
"clientSecret": {
"description": "OAUTH client secret (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account` and `azure_service_principal`).",
"type": "string",
"x-versionadded": "v2.23"
},
"configId": {
"description": "ID of secure configuration credentials to share by admin. Alternative to googleConfigId (deprecated).",
"type": "string",
"x-versionadded": "v2.32"
},
"databricksAccessToken": {
"description": "Databricks personal access token.",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.31"
},
"description": {
"description": "Description of credentials. If omitted, and name is not omitted, clears any previous description for that name.",
"type": "string"
},
"gcpKey": {
"description": "The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account *User Managed Key* (in the *IAM & admin > Service accounts section* of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.",
"properties": {
"authProviderX509CertUrl": {
"description": "Auth provider X509 certificate URL.",
"format": "uri",
"type": "string"
},
"authUri": {
"description": "Auth URI.",
"format": "uri",
"type": "string"
},
"clientEmail": {
"description": "Client email address.",
"type": "string"
},
"clientId": {
"description": "Client ID.",
"type": "string"
},
"clientX509CertUrl": {
"description": "Client X509 certificate URL.",
"format": "uri",
"type": "string"
},
"privateKey": {
"description": "Private key.",
"type": "string"
},
"privateKeyId": {
"description": "Private key ID",
"type": "string"
},
"projectId": {
"description": "Project ID.",
"type": "string"
},
"tokenUri": {
"description": "Token URI.",
"format": "uri",
"type": "string"
},
"type": {
"description": "GCP account type.",
"enum": [
"service_account"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"googleConfigId": {
"description": "ID of Google configurations shared by admin (deprecated). Please use configId instead.",
"type": "string",
"x-versionadded": "v2.30"
},
"name": {
"description": "Name of credentials.",
"type": "string"
},
"oauthConfigId": {
"description": "ID of snowflake OAuth configurations shared by admin.",
"type": "string",
"x-versionadded": "v2.30"
},
"oauthIssuerType": {
"description": "Snowflake IDP issuer type (applicable for credentialType `snowflake_oauth_user_account` only).",
"enum": [
"azure",
"okta",
"snowflake"
],
"type": "string",
"x-versionadded": "v2.27"
},
"oauthIssuerUrl": {
"description": "Snowflake External IDP issuer URL (applicable for Snowflake External OAUTH connections only).",
"format": "uri",
"type": "string",
"x-versionadded": "v2.27"
},
"oauthScopes": {
"description": "External OAUTH scopes (applicable for Snowflake External OAUTH connections and credentialType `snowflake_oauth_user_account`).",
"items": {
"description": "AUTH scope.",
"type": "string"
},
"minItems": 1,
"type": "array",
"x-versionadded": "v2.27"
},
"passphrase": {
"description": "Optional passphrase to encrypt private key.(applicable for credentialType `snowflake_key_pair_user_account` only).",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"password": {
"description": "Password to update for this set of credentials (applicable for credentialType `basic` only).",
"type": "string"
},
"privateKeyStr": {
"description": "Private key for key pair authentication.(applicable for credentialType `snowflake_key_pair_user_account` only).",
"minLength": 1,
"type": "string",
"x-versionadded": "v2.30"
},
"refreshToken": {
"description": "OAUTH refresh token (applicable for credentialType `oauth` only).",
"type": "string"
},
"sapAiApiUrl": {
"description": "The URL used for SAP AI API service.",
"format": "uri",
"type": "string",
"x-versionadded": "v2.35"
},
"snowflakeAccountName": {
"description": "Snowflake account name (applicable for `snowflake_oauth_user_account` only).",
"type": "string",
"x-versionadded": "v2.21"
},
"token": {
"description": "OAUTH token (applicable for credentialType `oauth` only).",
"type": "string"
},
"user": {
"description": "Username to update for this set of credentials (applicable for credentialType `basic` and `snowflake_key_pair_user_account` only).",
"type": "string"
}
},
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
apiToken | string | false | minLength: 1 minLength: 1 |
API token. |
authUrl | string(uri) | false | The URL used for SAP OAuth authentication. | |
awsAccessKeyId | string | false | AWS access key ID (applicable for credentialType s3 only). |
|
awsSecretAccessKey | string | false | The AWS secret access key (applicable for credentialType s3 only). |
|
awsSessionToken | string | false | The AWS session token (applicable for credentialType s3 only). |
|
azureConnectionString | string | false | Azure connection string (applicable for credentialType azure only). |
|
azureTenantId | string | false | Tenant ID of the Azure AD service principal (applicable for credentialType azure_service_principal only). |
|
clientId | string | false | OAUTH client ID (applicable for credentialType snowflake_oauth_user_account , adls_gen2_oauth , sap_oauth_account and azure_service_principal ). |
|
clientSecret | string | false | OAUTH client secret (applicable for credentialType snowflake_oauth_user_account , adls_gen2_oauth , sap_oauth_account and azure_service_principal ). |
|
configId | string | false | ID of secure configuration credentials to share by admin. Alternative to googleConfigId (deprecated). | |
databricksAccessToken | string | false | minLength: 1 minLength: 1 |
Databricks personal access token. |
description | string | false | Description of credentials. If omitted, and name is not omitted, clears any previous description for that name. | |
gcpKey | GCPKey | false | The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account User Managed Key (in the IAM & admin > Service accounts section of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified. | |
googleConfigId | string | false | ID of Google configurations shared by admin (deprecated). Please use configId instead. | |
name | string | false | Name of credentials. | |
oauthConfigId | string | false | ID of snowflake OAuth configurations shared by admin. | |
oauthIssuerType | string | false | Snowflake IDP issuer type (applicable for credentialType snowflake_oauth_user_account only). |
|
oauthIssuerUrl | string(uri) | false | Snowflake External IDP issuer URL (applicable for Snowflake External OAUTH connections only). | |
oauthScopes | [string] | false | minItems: 1 |
External OAUTH scopes (applicable for Snowflake External OAUTH connections and credentialType snowflake_oauth_user_account ). |
passphrase | string | false | minLength: 1 minLength: 1 |
Optional passphrase to encrypt private key.(applicable for credentialType snowflake_key_pair_user_account only). |
password | string | false | Password to update for this set of credentials (applicable for credentialType basic only). |
|
privateKeyStr | string | false | minLength: 1 minLength: 1 |
Private key for key pair authentication.(applicable for credentialType snowflake_key_pair_user_account only). |
refreshToken | string | false | OAUTH refresh token (applicable for credentialType oauth only). |
|
sapAiApiUrl | string(uri) | false | The URL used for SAP AI API service. | |
snowflakeAccountName | string | false | Snowflake account name (applicable for snowflake_oauth_user_account only). |
|
token | string | false | OAUTH token (applicable for credentialType oauth only). |
|
user | string | false | Username to update for this set of credentials (applicable for credentialType basic and snowflake_key_pair_user_account only). |
Enumerated Values¶
Property | Value |
---|---|
oauthIssuerType | [azure , okta , snowflake ] |
GCPKey
{
"description": "The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account *User Managed Key* (in the *IAM & admin > Service accounts section* of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.",
"properties": {
"authProviderX509CertUrl": {
"description": "Auth provider X509 certificate URL.",
"format": "uri",
"type": "string"
},
"authUri": {
"description": "Auth URI.",
"format": "uri",
"type": "string"
},
"clientEmail": {
"description": "Client email address.",
"type": "string"
},
"clientId": {
"description": "Client ID.",
"type": "string"
},
"clientX509CertUrl": {
"description": "Client X509 certificate URL.",
"format": "uri",
"type": "string"
},
"privateKey": {
"description": "Private key.",
"type": "string"
},
"privateKeyId": {
"description": "Private key ID",
"type": "string"
},
"projectId": {
"description": "Project ID.",
"type": "string"
},
"tokenUri": {
"description": "Token URI.",
"format": "uri",
"type": "string"
},
"type": {
"description": "GCP account type.",
"enum": [
"service_account"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
The Google Cloud Platform (GCP) key. Output is the downloaded JSON resulting from creating a service account User Managed Key (in the IAM & admin > Service accounts section of GCP).Required if googleConfigId/configId is not specified.Cannot include this parameter if googleConfigId/configId is specified.
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
authProviderX509CertUrl | string(uri) | false | Auth provider X509 certificate URL. | |
authUri | string(uri) | false | Auth URI. | |
clientEmail | string | false | Client email address. | |
clientId | string | false | Client ID. | |
clientX509CertUrl | string(uri) | false | Client X509 certificate URL. | |
privateKey | string | false | Private key. | |
privateKeyId | string | false | Private key ID | |
projectId | string | false | Project ID. | |
tokenUri | string(uri) | false | Token URI. | |
type | string | true | GCP account type. |
Enumerated Values¶
Property | Value |
---|---|
type | service_account |
ListCredentialsAssociationsResponse
{
"properties": {
"count": {
"description": "Number of items returned on this page.",
"type": "integer"
},
"data": {
"description": "List of credentials associations.",
"items": {
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"enum": [
"batchPredictionJobDefinition",
"dataconnection"
],
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name",
"objectId",
"objectType"
],
"type": "object"
},
"type": "array"
},
"next": {
"description": "URL pointing to the next page (if null, there is no next page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"previous": {
"description": "URL pointing to the previous page (if null, there is no previous page).",
"format": "uri",
"type": [
"string",
"null"
]
},
"totalCount": {
"description": "The total number of items across all pages.",
"type": "integer"
}
},
"required": [
"data",
"next",
"previous",
"totalCount"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | integer | false | Number of items returned on this page. | |
data | [RetrieveCredentialAssociationResponse] | true | List of credentials associations. | |
next | string,null(uri) | true | URL pointing to the next page (if null, there is no next page). | |
previous | string,null(uri) | true | URL pointing to the previous page (if null, there is no previous page). | |
totalCount | integer | true | The total number of items across all pages. |
RetrieveCredentialAssociationResponse
{
"properties": {
"creationDate": {
"description": "ISO-8601 formatted date/time when these credentials were created.",
"format": "date-time",
"type": "string"
},
"credentialId": {
"description": "ID of these credentials.",
"type": "string"
},
"credentialType": {
"default": "basic",
"description": "Type of credentials.",
"enum": [
"adls_gen2_oauth",
"api_token",
"azure",
"azure_service_principal",
"basic",
"bearer",
"databricks_access_token_account",
"databricks_service_principal_account",
"gcp",
"oauth",
"rsa",
"s3",
"sap_oauth",
"snowflake_key_pair_user_account",
"snowflake_oauth_user_account",
"tableau_access_token"
],
"type": "string"
},
"description": {
"description": "Description of these credentials.",
"type": "string"
},
"isDefault": {
"description": "Whether this credential association with the given object is default for given session user.",
"type": "boolean"
},
"name": {
"description": "Name of these credentials.",
"type": "string"
},
"objectId": {
"description": "Associated object ID.",
"type": "string"
},
"objectType": {
"description": "Associated object type.",
"enum": [
"batchPredictionJobDefinition",
"dataconnection"
],
"type": "string"
}
},
"required": [
"creationDate",
"credentialId",
"name",
"objectId",
"objectType"
],
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
creationDate | string(date-time) | true | ISO-8601 formatted date/time when these credentials were created. | |
credentialId | string | true | ID of these credentials. | |
credentialType | string | false | Type of credentials. | |
description | string | false | Description of these credentials. | |
isDefault | boolean | false | Whether this credential association with the given object is default for given session user. | |
name | string | true | Name of these credentials. | |
objectId | string | true | Associated object ID. | |
objectType | string | true | Associated object type. |
Enumerated Values¶
Property | Value |
---|---|
credentialType | [adls_gen2_oauth , api_token , azure , azure_service_principal , basic , bearer , databricks_access_token_account , databricks_service_principal_account , gcp , oauth , rsa , s3 , sap_oauth , snowflake_key_pair_user_account , snowflake_oauth_user_account , tableau_access_token ] |
objectType | [batchPredictionJobDefinition , dataconnection ] |
SetCredentialsAssociationRequest
{
"properties": {
"isDefault": {
"default": false,
"description": "Whether this credentials' association with the given object is default for given session user.",
"type": "boolean"
}
},
"type": "object"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
isDefault | boolean | false | Whether this credentials' association with the given object is default for given session user. |