Workspaces
Create credentials
Create new or fetch existing dedicated credentials for a workspace, to be used e.g. in QueryService. Workspaces created with loginType=none do not contain direct connection credentials; create them with this endpoint when a client needs to connect directly. Snowflake credentials use key-pair authentication (the private key is returned in connection.privateKey), BigQuery credentials return a service account key in connection.credentials. The credentials hold the same direct grants as the workspace itself, resolved from the workspace's configuration.
post/v2/storage/workspaces/{workspaceId}/credentials
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspaceIdinteger required
ID of the workspace.
Request body
Response
Workspace detail including the credentials secret.
Example response
{
"created": "2017-02-13T12:01:05+0100",
"connection": {
"credentials": {
"type": "service_account"
}
},
"lastActivityAt": "2017-02-13T12:01:05+0100",
"warnAt": "2017-02-13T12:01:05+0100",
"deactivateAt": "2017-02-13T12:01:05+0100",
"deleteAt": "2017-02-13T12:01:05+0100"
}Changes
No recorded changes to this operation across all 1 revision of this API.