data-credentials

data-credentials is the resource representing a credential

Endpoints

Skip to section
GET/data-credentials/{qID}
PUT/data-credentials/{qID}
PATCH/data-credentials/{qID}
DELETE/data-credentials/{qID}

Gets a credential by ID (or by name when bycredentialname=true is set in query)

Path Parameters GET /data-credentials/{qID}

qID

Credential ID

Query Parameters GET /data-credentials/{qID}

byCredentialName

If set to true, credentialId in the query will be intepreted as credential's name

Responses GET /data-credentials/{qID}

200
application/json

Credential retrieved

400
application/json

Empty value not permitted for dataName

404
application/json

Credential not found

GET/data-credentials/{qID}

curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
 -H "Authorization: Bearer <API-key>"

Response GET /data-credentials/{qID}

{
  "qID": "string",
  "qName": "string",
  "qType": "string",
  "qReferenceKey": "string",
  "qConnCount": 0,
  "links": {
    "self": {
      "href": "string"
    }
  }
}

Updates a credential specified by ID (or by name when bycredentialname=true is set in query)

Path Parameters PUT /data-credentials/{qID}

qID

Credential ID

Query Parameters PUT /data-credentials/{qID}

byCredentialName

If set to true, credentialId in the query will be intepreted as credential's name

Request Body PUT /data-credentials/{qID}

application/json

No description

Responses PUT /data-credentials/{qID}

204
object

Credential updated successfully

400
application/json

Connection ID changed

404
application/json

Credential not found

409
application/json

Credential already exists (when updated name conflicts with existing record)

PUT/data-credentials/{qID}

curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
 -X PUT \
 -H "Authorization: Bearer <API-key>" \
 -H "Content-type: application/json" \
 -d '{"qID":"string","qName":"string","qType":"string","qUsername":"string","qPassword":"string","datasourceID":"string","connectionId":"string"}'

Request PUT /data-credentials/{qID}

{
  "qID": "string",
  "qName": "string",
  "qType": "string",
  "qUsername": "string",
  "qPassword": "string",
  "datasourceID": "string",
  "connectionId": "string"
}

Patches a credential specified by ID (or by name when bycredentialname=true is set in query)

Path Parameters PATCH /data-credentials/{qID}

qID

Credential ID

Query Parameters PATCH /data-credentials/{qID}

byCredentialName

If set to true, credentialId in the query will be intepreted as credential's name

Request Body PATCH /data-credentials/{qID}

application/json

No description

Responses PATCH /data-credentials/{qID}

204
object

Credential updated successfully

400
application/json

Connection ID changed

404
application/json

Credential not found

409
application/json

Credential already exists (when updated name conflicts with existing record)

PATCH/data-credentials/{qID}

curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
 -X PATCH \
 -H "Authorization: Bearer <API-key>" \
 -H "Content-type: application/json" \
 -d '{"op":"add","path":"Use '/qName' to pacth the field 'qName' on toplevel","value":"string"}'

Request PATCH /data-credentials/{qID}

{
  "op": "add",
  "path": "Use '/qName' to pacth the field 'qName' on toplevel",
  "value": "string"
}

Deletes the specified credential by ID (or by name when type=credentialname is set in query)

Path Parameters DELETE /data-credentials/{qID}

qID

Credential ID

Query Parameters DELETE /data-credentials/{qID}

byCredentialName

If set to true, credentialId in the query will be intepreted as credential's name

Responses DELETE /data-credentials/{qID}

204
object

Credential deleted successfully

404
application/json

Credential not found

DELETE/data-credentials/{qID}

curl "https://your-tenant.us.qlikcloud.com/api/v1/data-credentials/{qID}" \
 -X DELETE \
 -H "Authorization: Bearer <API-key>"

Connections

object

Properties

data

No description

links

No description

meta

No description

errors

No description

Credentials

object

Properties

data

No description

links

No description

meta

No description

errors

No description

CredentialCreate

Credential

Properties

