Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | externalmanage |
Request Body
Requiredapplication/json
- application/jsonobject
application/json properties
- datacenterstring
The datacenter where the tenant is located.
- licenseKeystring
The signed license key of the license that will be associated with the created tenant.
-
Responses
201
application/json
Tenant created.
- application/jsonobject
application/json properties
- idstringRequired
The unique tenant identifier.
- namestringRequired
The display name of the tenant.
- linksobject
links properties
- selfobjectRequired
A link to this tenant.
self properties
- hrefstringRequired
URL that defines the resource.
-
-
- statusstring
The status of the tenant.
Can be one of: "active""disabled""deleted"
- createdstring
The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants).
- hostnamesarray of strings
List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases.
- datacenterstring
The datacenter where the tenant is located.
- lastUpdatedstring
The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants).
- createdByUserstring
The user ID who created the tenant.
- enableAnalyticCreationboolean
- autoAssignCreateSharedSpacesRoleToProfessionalsboolean
- autoAssignDataServicesContributorRoleToProfessionalsboolean
- autoAssignPrivateAnalyticsContentCreatorRoleToProfessionalsboolean
-
400
application/json
Invalid request was made.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
403
application/json
Invalid request was made.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
500
application/json
Internal server error
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
default
application/json
Unexpected error.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '{"datacenter":"us-east-1","licenseKey":1234567890}'
const https = require('https')
const data = JSON.stringify({"datacenter":"us-east-1","licenseKey":1234567890})
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/tenants',
'method': 'POST',
'headers': {
'Content-type': 'application/json',
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
req.write(data)
qlik tenant create \
--licenseKey="1234567890"
Request
{
"datacenter": "us-east-1",
"licenseKey": 1234567890
}
Response
{
"id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69",
"name": "QlikTenant",
"links": {
"self": {
"href": "http://foo.example/api/v1/tenants/TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69"
}
},
"status": "active",
"created": "string",
"hostnames": [
"foo.example"
],
"datacenter": "us-east-1",
"lastUpdated": "string",
"createdByUser": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy7A",
"enableAnalyticCreation": false,
"autoAssignCreateSharedSpacesRoleToProfessionals": true,
"autoAssignDataServicesContributorRoleToProfessionals": true,
"autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals": true
}
Facts
Rate limit | Tier 1 (1000 requests per minute) |
Categories | externalmanage |
Path Parameters
- tenantIdstringRequired
The id of the tenant to retrieve
Responses
200
application/json
Tenant found.
- application/jsonobject
application/json properties
- idstringRequired
The unique tenant identifier.
- namestringRequired
The display name of the tenant.
- linksobject
links properties
- selfobjectRequired
A link to this tenant.
self properties
- hrefstringRequired
URL that defines the resource.
-
-
- statusstring
The status of the tenant.
Can be one of: "active""disabled""deleted"
- createdstring
The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants).
- hostnamesarray of strings
List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases.
- datacenterstring
The datacenter where the tenant is located.
- lastUpdatedstring
The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants).
- createdByUserstring
The user ID who created the tenant.
- enableAnalyticCreationboolean
- autoAssignCreateSharedSpacesRoleToProfessionalsboolean
- autoAssignDataServicesContributorRoleToProfessionalsboolean
- autoAssignPrivateAnalyticsContentCreatorRoleToProfessionalsboolean
-
404
application/json
Tenant not found.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
default
application/json
Unexpected error
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/{tenantId}" \
-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/tenants/{tenantId}',
'method': 'GET',
'headers': {
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
This API is not included yet in qlik-cli
Response
{
"id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69",
"name": "QlikTenant",
"links": {
"self": {
"href": "http://foo.example/api/v1/tenants/TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69"
}
},
"status": "active",
"created": "string",
"hostnames": [
"foo.example"
],
"datacenter": "us-east-1",
"lastUpdated": "string",
"createdByUser": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy7A",
"enableAnalyticCreation": false,
"autoAssignCreateSharedSpacesRoleToProfessionals": true,
"autoAssignDataServicesContributorRoleToProfessionals": true,
"autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals": true
}
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | externalmanage |
Path Parameters
- tenantIdstringRequired
The id of the tenant to update
Request Body
Requiredapplication/json
A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
- application/jsonarray of objects
A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
application/json properties
- opstringRequired
The operation to be performed.
Can be one of: "replace"
- pathstringRequired
A JSON Pointer value that references a location within the target document where the operation is performed.
Can be one of: "/name""/hostnames/1""/autoAssignCreateSharedSpacesRoleToProfessionals""/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals""/autoAssignDataServicesContributorRoleToProfessionals""/enableAnalyticCreation"
- valuestring|booleanRequired
The value to be used for this operation.
One of:- string
- boolean
-
-
Responses
204
Tenant updated successfully
400
application/json
Invalid PATCH request
- application/jsonobject
application/json properties
- errorsarray of objects
An error object.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
meta properties
- codestring
The error code.
- titlestring
Summary of the problem.
-
- titlestringRequired
Summary of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
-
403
application/json
Forbidden
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
404
application/json
Tenant not found.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
429
application/json
Request has been rate limited.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
default
application/json
Unexpected error
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/{tenantId}" \
-X PATCH \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '[{"op":"replace","path":"/name","value":"Corp"},{"op":"replace","path":"/hostnames/1","value":"example-tenant.us.qlikcloud.com"},{"op":"replace","path":"/autoAssignCreateSharedSpacesRoleToProfessionals","value":true},{"op":"replace","path":"/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals","value":false},{"op":"replace","path":"/autoAssignDataServicesContributorRoleToProfessionals","value":true},{"op":"replace","path":"/enableAnalyticCreation","value":false}]'
const https = require('https')
const data = JSON.stringify([{"op":"replace","path":"/name","value":"Corp"},{"op":"replace","path":"/hostnames/1","value":"example-tenant.us.qlikcloud.com"},{"op":"replace","path":"/autoAssignCreateSharedSpacesRoleToProfessionals","value":true},{"op":"replace","path":"/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals","value":false},{"op":"replace","path":"/autoAssignDataServicesContributorRoleToProfessionals","value":true},{"op":"replace","path":"/enableAnalyticCreation","value":false}])
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/tenants/{tenantId}',
'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
[
{
"op": "replace",
"path": "/name",
"value": "Corp"
},
{
"op": "replace",
"path": "/hostnames/1",
"value": "example-tenant.us.qlikcloud.com"
},
{
"op": "replace",
"path": "/autoAssignCreateSharedSpacesRoleToProfessionals",
"value": true
},
{
"op": "replace",
"path": "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals",
"value": false
},
{
"op": "replace",
"path": "/autoAssignDataServicesContributorRoleToProfessionals",
"value": true
},
{
"op": "replace",
"path": "/enableAnalyticCreation",
"value": false
}
]
Deactivates a tenant.
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | externalmanage |
Header Parameters
- qlik-confirm-hostnamestringRequired
A confirmation string that should match the hostname associated with the tenant resource to be deactivated. Example: unicorn.eu.qlikcloud.com
Path Parameters
- tenantIdstringRequired
The id of the tenant to deactivate
Request Body
application/json
A request to deactivate a tenant.
- application/jsonobject
A request to deactivate a tenant.
application/json properties
- purgeAfterDaysinteger
Sets the number of days to purge the tenant after deactivation. Only available to OEMs.
-
Responses
200
application/json
Tenant deactivated successfully
The result of tenant deactivation.
- application/jsonobject
The result of tenant deactivation.
application/json properties
- idstring
The unique tenant identifier.
- statusstring
The status of the tenant.
Can be one of: "disabled"
- estimatedPurgeDatestring
The estimated date time of when tenant will be purged.
-
400
application/json
Invalid request
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
403
application/json
Forbidden
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
404
application/json
Tenant Not Found
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
412
application/json
Precondition Failed (invalid qlik-confirm-hostname value)
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
429
application/json
Request has been rate limited.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
default
application/json
Unexpected error
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/{tenantId}/actions/deactivate" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '{"purgeAfterDays":30}'
const https = require('https')
const data = JSON.stringify({"purgeAfterDays":30})
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/tenants/{tenantId}/actions/deactivate',
'method': 'POST',
'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
{
"purgeAfterDays": 30
}
Response
{
"id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69",
"status": "disabled",
"estimatedPurgeDate": "2023-08-18T00:00:00.000Z"
}
Reactivates a disabled tenant.
Facts
Rate limit | Tier 2 (100 requests per minute) |
Categories | externalmanage |
Header Parameters
- qlik-confirm-hostnamestringRequired
A confirmation string that should match one of the hostnames of the tenant resource to be reactivated. Example: unicorn.eu.qlikcloud.com
Path Parameters
- tenantIdstringRequired
The id of the tenant to reactivate
Request Body
application/json
- application/jsonobject
Responses
200
application/json
Tenant reactivated successfully
- application/jsonobject
403
application/json
Forbidden
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
404
application/json
Not Found
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
412
application/json
Precondition Failed (invalid qlik-confirm-hostname value)
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
429
application/json
Request has been rate limited.
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
default
application/json
Unexpected error
The error response object describing the error from the handling of an HTTP request.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
- traceIdstring
A unique identifier for tracing the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/{tenantId}/actions/reactivate" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <API-key>" \
-d '{}'
const https = require('https')
const data = JSON.stringify({})
const options = {
'hostname': 'https://your-tenant.us.qlikcloud.com',
'port': 443,
'path': '/api/v1/tenants/{tenantId}/actions/reactivate',
'method': 'POST',
'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
{}
Response
{}
Facts
Rate limit | Tier 1 (1000 requests per minute) |
Categories | externalmanage |
Responses
302
text/html
Successful redirect.
- text/htmlstring
curl "https://your-tenant.us.qlikcloud.com/api/v1/tenants/me" \
-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/tenants/me',
'method': 'GET',
'headers': {
'Authorization': 'Bearer <API-key>'
}
}
const req = https.request(options)
This API is not included yet in qlik-cli