# Credentials

> Credentials - The following endpoints outline how to manage user credentials.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-05-06T18:17:09.660163+00:00` (UTC).

## Primary page

- [Credentials](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html): Full documentation for this topic (HTML).

## Sections on this page

- [List credentials](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#list-credentials): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentials_list-parameters): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses): In-page section heading.
- [Store a new set of credentials which can be used](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#store-a-new-set-of-credentials-which-can-be-used): In-page section heading.
- [Body parameter](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#body-parameter): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentials_create-parameters): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses_1): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_1): In-page section heading.
- [List credentials associated by association ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#list-credentials-associated-by-association-id): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentialsassociations_listforobject-parameters): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_1): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses_2): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_2): In-page section heading.
- [Delete the credentials set by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#delete-the-credentials-set-by-credential-id): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentials_delete-parameters): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_3): In-page section heading.
- [Retrieve the credentials set by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#retrieve-the-credentials-set-by-credential-id): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentials_retrieve-parameters): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses_3): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_4): In-page section heading.
- [Update specified credentials by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#update-specified-credentials-by-credential-id): In-page section heading.
- [Body parameter](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#body-parameter_1): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentials_patch-parameters): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_5): In-page section heading.
- [List all objects associated by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#list-all-objects-associated-by-credential-id): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentialsassociations_listforcredential-parameters): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_2): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses_4): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_6): In-page section heading.
- [Add objects associated by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#add-objects-associated-by-credential-id): In-page section heading.
- [Body parameter](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#body-parameter_2): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentialsassociations_patchmany-parameters): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_7): In-page section heading.
- [Set default credentials by credential ID](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#set-default-credentials-by-credential-id): In-page section heading.
- [Body parameter](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#body-parameter_3): In-page section heading.
- [Parameters](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#credentialsassociations_put-parameters): In-page section heading.
- [Example responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#example-responses_5): In-page section heading.
- [Responses](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#responses_8): In-page section heading.
- [CreateCredentialsResponse](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CreateCredentialsResponse): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_3): In-page section heading.
- [CredentialsAssociationUpdate](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsAssociationUpdate): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_1): In-page section heading.
- [CredentialsAssociationsData](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsAssociationsData): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_2): In-page section heading.
- [CredentialsBody](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsBody): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_3): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_4): In-page section heading.
- [CredentialsListAssociationsResponse](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsListAssociationsResponse): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_4): In-page section heading.
- [CredentialsListResponse](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsListResponse): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_5): In-page section heading.
- [CredentialsToAdd](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsToAdd): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_6): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_5): In-page section heading.
- [CredentialsUpdate](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_CredentialsUpdate): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_7): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_6): In-page section heading.
- [GCPKey](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_GCPKey): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_8): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_7): In-page section heading.
- [ListCredentialsAssociationsResponse](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_ListCredentialsAssociationsResponse): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_9): In-page section heading.
- [RetrieveCredentialAssociationResponse](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_RetrieveCredentialAssociationResponse): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_10): In-page section heading.
- [Enumerated Values](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#enumerated-values_8): In-page section heading.
- [SetCredentialsAssociationRequest](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#tocS_SetCredentialsAssociationRequest): In-page section heading.
- [Properties](https://docs.datarobot.com/en/docs/api/reference/public-api/credentials.html#properties_11): In-page section heading.

## Related documentation

- [Developer documentation](https://docs.datarobot.com/en/docs/api/index.html): Linked from this page.
- [API reference](https://docs.datarobot.com/en/docs/api/reference/index.html): Linked from this page.
- [REST API](https://docs.datarobot.com/en/docs/api/reference/public-api/index.html): Linked from this page.
- [Administration](https://docs.datarobot.com/en/docs/api/reference/public-api/tag-admin.html): Linked from this page.

## Documentation content

The following endpoints outline how to manage user credentials.

## List credentials

Operation path: `GET /api/v2/credentials/`

Authentication requirements: `BearerAuth`

List all sets of credentials available for given user.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| offset | query | integer | false | The 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": "The 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_oauth",
              "azure_service_principal",
              "basic",
              "bearer",
              "box_jwt",
              "client_id_and_secret",
              "databricks_access_token_account",
              "databricks_service_principal_account",
              "external_oauth_provider",
              "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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |

## Store a new set of credentials which can be used

Operation path: `POST /api/v2/credentials/`

Authentication requirements: `BearerAuth`

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 refresh 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": {
        "clientId": {
          "description": "Azure OAuth client ID.",
          "type": "string",
          "x-versionadded": "v2.38"
        },
        "clientSecret": {
          "description": "Azure OAuth client secret.",
          "type": "string",
          "x-versionadded": "v2.38"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "azure_oauth"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        },
        "oauthScopes": {
          "description": "Azure OAuth scopes.",
          "items": {
            "description": "Azure OAuth scope.",
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array",
          "x-versionadded": "v2.38"
        }
      },
      "required": [
        "clientId",
        "clientSecret",
        "credentialType",
        "name",
        "oauthScopes"
      ],
      "type": "object"
    },
    {
      "properties": {
        "authenticationId": {
          "description": "Authentication ID for external OAuth provider. Used to retrieve tokens from DataRobot OAuth service.",
          "type": "string"
        },
        "credentialType": {
          "description": "Credentials type for DataRobot managed external OAuth provider service integration.",
          "enum": [
            "external_oauth_provider"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        }
      },
      "required": [
        "authenticationId",
        "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": {
        "clientId": {
          "description": "Box JWT client ID.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "clientSecret": {
          "description": "Box JWT client secret.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "configId": {
          "description": "ID of secure configuration to share Box JWT credentials by admin.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "box_jwt"
          ],
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "enterpriseId": {
          "description": "Box enterprise identifier.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        },
        "passphrase": {
          "description": "Passphrase for the Box JWT private key.",
          "minLength": 1,
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "privateKeyStr": {
          "description": "RSA private key for Box JWT.",
          "minLength": 1,
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "publicKeyId": {
          "description": "Box public key identifier.",
          "type": "string",
          "x-versionadded": "v2.41"
        }
      },
      "required": [
        "credentialType",
        "name"
      ],
      "type": "object"
    },
    {
      "properties": {
        "clientId": {
          "description": "Client ID for integrations that use a client ID and client secret (e.g. OAuth client credentials).",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "clientSecret": {
          "description": "Client secret for integrations that use a client ID and client secret (e.g. OAuth client credentials).",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "configId": {
          "description": "ID of shared secure configuration for client ID and client secret, managed by admin.",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "client_id_and_secret"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        }
      },
      "required": [
        "credentialType",
        "name"
      ],
      "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_oauth",
        "azure_service_principal",
        "basic",
        "bearer",
        "box_jwt",
        "client_id_and_secret",
        "databricks_access_token_account",
        "databricks_service_principal_account",
        "external_oauth_provider",
        "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 |

## List credentials associated by association ID

Operation path: `GET /api/v2/credentials/associations/{associationId}/`

Authentication requirements: `BearerAuth`

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 | The 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. == : Where: of ObjectId type - the ID of the data connection; of string type - the type of data connection from CredentialMappingResourceTypes Enum: dataconnection, batch_prediction_job_definition. |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| orderBy | [isDefault, -isDefault] |

### Example responses

> 200 Response

```
{
  "properties": {
    "count": {
      "description": "The 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_oauth",
              "azure_service_principal",
              "basic",
              "bearer",
              "box_jwt",
              "client_id_and_secret",
              "databricks_access_token_account",
              "databricks_service_principal_account",
              "external_oauth_provider",
              "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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |

## Delete the credentials set by credential ID

Operation path: `DELETE /api/v2/credentials/{credentialId}/`

Authentication requirements: `BearerAuth`

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 |

## Retrieve the credentials set by credential ID

Operation path: `GET /api/v2/credentials/{credentialId}/`

Authentication requirements: `BearerAuth`

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_oauth",
        "azure_service_principal",
        "basic",
        "bearer",
        "box_jwt",
        "client_id_and_secret",
        "databricks_access_token_account",
        "databricks_service_principal_account",
        "external_oauth_provider",
        "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 |

## Update specified credentials by credential ID

Operation path: `PATCH /api/v2/credentials/{credentialId}/`

Authentication requirements: `BearerAuth`

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"
    },
    "authenticationId": {
      "description": "Authorized external OAuth provider identifier.",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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`, `azure_service_principal`, `azure_oauth` and `client_id_and_secret`).",
      "type": "string",
      "x-versionadded": "v2.23"
    },
    "clientSecret": {
      "description": "OAUTH client secret (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account`, `azure_service_principal`, `azure_oauth` and `client_id_and_secret`).",
      "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"
    },
    "enterpriseId": {
      "description": "Box enterprise identifier (applicable for credentialType `box_jwt` only).",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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, credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, and `azure_oauth`).",
      "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"
    },
    "publicKeyId": {
      "description": "Box public key identifier (applicable for credentialType `box_jwt` only).",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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 |

## List all objects associated by credential ID

Operation path: `GET /api/v2/credentials/{credentialId}/associations/`

Authentication requirements: `BearerAuth`

List all objects associated with specified credentials for the current user.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| offset | query | integer | false | The 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": "The 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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |

## Add objects associated by credential ID

Operation path: `PATCH /api/v2/credentials/{credentialId}/associations/`

Authentication requirements: `BearerAuth`

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 |

## Set default credentials by credential ID

Operation path: `PUT /api/v2/credentials/{credentialId}/associations/{associationId}/`

Authentication requirements: `BearerAuth`

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. == : Where: of ObjectId type - the ID of the data connection; of string type - the type of data connection from CredentialMappingResourceTypes Enum: dataconnection, batch_prediction_job_definition. |
| 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_oauth",
        "azure_service_principal",
        "basic",
        "bearer",
        "box_jwt",
        "client_id_and_secret",
        "databricks_access_token_account",
        "databricks_service_principal_account",
        "external_oauth_provider",
        "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 |

# 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_oauth",
        "azure_service_principal",
        "basic",
        "bearer",
        "box_jwt",
        "client_id_and_secret",
        "databricks_access_token_account",
        "databricks_service_principal_account",
        "external_oauth_provider",
        "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_oauth, azure_service_principal, basic, bearer, box_jwt, client_id_and_secret, databricks_access_token_account, databricks_service_principal_account, external_oauth_provider, 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/][get-apiv2credentialscredentialidassociations]. |

## 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 refresh 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": {
        "clientId": {
          "description": "Azure OAuth client ID.",
          "type": "string",
          "x-versionadded": "v2.38"
        },
        "clientSecret": {
          "description": "Azure OAuth client secret.",
          "type": "string",
          "x-versionadded": "v2.38"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "azure_oauth"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        },
        "oauthScopes": {
          "description": "Azure OAuth scopes.",
          "items": {
            "description": "Azure OAuth scope.",
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array",
          "x-versionadded": "v2.38"
        }
      },
      "required": [
        "clientId",
        "clientSecret",
        "credentialType",
        "name",
        "oauthScopes"
      ],
      "type": "object"
    },
    {
      "properties": {
        "authenticationId": {
          "description": "Authentication ID for external OAuth provider. Used to retrieve tokens from DataRobot OAuth service.",
          "type": "string"
        },
        "credentialType": {
          "description": "Credentials type for DataRobot managed external OAuth provider service integration.",
          "enum": [
            "external_oauth_provider"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        }
      },
      "required": [
        "authenticationId",
        "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": {
        "clientId": {
          "description": "Box JWT client ID.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "clientSecret": {
          "description": "Box JWT client secret.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "configId": {
          "description": "ID of secure configuration to share Box JWT credentials by admin.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "box_jwt"
          ],
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "enterpriseId": {
          "description": "Box enterprise identifier.",
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        },
        "passphrase": {
          "description": "Passphrase for the Box JWT private key.",
          "minLength": 1,
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "privateKeyStr": {
          "description": "RSA private key for Box JWT.",
          "minLength": 1,
          "type": "string",
          "x-versionadded": "v2.41"
        },
        "publicKeyId": {
          "description": "Box public key identifier.",
          "type": "string",
          "x-versionadded": "v2.41"
        }
      },
      "required": [
        "credentialType",
        "name"
      ],
      "type": "object"
    },
    {
      "properties": {
        "clientId": {
          "description": "Client ID for integrations that use a client ID and client secret (e.g. OAuth client credentials).",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "clientSecret": {
          "description": "Client secret for integrations that use a client ID and client secret (e.g. OAuth client credentials).",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "configId": {
          "description": "ID of shared secure configuration for client ID and client secret, managed by admin.",
          "type": "string",
          "x-versionadded": "v2.42"
        },
        "credentialType": {
          "description": "Credentials type.",
          "enum": [
            "client_id_and_secret"
          ],
          "type": "string"
        },
        "description": {
          "description": "Credentials description.",
          "type": "string"
        },
        "name": {
          "description": "Credentials name.",
          "type": "string"
        }
      },
      "required": [
        "credentialType",
        "name"
      ],
      "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 refresh 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 |
| » clientId | string | true |  | Azure OAuth client ID. |
| » clientSecret | string | true |  | Azure OAuth client secret. |
| » credentialType | string | true |  | Credentials type. |
| » description | string | false |  | Credentials description. |
| » name | string | true |  | Credentials name. |
| » oauthScopes | [string] | true | maxItems: 100minItems: 1 | Azure OAuth scopes. |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| anonymous | object | false |  | none |
| » authenticationId | string | true |  | Authentication ID for external OAuth provider. Used to retrieve tokens from DataRobot OAuth service. |
| » credentialType | string | true |  | Credentials type for DataRobot managed external OAuth provider service integration. |
| » 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 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: 1minLength: 1 | Optional passphrase to encrypt private key. |
| » privateKeyStr | string | false | minLength: 1minLength: 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: 1minLength: 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: 1minLength: 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. |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| anonymous | object | false |  | none |
| » clientId | string | false |  | Box JWT client ID. |
| » clientSecret | string | false |  | Box JWT client secret. |
| » configId | string | false |  | ID of secure configuration to share Box JWT credentials by admin. |
| » credentialType | string | true |  | Credentials type. |
| » description | string | false |  | Credentials description. |
| » enterpriseId | string | false |  | Box enterprise identifier. |
| » name | string | true |  | Credentials name. |
| » passphrase | string | false | minLength: 1minLength: 1 | Passphrase for the Box JWT private key. |
| » privateKeyStr | string | false | minLength: 1minLength: 1 | RSA private key for Box JWT. |
| » publicKeyId | string | false |  | Box public key identifier. |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| anonymous | object | false |  | none |
| » clientId | string | false |  | Client ID for integrations that use a client ID and client secret (e.g. OAuth client credentials). |
| » clientSecret | string | false |  | Client secret for integrations that use a client ID and client secret (e.g. OAuth client credentials). |
| » configId | string | false |  | ID of shared secure configuration for client ID and client secret, managed by admin. |
| » credentialType | string | true |  | Credentials type. |
| » description | string | false |  | Credentials description. |
| » name | string | true |  | Credentials name. |

### 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 | azure_oauth |
| credentialType | external_oauth_provider |
| credentialType | snowflake_key_pair_user_account |
| credentialType | databricks_access_token_account |
| credentialType | databricks_service_principal_account |
| credentialType | api_token |
| credentialType | sap_oauth |
| credentialType | box_jwt |
| credentialType | client_id_and_secret |

## CredentialsListAssociationsResponse

```
{
  "properties": {
    "count": {
      "description": "The 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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |  | The number of items returned on this page. |
| data | [CredentialsAssociationsData] | true |  | Objects associated with the specified credentials. |
| next | string,null(uri) | true |  | The URL of the next page (if null, there is no next page). |
| previous | string,null(uri) | true |  | The URL of 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": "The 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_oauth",
              "azure_service_principal",
              "basic",
              "bearer",
              "box_jwt",
              "client_id_and_secret",
              "databricks_access_token_account",
              "databricks_service_principal_account",
              "external_oauth_provider",
              "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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |  | The number of items returned on this page. |
| data | [CreateCredentialsResponse] | true |  | List of credentials. |
| next | string,null(uri) | true |  | The URL of the next page (if null, there is no next page). |
| previous | string,null(uri) | true |  | The URL of 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"
    },
    "authenticationId": {
      "description": "Authorized external OAuth provider identifier.",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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`, `azure_service_principal`, `azure_oauth` and `client_id_and_secret`).",
      "type": "string",
      "x-versionadded": "v2.23"
    },
    "clientSecret": {
      "description": "OAUTH client secret (applicable for credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, `sap_oauth_account`, `azure_service_principal`, `azure_oauth` and `client_id_and_secret`).",
      "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"
    },
    "enterpriseId": {
      "description": "Box enterprise identifier (applicable for credentialType `box_jwt` only).",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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, credentialType `snowflake_oauth_user_account`, `adls_gen2_oauth`, and `azure_oauth`).",
      "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"
    },
    "publicKeyId": {
      "description": "Box public key identifier (applicable for credentialType `box_jwt` only).",
      "type": "string",
      "x-versionadded": "v2.41"
    },
    "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: 1minLength: 1 | API token. |
| authUrl | string(uri) | false |  | The URL used for SAP OAuth authentication. |
| authenticationId | string | false |  | Authorized external OAuth provider identifier. |
| 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, azure_service_principal, azure_oauth and client_id_and_secret). |
| clientSecret | string | false |  | OAUTH client secret (applicable for credentialType snowflake_oauth_user_account, adls_gen2_oauth, sap_oauth_account, azure_service_principal, azure_oauth and client_id_and_secret). |
| configId | string | false |  | ID of secure configuration credentials to share by admin. Alternative to googleConfigId (deprecated). |
| databricksAccessToken | string | false | minLength: 1minLength: 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. |
| enterpriseId | string | false |  | Box enterprise identifier (applicable for credentialType box_jwt only). |
| 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, credentialType snowflake_oauth_user_account, adls_gen2_oauth, and azure_oauth). |
| passphrase | string | false | minLength: 1minLength: 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: 1minLength: 1 | Private key for key pair authentication.(applicable for credentialType snowflake_key_pair_user_account only). |
| publicKeyId | string | false |  | Box public key identifier (applicable for credentialType box_jwt 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": "The 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_oauth",
              "azure_service_principal",
              "basic",
              "bearer",
              "box_jwt",
              "client_id_and_secret",
              "databricks_access_token_account",
              "databricks_service_principal_account",
              "external_oauth_provider",
              "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": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of 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 |  | The number of items returned on this page. |
| data | [RetrieveCredentialAssociationResponse] | true |  | List of credentials associations. |
| next | string,null(uri) | true |  | The URL of the next page (if null, there is no next page). |
| previous | string,null(uri) | true |  | The URL of 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_oauth",
        "azure_service_principal",
        "basic",
        "bearer",
        "box_jwt",
        "client_id_and_secret",
        "databricks_access_token_account",
        "databricks_service_principal_account",
        "external_oauth_provider",
        "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_oauth, azure_service_principal, basic, bearer, box_jwt, client_id_and_secret, databricks_access_token_account, databricks_service_principal_account, external_oauth_provider, 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. |