qID
optional
string

UUID of the credential

qName
string

UName of the credential

qType
string

Type of credential

qUsername
string

User name

qPassword
string

Password

datasourceID
optional
string

ID datasource that the credential is created for

connectionId
optional
string

ID of connection that will be associated with the credential

Credential

object

Properties

qID
string

UUID of the credential

qName
string

Name of the credential

qType
string

Type of credential

qReferenceKey
optional
string

Reference key of credential in redis

qConnCount
integer

Number of linked connections

links

No description

Connection

object

Essential fields of a connection

Properties

qID
string

Unique identifier (UUID) for the data connection, must be same as qEngineObjectID

qName
string

Descriptive name of the data connection

qConnectStatement
string

Connection string for the data connection

qType
string

Type of connection - indicates connection provider type

qLogOn

Indicates the type of user associated with the data connection. Service user is indicated by 0, current application user is indicated by 1.

Enum:

0

1

0

1

LOG_ON_SERVICE_USER

LOG_ON_CURRENT_USER

qArchitecture
integer

0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified.

Enum:

0

1

qEngineObjectID
string

Unique identifier (UUID) for the data connection, must be same as qID

qCredentialsID
optional
string

ID of the credential associated with the connection

qCredentialsName
optional
string

Name of the credential associated with the connection

qSeparateCredentials
boolean

Indicates whether or not this is a credential-less connection

qReferenceKey
optional
string

Reference key of credential in redis

qConnectionSecret
optional
string

String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data0connections/{qID}

privileges
Array<Privilege>

Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection

space
optional
string

ID of the space to which the connection belongs

user
string

User ID of the connection's creator

tenant
optional
string

Tenant ID of the connection's creator (Only when extended=true in query)

created
string

Datetime when the connection was created

updated
string

Datetime when the connection was last updated

links

No description

ConnectionCreateResponse

object

Essential fields of a connection

Properties

qID
string

Unique identifier (UUID) for the data connection, must be same as qEngineObjectID

qName
string

Descriptive name of the data connection

qConnectStatement
string

Connection string for the data connection

qType
string

Type of connection - indicates connection provider type

qLogOn

Indicates the type of user associated with the data connection. Service user is indicated by 0, current application user is indicated by 1.

Enum:

0

1

0

1

LOG_ON_SERVICE_USER

LOG_ON_CURRENT_USER

qArchitecture
integer

0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified.

Enum:

0

1

qEngineObjectID
string

Unique identifier (UUID) for the data connection, must be same as qID

qCredentialsID
optional
string

ID of the credential associated with the connection

qCredentialsName
optional
string

Name of the credential associated with the connection

qSeparateCredentials
boolean

Indicates whether or not this is a credential-less connection

qReferenceKey
optional
string

Reference key of credential in redis

privileges
Array<Privilege>

No description

space
optional
string

ID of the space to which the connection belongs

user
optional
string

User ID of the connection's creator

created
optional
string

Datetime when the connection was created

updated
optional
string

Datetime when the connection was last updated

links

No description

ConnectionCreate

object

Properties

owner
optional
string

ID of the cloud app that owns this connection

qID
optional
string

Unique identifier (UUID) for the data connection. A UUID will be generated automatically if qID is not specified or empty

qName
string

Descriptive name of the data connection

qConnectStatement
string

Connection string for the data connection

qType
string

Type of connection - indicates connection provider type

qLogOn
optional

Indicates the type of user associated with the data connection. Service user is indicated by 0, current application user is indicated by 1. Value will be set to 1 if qLogOn is not defined in the request

Enum:

0

1

0

1

LOG_ON_SERVICE_USER

LOG_ON_CURRENT_USER

qEngineObjectID
optional
string

Unique identifier (UUID) for the data connection as specified by the Sense engine. A UUID will be generated automatically if this field is not specified or empty

qArchitecture
optional
integer

0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified.

Enum:

0

1

qCredentialsID
optional
string

ID of the credential associated with the connection

