Data credentials
Data credentials are the stored credentials leveraged by the data-connections service to connect to external data sources.
Facts
Rate limit | Tier 1 (1000 requests per minute) |
Categories | manage |
Query Parameters
- byCredentialNameboolean
If set to true, credentialId in the query will be interpreted as credential's name
Path Parameters
- qIDstringRequired
Credential ID
Responses
200
application/json
Credential retrieved
- application/jsonobject
application/json properties
- qIDstringRequired
UUID of the credential
- linksobject
links properties
- selfobjectRequired
Link to current query
self properties
- hrefstringRequired
URL pointing to the resource
-
-
- qNamestringRequired
Name of the credential
- qTypestringRequired
Type of credential
- qConnCountintegerRequired
Number of linked connections
- datasourceIDstring
ID datasource that the credential is created for
- qReferenceKeystring
Reference key of credential in redis
-
400
application/json
Empty value not permitted for dataName
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
404
application/json
Credential not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
-H "Authorization: Bearer <API-key>"
const https = require('https')
const data = JSON.stringify("")
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/data-credentials/{qID}',
'method': 'GET',
'headers': {
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
This API is not included yet in qlik-cli
Response
{
"qID": "065f977e-6eca-408c-b78b-ecded823712c",
"links": {
"self": {
"href": "https://mytenant.us.qlikcloud.com/..."
}
},
"qName": "MyCredential for REST datasource",
"qType": "QvWebStorageProviderConnectorPackage.exe",
"qConnCount": 1,
"datasourceID": "rest",
"qReferenceKey": "credential:key"
}
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | manage |
Query Parameters
- byCredentialNameboolean
If set to true, credentialId in the query will be interpreted as credential's name
Path Parameters
- qIDstringRequired
Credential ID
Request Body
Requiredapplication/json
- application/jsonobject
application/json properties
- patchDataarray of objectsRequired
patchData properties
- opstring
Operation type
Can be one of: "add""replace""remove"
- pathstring
Path to the target field to be patched
- valuestring
The value used for the patch, only needed for 'add' or 'replace'. Value type could be either string or integer, should match with the type of the target field
-
-
Responses
204
Credential updated successfully
400
application/json
Connection ID changed
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
404
application/json
Credential not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
409
application/json
Credential already exists (when updated name conflicts with existing record)
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
-X PATCH \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '{"patchData":[{"op":"add","path":"/qName","value":"New value"}]}'
const https = require('https')
const data = JSON.stringify({"patchData":[{"op":"add","path":"/qName","value":"New value"}]})
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/data-credentials/{qID}',
'method': 'PATCH',
'headers': {
'Content-type': 'application/json',
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
req.write(data)
This API is not included yet in qlik-cli
Request
{
"patchData": [
{
"op": "add",
"path": "/qName",
"value": "New value"
}
]
}
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | manage |
Query Parameters
- byCredentialNameboolean
If set to true, credentialId in the query will be interpreted as credential's name
Path Parameters
- qIDstringRequired
Credential ID
Request Body
Requiredapplication/json
Credential
- application/jsonobject
Credential
application/json properties
- qIDstring
UUID of the credential
- qNamestringRequired
Name of the credential
- qTypestringRequired
Type of credential (i.e. connector provider of the corresponding connection)
- qPasswordstringRequired
Password
- qUsernamestringRequired
User name
- connectionIdstring
ID of connection that will be associated with the credential
- datasourceIDstring
ID datasource that the credential is created for
-
Responses
204
Credential updated successfully
400
application/json
Connection ID changed
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
404
application/json
Credential not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
409
application/json
Credential already exists (when updated name conflicts with existing record)
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
-X PUT \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '{"qID":"c2dd20e3-1842-42d0-81fe-1ecf08e6abde","qName":"MyCredential for REST datasource","qType":"QvWebStorageProviderConnectorPackage.exe","qPassword":"MyPassword","qUsername":"MyUsername","connectionId":"2eb98dea-5e3b-4f50-9967-841cec04b72f","datasourceID":"rest"}'
const https = require('https')
const data = JSON.stringify({"qID":"c2dd20e3-1842-42d0-81fe-1ecf08e6abde","qName":"MyCredential for REST datasource","qType":"QvWebStorageProviderConnectorPackage.exe","qPassword":"MyPassword","qUsername":"MyUsername","connectionId":"2eb98dea-5e3b-4f50-9967-841cec04b72f","datasourceID":"rest"})
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/data-credentials/{qID}',
'method': 'PUT',
'headers': {
'Content-type': 'application/json',
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
req.write(data)
This API is not included yet in qlik-cli
Request
{
"qID": "c2dd20e3-1842-42d0-81fe-1ecf08e6abde",
"qName": "MyCredential for REST datasource",
"qType": "QvWebStorageProviderConnectorPackage.exe",
"qPassword": "MyPassword",
"qUsername": "MyUsername",
"connectionId": "2eb98dea-5e3b-4f50-9967-841cec04b72f",
"datasourceID": "rest"
}
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | manage |
Query Parameters
- byCredentialNameboolean
If set to true, credentialId in the query will be interpreted as credential's name
Path Parameters
- qIDstringRequired
Credential ID
Responses
204
Credential deleted successfully
404
application/json
Credential not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codestring
Unique internal error code
- titlestring
A summary in english explaining what went wrong
- detailstring
More concrete details
- statusinteger
HTTP status code
-
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
-X DELETE \
-H "Authorization: Bearer <API-key>"
const https = require('https')
const data = JSON.stringify("")
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/data-credentials/{qID}',
'method': 'DELETE',
'headers': {
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
This API is not included yet in qlik-cli