qCredentialsName
optional
string

Name of the credential associated with the connection

qUsername
optional
string

Any logon username associated with the data connection

qPassword
optional
string

Any logon password associated with the data connection

qSeparateCredentials
optional, default=false
boolean

Indicates whether or not to create a credential-less connection

space
optional
string

ID of the space to which the connection belongs

datasourceID
string

ID of the datasource associated with this connection

qConnectionSecret
optional
string

String that contains connection specific secret (or password) that requires encryption before persist to database. This field is connection level secret

ConnectionUpdate

object

Properties

qID
string

Unique identifier for the data connection

qName
string

Descriptive name of the data connection

qConnectStatement
string

Connection string for the data connection

qType
string

Type of connection - indicates connection provider type

qLogOn
optional

Indicates the type of user associated with the data connection. Service user is indicated by 0, current application user is indicated by 1.

Enum:

0

1

0

1

LOG_ON_SERVICE_USER

LOG_ON_CURRENT_USER

qEngineObjectID
string

Unique identifier for the data connection as specified by the Sense engine

qArchitecture
optional
integer

0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified.

Enum:

0

1

qCredentialsID
optional
string

ID of the credential associated with the connection

qCredentialsName
optional
string

Name of the credential associated with the connection

qUsername
optional
string

Any logon username associated with the data connection

qPassword
optional
string

Any logon password associated with the data connection

qSeparateCredentials
optional
boolean

Indicates whether or not this is a credential-less connection

space
optional
string

ID of the space to which the connection belongs

datasourceID
optional
string

ID of the datasource associated with this connection

qConnectionSecret
optional
string

String that contains connection level secret (or password). If this field presents in request, then existing connection secret will be updated to its value. If is an empty string, then eixsting connection secret will be cleared. If this field is missing, existing secret will not be updated.

PatchRequest

Array<object>

Properties

op
string

Operation type

Enum:

add

replace

remove

path
string

Path to the target field to be patched

value
string

The value used for the patch, only needed for 'add' or 'replace'. Value type coul dbe either string or integer, should match with the type of the target field

Privilege

string

Access type allowed on associated data connection

Meta

object

Properties

count
integer

Total count of resources being requested.

ResponseErrors

object

Properties

errors

No description

Errors

Array<object>

Properties

code
string

Unique error code

title
string

A summary in english explaining what went wrong

detail
string

More concrete details

qConnID

string

Connection ID

qCredID

string

Credential ID

dataName

string

Provides an alternate name to be used for data[] element in GET response.

extended

boolean

Returns extended list of properties when set to true.

spaceID

string

Filtering on connections by space ID

type

string

Connection / credential ID defined in path become connection / credential name when this query parameter is set

credentialID

string

Credential ID

personal

boolean

Filtering on connections, connections in personal space will be returned if set to true

bycredentialname

boolean

If set to true, credentialId in the query will be intepreted as credential's name

owner

boolean

Filtering on datafile connections, datafiles connections used in the app will be returned. The value set in this query is appId.

limit

integer

Number of resources to be returned

sort

string

Name of field sort on for pagination, with prefix with + or - indicating ascending or descending order. When used for data-connections, sort field only applies to non-datafiles connections. Whatever sorting order is, datafiles connections will be returned after all regular connections being returned.

page

string

Pagination sursor string, which is generated auotmatically in previous pagination query.

credentialType

string

Filtering on credential type

datasourceID

string

Filtering on datasource ID

embedded

boolean

Filtering on credential status (i.e. embedded vs separated)

ownedbyme

boolean

Filtering on conneections, return connections owned by the caller if set to true (doesn't apply to datafiles connectionos)

nocache

boolean

datafiles connections will be returned from cache by default (if data-connections is configured to use cache), this query parameter is used disable this default behavior, e.g. return an update-to-date datafiles connection if the query is set to true

nodatafiles

boolean

Datafiles connections will not be returned if set to true

v1.0.0
Was this page helpful?