Direct Access Agents
API for remotely managing configuration settings of Direct Access Gateway agents. Available to users with the Tenant Admin role in Direct Access Gateway v1.7.2+.
The /api/v1/direct-access-agents endpoints are deprecated and will be removed on or after November 1, 2027.
Use the Connectivity Direct Access Agents API for all new
implementations. Migrate existing integrations before the endpoints are removed by replacing
/api/v1/direct-access-agents with /api/connectivity/direct-access-agents. The rest of the path, query
parameters, and request bodies do not change.
Endpoints
For new integrations, and when updating your existing integrations, use:
-
POST connectivity/direct-access-agents/{agentId}/actions/{agentAction}
Restarts the specified agent. The restart action is rejected with 409 while a reload is in RELOADING status. The force-restart action cancels the active reloads and restarts the agent. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.2+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentAction stringRequired
The type of action to perform. Permitted values are
restart(rejected with409while a reload is inRELOADINGstatus) andforce-restart(cancels the active reloads and restarts the agent). - agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
204
Service restarted successfully.
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the agent's Windows service does not exist.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
405
The agent runs on an operating system other than Windows or Linux, where restarting is not supported.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
409
A reload is in RELOADING status. Use force-restart to restart anyway.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.restartDirectAccessAgent( 'string', 'string',)qlik direct-access-agent restart 'string' \ --direct-access-agentId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/actions/{agentAction}" \-X POST \-H "Authorization: Bearer <access_token>"For new integrations, and when updating your existing integrations, use:
-
POST connectivity/direct-access-agents/{agentId}/benchmarks
Starts a background benchmark task that measures the throughput and latency of a Direct Access agent. Use the returned benchmarkId to monitor progress and retrieve performance metrics for capacity planning or performance optimization. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.8+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Query Parameters
- description string
The description for the benchmark task.
- force boolean
Forces the benchmark to start regardless of the state of the agent. Does not override QCS resource limits. Use with caution.
- gigaBytesToTransfer integer
The volume of data in GB to transfer during the throughput measurement part of the benchmark. Must be between 1 and 20.
- name string
The name to assign to the benchmark task.
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
201
Benchmark task created successfully with a unique identifier.
Body
- application/json object
The accepted benchmark run.
application/json properties
- benchmarkId string
The ID of the benchmark run, for the status and cancel operations.
-
400
Bad request, for example gigaBytesToTransfer outside 1 to 20.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The agent was not found.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
501
Reserved; not returned by the current version of the service.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
503
Service is unavailable.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.createDirectAccessAgentBenchmark( 'string', {},)qlik direct-access-agent benchmark create \ --direct-access-agentId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/benchmarks" \-X POST \-H "Authorization: Bearer <access_token>"Example Response
{ "benchmarkId": "string"}For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/benchmarks/{benchmarkId}
Retrieves the current status, progress, and performance metrics for a benchmark task. Use this operation to monitor a running benchmark or inspect its completed results. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.8+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
- benchmarkId stringRequired
The benchmark ID
Responses
200
Benchmark status and performance metrics retrieved successfully.
Body
- application/json object
Represents the status and performance data for a benchmark task.
application/json properties
- name string
The benchmark name
- status string
The benchmark status
- results object
Contains throughput, latency, transfer volume, and transmission timing for a benchmark. Present only when the benchmark status is
Completed;nullbefore that.results properties
- latency integer
The latency in ms measured during data transmission
- throughput integer
The data throughput in KB/s measured during data transmission
- connectorLatency integer
The average latency in ms measured on the connector side during data transmission. Null if no connector benchmark data is available.
- totalBytesTransferred integer
The total number of bytes successfully transferred during data transmission
- dataTransmissionEndTime string
The ISO 8601 formatted timestamp when data transmission completed
- dataTransmissionStartTime string
The ISO 8601 formatted timestamp when data transmission started
-
- benchmarkId string
The benchmark ID
- description string
The benchmark description
- statusMessage string
Additional details about the benchmark status
- benchmarkEndTime string
The ISO 8601 formatted timestamp when the benchmark task completed or was cancelled
- concurrentReloads integer
Number of concurrent benchmarks/reloads observed when this benchmark was started
- benchmarkStartTime string
The ISO 8601 formatted timestamp when the benchmark task started execution
- totalBytesRequested integer
The total bytes requested to be transferred during the benchmark
- getReloadSlotEndTime string
The ISO 8601 formatted timestamp when get reload slot completed
- dataGenerationEndTime string
The ISO 8601 formatted timestamp when data generation completed
- getReloadSlotStartTime string
The ISO 8601 formatted timestamp when get reload slot started
- dataGenerationStartTime string
The ISO 8601 formatted timestamp when data generation started
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The benchmark was not found.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
503
Service is unavailable.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentBenchmark( 'string', 'string',)qlik direct-access-agent benchmark get 'string' \ --direct-access-agentId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/benchmarks/{benchmarkId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "name": "string", "status": "string", "results": { "latency": 42, "throughput": 42, "connectorLatency": 42, "totalBytesTransferred": 42, "dataTransmissionEndTime": "2026-03-11T20:54:34.437Z", "dataTransmissionStartTime": "2026-03-11T20:52:05.308Z" }, "benchmarkId": "string", "description": "string", "statusMessage": "string", "benchmarkEndTime": "2026-03-11T20:54:34.438Z", "concurrentReloads": 42, "benchmarkStartTime": "2026-03-11T20:51:15.927Z", "totalBytesRequested": 42, "getReloadSlotEndTime": "2026-03-11T20:51:22.000Z", "dataGenerationEndTime": "2026-03-11T20:51:40.000Z", "getReloadSlotStartTime": "2026-03-11T20:51:20.000Z", "dataGenerationStartTime": "2026-03-11T20:51:23.000Z"}For new integrations, and when updating your existing integrations, use:
-
POST connectivity/direct-access-agents/{agentId}/benchmarks/{benchmarkId}/cancel
Requests cancellation of a running benchmark for the specified agent. The request is asynchronous. Use the returned status URL to monitor when cancellation completes. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.8+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
- benchmarkId stringRequired
The benchmark ID
Responses
202
The cancellation was requested successfully.
Headers
- Location string
URL to check the status of the benchmark
Body
- application/json object
The accepted cancellation.
application/json properties
- message string
Confirmation text for the cancellation request.
- statusUrl object
statusUrl properties
- href string
The URL to the related resource
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The benchmark was not found.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
503
Service is unavailable.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.createDirectAccessAgentBenchmarkCancel( 'string', 'string',)qlik direct-access-agent benchmark cancel \ --direct-access-agentId 'string' \ --benchmarkId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/benchmarks/{benchmarkId}/cancel" \-X POST \-H "Authorization: Bearer <access_token>"Example Response
{ "message": "string", "statusUrl": { "href": "string" }}For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/configurations
Retrieves the connector agent configuration from the specified agent. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.2+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Query Parameters
- queryProperties array of strings
Individual properties within the agent configuration
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
200
The dictionary of key/value pairs retrieved from the configuration file.
Body
- application/json object
application/json properties
- connectors array of objects
The configuration settings of one connector.
connectors properties
- settings array of objects
The connector's configuration settings.
One of:- ConfigurationLineNumeric object
A configuration setting with a numeric value.
ConfigurationLineNumeric properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedRangeEnd integer
The highest permitted value.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent. - permittedRangeStart integer
The lowest permitted value.
-
- ConfigurationLineString object
A configuration setting with a string value.
ConfigurationLineString properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedValues array of strings
The permitted values; empty when any value is accepted.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent.
-
-
- connectorName string
The connector name.
-
- environment string
The environment the gateway reports it runs in.
- dcaasSettings array of objectsOne of:
- ConfigurationLineNumeric object
A configuration setting with a numeric value.
ConfigurationLineNumeric properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedRangeEnd integer
The highest permitted value.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent. - permittedRangeStart integer
The lowest permitted value.
-
- ConfigurationLineString object
A configuration setting with a string value.
ConfigurationLineString properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedValues array of strings
The permitted values; empty when any value is accepted.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent.
-
-
- productVersion string
The Direct Access gateway product version.
- connectorAgentSettings array of objectsOne of:
- ConfigurationLineNumeric object
A configuration setting with a numeric value.
ConfigurationLineNumeric properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedRangeEnd integer
The highest permitted value.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent. - permittedRangeStart integer
The lowest permitted value.
-
- ConfigurationLineString object
A configuration setting with a string value.
ConfigurationLineString properties
- name string
The configuration key.
- value string
The current value, as a string.
- connector string
The connector or component the setting belongs to.
- uiActions array of strings
The operations allowed on the setting in the gateway UI:
Read,Write.Values may be any of: "Read""Write"
- apiActions array of strings
The operations allowed on the setting through this API:
Read,Write.Values may be any of: "Read""Write"
- description string
What the setting controls.
- displayName string
The human-readable name of the setting.
- defaultValue string
The default value, as a string.
- pendingValue string
The value that applies after the restart, when
pendingApplicationistrue. - skipValidation boolean
truewhen values are written without being validated against the permitted values. - permittedValues array of strings
The permitted values; empty when any value is accepted.
- pendingApplication boolean
truewhen a new value was written but only applies after the agent restarts. - allowMultipleValues boolean
truewhen the value is a list of values. - applyWithoutRestart boolean
truewhen a change takes effect without restarting the agent.
-
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentConfiguration( 'string', {},)qlik direct-access-agent configuration ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/configurations" \-H "Authorization: Bearer <access_token>"Example Response
{ "connectors": [ { "settings": [ { "name": "string", "value": "string", "connector": "string", "uiActions": [ "Read" ], "apiActions": [ "Read" ], "description": "string", "displayName": "string", "defaultValue": "string", "pendingValue": "string", "skipValidation": true, "permittedRangeEnd": 42, "pendingApplication": true, "allowMultipleValues": true, "applyWithoutRestart": true, "permittedRangeStart": 42 } ], "connectorName": "string" } ], "environment": "string", "dcaasSettings": [ { "name": "string", "value": "string", "connector": "string", "uiActions": [ "Read" ], "apiActions": [ "Read" ], "description": "string", "displayName": "string", "defaultValue": "string", "pendingValue": "string", "skipValidation": true, "permittedRangeEnd": 42, "pendingApplication": true, "allowMultipleValues": true, "applyWithoutRestart": true, "permittedRangeStart": 42 } ], "productVersion": "string", "connectorAgentSettings": [ { "name": "string", "value": "string", "connector": "string", "uiActions": [ "Read" ], "apiActions": [ "Read" ], "description": "string", "displayName": "string", "defaultValue": "string", "pendingValue": "string", "skipValidation": true, "permittedRangeEnd": 42, "pendingApplication": true, "allowMultipleValues": true, "applyWithoutRestart": true, "permittedRangeStart": 42 } ]}For new integrations, and when updating your existing integrations, use:
-
PATCH connectivity/direct-access-agents/{agentId}/configurations
Makes changes to the local agent configuration using JSON Patch. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.2+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Request Body
The JSON Patch document
Body
- application/json array of objects
A JSON Patch operation on one configuration property.
application/json properties
- op stringRequired
The operation.
removeresets the property to its default value, or removes it when it has none.Can be one of: "add""replace""remove"
- path stringRequired
The configuration property to change.
Can be one of: "AGENT_LOG_LEVEL""AGENT_HEALTH_FAIL_MINUTES_LIMIT""AGENT_LOG_OPTIONS""EXTEND_FIRST_REQUEST_TIMEOUT""RELOAD_CACHE_MEMORY_MB""DCAAS_LOG_LEVEL""ODBC_LOG_LEVEL""ODBC_MAX_PROCESS_COUNT""ODBC_PROCESS_ISOLATION_MODE""ODBC_RELOAD_SESSION_LIFE""SAPBW_LOG_LEVEL""SAPBW_MAX_PROCESS_COUNT""SAPBW_PROCESS_ISOLATION_MODE""SAPSQL_LOG_LEVEL""SAPSQL_MAX_PROCESS_COUNT""SAPSQL_PROCESS_ISOLATION_MODE""SAPPACKAGE_LOG_LEVEL""SAPPACKAGE_MAX_PROCESS_COUNT""SAPPACKAGE_PROCESS_ISOLATION_MODE""FILE_LOG_LEVEL""FILE_MAX_PROCESS_COUNT""FILE_PROCESS_ISOLATION_MODE""REST_LOG_LEVEL""REST_MAX_PROCESS_COUNT""REST_PROCESS_ISOLATION_MODE""ODBC_TABLES_LIMIT_FOR_GENERICODBC""OVERRIDE_CHUNKS_CACHE_DIR""CHUNK_RECOVERY_RESUME_THRESHOLD_MINUTES""REST_ALLOW_LOCALHOST_CONNECTION""OPTIONAL_CAPABILITIES""AGENT_LOG_MAX_FILE_SIZE_MB""AGENT_LOG_RETENTION_DAYS""METRICS_LOG_MAX_FILE_SIZE_MB""METRICS_LOG_RETENTION_DAYS""DCAAS_LOG_RETENTION_DAYS""ODBC_LOG_RETENTION_DAYS""SAPBW_LOG_RETENTION_DAYS""SAPSQL_LOG_RETENTION_DAYS""SAPPACKAGE_LOG_RETENTION_DAYS""REST_LOG_RETENTION_DAYS""FILE_LOG_RETENTION_DAYS""BENCHMARK_LOAD_PERFORMANCE_METRICS_RECORDING_ENABLED""BENCHMARK_RETENTION_CLEANUP_ENABLED""BENCHMARK_RETENTION_DAYS""BENCHMARK_RETENTION_CHECK_INTERVAL_MINUTES""BENCHMARK_RETENTION_DB_SIZE_MB""BENCHMARK_RETENTION_CLEANUP_BATCH_SIZE"
- value string
The new value. Required for
addandreplace; ignored forremove.
-
The JSON Patch document
Body
- application/json-patch+json array of objects
A JSON Patch operation on one configuration property.
application/json-patch+json properties
- op stringRequired
The operation.
removeresets the property to its default value, or removes it when it has none.Can be one of: "add""replace""remove"
- path stringRequired
The configuration property to change.
Can be one of: "AGENT_LOG_LEVEL""AGENT_HEALTH_FAIL_MINUTES_LIMIT""AGENT_LOG_OPTIONS""EXTEND_FIRST_REQUEST_TIMEOUT""RELOAD_CACHE_MEMORY_MB""DCAAS_LOG_LEVEL""ODBC_LOG_LEVEL""ODBC_MAX_PROCESS_COUNT""ODBC_PROCESS_ISOLATION_MODE""ODBC_RELOAD_SESSION_LIFE""SAPBW_LOG_LEVEL""SAPBW_MAX_PROCESS_COUNT""SAPBW_PROCESS_ISOLATION_MODE""SAPSQL_LOG_LEVEL""SAPSQL_MAX_PROCESS_COUNT""SAPSQL_PROCESS_ISOLATION_MODE""SAPPACKAGE_LOG_LEVEL""SAPPACKAGE_MAX_PROCESS_COUNT""SAPPACKAGE_PROCESS_ISOLATION_MODE""FILE_LOG_LEVEL""FILE_MAX_PROCESS_COUNT""FILE_PROCESS_ISOLATION_MODE""REST_LOG_LEVEL""REST_MAX_PROCESS_COUNT""REST_PROCESS_ISOLATION_MODE""ODBC_TABLES_LIMIT_FOR_GENERICODBC""OVERRIDE_CHUNKS_CACHE_DIR""CHUNK_RECOVERY_RESUME_THRESHOLD_MINUTES""REST_ALLOW_LOCALHOST_CONNECTION""OPTIONAL_CAPABILITIES""AGENT_LOG_MAX_FILE_SIZE_MB""AGENT_LOG_RETENTION_DAYS""METRICS_LOG_MAX_FILE_SIZE_MB""METRICS_LOG_RETENTION_DAYS""DCAAS_LOG_RETENTION_DAYS""ODBC_LOG_RETENTION_DAYS""SAPBW_LOG_RETENTION_DAYS""SAPSQL_LOG_RETENTION_DAYS""SAPPACKAGE_LOG_RETENTION_DAYS""REST_LOG_RETENTION_DAYS""FILE_LOG_RETENTION_DAYS""BENCHMARK_LOAD_PERFORMANCE_METRICS_RECORDING_ENABLED""BENCHMARK_RETENTION_CLEANUP_ENABLED""BENCHMARK_RETENTION_DAYS""BENCHMARK_RETENTION_CHECK_INTERVAL_MINUTES""BENCHMARK_RETENTION_DB_SIZE_MB""BENCHMARK_RETENTION_CLEANUP_BATCH_SIZE"
- value string
The new value. Required for
addandreplace; ignored forremove.
-
Responses
204
All operations were valid and applied.
207
Some operations failed validation. The valid operations were applied; data lists every operation with its validation result.
Body
- application/json object
The result of a PATCH on the agent configuration.
application/json properties
- data array of objects
One entry per operation of the request, in request order.
data properties
- valid boolean
truewhen the operation passed validation and was applied. - operation object
A JSON Patch operation on one configuration property.
operation properties
- op stringRequired
The operation.
removeresets the property to its default value, or removes it when it has none.Can be one of: "add""replace""remove"
- path stringRequired
The configuration property to change.
Can be one of: "AGENT_LOG_LEVEL""AGENT_HEALTH_FAIL_MINUTES_LIMIT""AGENT_LOG_OPTIONS""EXTEND_FIRST_REQUEST_TIMEOUT""RELOAD_CACHE_MEMORY_MB""DCAAS_LOG_LEVEL""ODBC_LOG_LEVEL""ODBC_MAX_PROCESS_COUNT""ODBC_PROCESS_ISOLATION_MODE""ODBC_RELOAD_SESSION_LIFE""SAPBW_LOG_LEVEL""SAPBW_MAX_PROCESS_COUNT""SAPBW_PROCESS_ISOLATION_MODE""SAPSQL_LOG_LEVEL""SAPSQL_MAX_PROCESS_COUNT""SAPSQL_PROCESS_ISOLATION_MODE""SAPPACKAGE_LOG_LEVEL""SAPPACKAGE_MAX_PROCESS_COUNT""SAPPACKAGE_PROCESS_ISOLATION_MODE""FILE_LOG_LEVEL""FILE_MAX_PROCESS_COUNT""FILE_PROCESS_ISOLATION_MODE""REST_LOG_LEVEL""REST_MAX_PROCESS_COUNT""REST_PROCESS_ISOLATION_MODE""ODBC_TABLES_LIMIT_FOR_GENERICODBC""OVERRIDE_CHUNKS_CACHE_DIR""CHUNK_RECOVERY_RESUME_THRESHOLD_MINUTES""REST_ALLOW_LOCALHOST_CONNECTION""OPTIONAL_CAPABILITIES""AGENT_LOG_MAX_FILE_SIZE_MB""AGENT_LOG_RETENTION_DAYS""METRICS_LOG_MAX_FILE_SIZE_MB""METRICS_LOG_RETENTION_DAYS""DCAAS_LOG_RETENTION_DAYS""ODBC_LOG_RETENTION_DAYS""SAPBW_LOG_RETENTION_DAYS""SAPSQL_LOG_RETENTION_DAYS""SAPPACKAGE_LOG_RETENTION_DAYS""REST_LOG_RETENTION_DAYS""FILE_LOG_RETENTION_DAYS""BENCHMARK_LOAD_PERFORMANCE_METRICS_RECORDING_ENABLED""BENCHMARK_RETENTION_CLEANUP_ENABLED""BENCHMARK_RETENTION_DAYS""BENCHMARK_RETENTION_CHECK_INTERVAL_MINUTES""BENCHMARK_RETENTION_DB_SIZE_MB""BENCHMARK_RETENTION_CLEANUP_BATCH_SIZE"
- value string
The new value. Required for
addandreplace; ignored forremove.
-
- validationResult string
Why the operation was rejected;
nullwhen it is valid.
-
- errorMessage string
The error text from the agent when the patch could not be processed;
nullotherwise. - httpStatusCode integer
The status the agent reported for the patch:
204all operations applied,207some applied,400none applied. - failedPatchError object
The error structure of this API.
failedPatchError properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
Bad request, or no operation passed validation (nothing was applied).
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
415
Unsupported content type. Send the JSON Patch document as application/json-patch+json; application/json is listed for API compliance only and is rejected.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.patchDirectAccessAgentConfiguration( 'string', [ { op: 'add', path: 'AGENT_LOG_LEVEL', value: 'string', }, ],)qlik direct-access-agent configuration patch 'string' \ --op 'add' \ --path 'AGENT_LOG_LEVEL' \ --value 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/configurations" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"add","path":"AGENT_LOG_LEVEL","value":"string"}]'Example Response
{ "data": [ { "valid": true, "operation": { "op": "add", "path": "AGENT_LOG_LEVEL", "value": "string" }, "validationResult": "string" } ], "errorMessage": "string", "httpStatusCode": 42, "failedPatchError": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/connectors/{connectorType}/files
Lists the configuration files of the connector: file-connector: plain-text-configuration, allowed-paths, custom-allowed-extensions; rest-connector: plain-text-configuration; odbc-connector: allowed-drivers, allowed-dsns, custom-data-type-mappings. plain-text-configuration and custom-allowed-extensions are read and written as raw lines through connectors/{connectorType}/files/{fileType}; the other files have dedicated typed operations. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.4+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
- connectorType stringRequired
The connector to retrieve the list of files for
Can be one of: "file-connector""rest-connector""odbc-connector"
Responses
200
The list of files for the specified connector.
Body
- application/json object
application/json properties
- result array of strings
The file contents.
- errorMessage object
The error structure of this API.
errorMessage properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentConnectorFilesWithoutQuery( 'string', 'file-connector',)qlik direct-access-agent connector file ls \ --direct-access-agentId 'string' \ --connectorType 'file-connector'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files" \-H "Authorization: Bearer <access_token>"Example Response
{ "result": [ "string" ], "errorMessage": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}
Retrieves the configuration items in the flat file for the specified connector, as raw lines. Raw-lines files per connector: file-connector: plain-text-configuration, custom-allowed-extensions; rest-connector: plain-text-configuration. The other files listed by connectors/{connectorType}/files (custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers) are typed and have dedicated operations. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.4+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
- connectorType stringRequired
The connector type to retrieve
Can be one of: "file-connector""rest-connector""odbc-connector"
- fileType stringRequired
The type of file to retrieve. Case-insensitive; the file names returned by
connectors/{connectorType}/files(for exampleplain-text-configuration) are accepted as well.custom-data-type-mappings,allowed-paths,allowed-dsnsandallowed-driversare managed through their dedicated operations and are rejected here with400.Can be one of: "CustomTypesMapping""PlainTextConfiguration""AllowedPaths""AllowedDrivers""AllowedDsns""CustomAllowedExtensions"
Responses
200
The lines of the file.
Body
- application/json object
application/json properties
- result array of strings
The file contents.
- errorMessage object
The error structure of this API.
errorMessage properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
Unknown fileType, or a file type with a dedicated operation (custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers); use that operation instead.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentConnectorFile( 'string', 'file-connector', 'CustomTypesMapping',)qlik direct-access-agent connector file get 'CustomTypesMapping' \ --direct-access-agentId 'string' \ --connectorType 'file-connector'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}" \-H "Authorization: Bearer <access_token>"Example Response
{ "result": [ "string" ], "errorMessage": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
PUT connectivity/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}
Completely replaces the contents of the connector's configuration file with the given raw lines. Partial updates are not supported. Omitting contentsToSave or sending null is treated as an empty list and clears the file. Raw-lines files per connector: file-connector: plain-text-configuration, custom-allowed-extensions; rest-connector: plain-text-configuration. The other files listed by connectors/{connectorType}/files (custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers) are typed and have dedicated operations. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.4+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
- connectorType stringRequired
The connector type to update
Can be one of: "file-connector""rest-connector""odbc-connector"
- fileType stringRequired
The file type to update. Case-insensitive; the file names returned by
connectors/{connectorType}/files(for exampleplain-text-configuration) are accepted as well.custom-data-type-mappings,allowed-paths,allowed-dsnsandallowed-driversare managed through their dedicated operations and are rejected here with400.Can be one of: "CustomTypesMapping""PlainTextConfiguration""AllowedPaths""AllowedDrivers""AllowedDsns""CustomAllowedExtensions"
Request Body
The contents of the file to be updated
Body
- application/json object
The request to update a connector flat file
application/json properties
- contentsToSave array of strings
The lines to write, in order; they replace the whole file.
-
Responses
204
The file was replaced.
400
Bad request, unknown fileType, or a file type with a dedicated operation (custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers); use that operation instead.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
409
A reload is in progress on the agent and the file was not changed; retry when the reload completes.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.updateDirectAccessAgentConnectorFileWithoutQuery( 'string', 'file-connector', 'CustomTypesMapping', { contentsToSave: ['C:\\\\filepath'] },)qlik direct-access-agent connector file update 'CustomTypesMapping' \ --direct-access-agentId 'string' \ --connectorType 'file-connector'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"contentsToSave":["C:\\\\filepath"]}'For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths
Retrieves the allowed paths settings for the File Connector. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.6+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
200
The allowed paths.
Body
- application/json object
application/json properties
- result array of objects
The file contents.
result properties
- path stringRequired
The Path property in the File connector allowed paths file.
- spaces array of strings
The Spaces property in the File connector allowed paths file.
-
- errorMessage object
The error structure of this API.
errorMessage properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentConnectorsFileConnectorFilesAllowedPaths( 'string',)qlik direct-access-agent connector file allowed-paths get 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths" \-H "Authorization: Bearer <access_token>"Example Response
{ "result": [ { "path": "\\\\\\\\Server\\\\Share\\\\example", "spaces": [ "Foo", "Bar" ] } ], "errorMessage": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
PUT connectivity/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths
Completely replaces the contents of the allowed paths configuration file for the File Connector. Partial updates are not supported. Omitting fileConnectorAllowedPaths or sending null is treated as an empty list and clears the file. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.6+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Request Body
The contents of the file to be updated
Body
- application/json object
The request to update file connector allowed paths configuration
application/json properties
- fileConnectorAllowedPaths array of objects
The allowed paths; they replace the whole file.
fileConnectorAllowedPaths properties
- path stringRequired
The Path property in the File connector allowed paths file.
- spaces array of strings
The Spaces property in the File connector allowed paths file.
-
-
Responses
204
The file was replaced.
400
Invalid request body, or the gateway version does not support this operation.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
409
A reload is in progress on the agent and the file was not changed; retry when the reload completes.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.putDirectAccessAgentConnectorsFileConnectorFilesAllowedPaths( 'string', { fileConnectorAllowedPaths: [ { path: '\\\\\\\\Server\\\\Share\\\\example', spaces: ['Foo', 'Bar'], }, ], },)qlik direct-access-agent connector file allowed-paths update 'string' \ --fileConnectorAllowedPaths-path ''curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"fileConnectorAllowedPaths":[{"path":"\\\\\\\\Server\\\\Share\\\\example","spaces":["Foo","Bar"]}]}'For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings
Retrieves the custom data type mapping settings for the Generic ODBC Connector. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.5+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
200
The custom data type mappings.
Body
- application/json object
application/json properties
- result array of objects
The file contents.
result properties
- id stringRequired
The Identifier property in the ODBC custom data type mapping file.
- bit boolean
The IsBit property in the ODBC custom data type mapping file.
- size integer
The Size property in the ODBC custom data type mapping file.
- qlikDataType stringRequired
The QlikDataType property in the ODBC custom data type mapping file.
- nativeDataType stringRequired
The NativeDataType property in the ODBC custom data type mapping file.
-
- errorMessage object
The error structure of this API.
errorMessage properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentConnectorsOdbcConnectorFilesCustomDataTypeMappings( 'string',)qlik direct-access-agent connector file custom-data-type-mappings get 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings" \-H "Authorization: Bearer <access_token>"Example Response
{ "result": [ { "id": "Amazon Athena ODBC (x64)", "bit": true, "size": 0, "qlikDataType": "String", "nativeDataType": "varchar" } ], "errorMessage": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
PUT connectivity/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings
Completely replaces the contents of the custom data type mapping configuration file for the Generic ODBC connector. Partial updates are not supported. Omitting odbcCustomDataTypes or sending null is treated as an empty list and clears the file. There are property naming differences between the API and the file contents. Use the API property format when making changes. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.5+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Request Body
The contents of the file to be updated.
Body
- application/json object
application/json properties
- odbcCustomDataTypes array of objects
The custom data type mappings; they replace the whole file.
odbcCustomDataTypes properties
- id stringRequired
The Identifier property in the ODBC custom data type mapping file.
- bit boolean
The IsBit property in the ODBC custom data type mapping file.
- size integer
The Size property in the ODBC custom data type mapping file.
- qlikDataType stringRequired
The QlikDataType property in the ODBC custom data type mapping file.
- nativeDataType stringRequired
The NativeDataType property in the ODBC custom data type mapping file.
-
-
Responses
204
The file was replaced.
400
Invalid request body, or the gateway version does not support this operation.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
409
A reload is in progress on the agent and the file was not changed; retry when the reload completes.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.putDirectAccessAgentConnectorsOdbcConnectorFilesCustomDataTypeMappings( 'string', { odbcCustomDataTypes: [ { id: 'Amazon Athena ODBC (x64)', bit: true, size: 0, qlikDataType: 'String', nativeDataType: 'varchar', }, ], },)qlik direct-access-agent connector file custom-data-type-mappings update 'string' \ --odbcCustomDataTypes-id '' \ --odbcCustomDataTypes-nativeDataType '' \ --odbcCustomDataTypes-qlikDataType ''curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"odbcCustomDataTypes":[{"id":"Amazon Athena ODBC (x64)","bit":true,"size":0,"qlikDataType":"String","nativeDataType":"varchar"}]}'For new integrations, and when updating your existing integrations, use:
-
GET connectivity/direct-access-agents/{agentId}/tools/metrics-collector/configuration
Retrieves the settings for the metrics collector. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.9+.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Responses
200
The metrics collector settings and the per-connector scrape configurations.
Body
- application/json object
application/json properties
- result object
The metrics collector configuration of the gateway.
result properties
- connectorConfigurations object
The scrape configuration per connector.
connectorConfigurations properties
- fileConnector object
fileConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- odbcConnector object
odbcConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- restConnector object
restConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- systemMetrics object
systemMetrics properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- connectorAgent object
connectorAgent properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapBwConnector object
sapBwConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapSqlConnector object
sapSqlConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapPackageConnector object
sapPackageConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
-
- metricsCollectorSettings object
metricsCollectorSettings properties
- port integerRequired
The port number that the metrics collector API will run on. This must match the port that the SYSTEM connector runs on to enable network metrics collection.
- enabled booleanRequired
Indicates whether the metrics collector is enabled.
- localDataRetentionDays integerRequired
The number of days to retain local data.
- baseScrapeIntervalSeconds integerRequired
The base interval in seconds for the metrics collection loop. This defines how frequently the collector checks whether to scrape each connector, not the interval at which each connector is scraped. Must be equal to or less than the lowest individual connector scrape interval.
- localDatabaseFileLocation string
The file location for the local metrics database. When empty, the default applies:
%ProgramData%\Qlik\Gateway\tmpon Windows,/usr/share/Qlik/Gateway/tmpin the containerized gateway. - dataRetentionCheckIntervalMinutes integerRequired
The interval in minutes the metrics collector checks for and deletes old data.
- localDataRetentionDatabaseSizeInMb integer
The maximum size of the local database in megabytes.
-
-
- errorMessage object
The error structure of this API.
errorMessage properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
-
400
The gateway version does not support this operation, or the request was invalid.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.getDirectAccessAgentToolsMetricsCollectorConfiguration( 'string',)qlik direct-access-agent tool metrics-collector configuration ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/tools/metrics-collector/configuration" \-H "Authorization: Bearer <access_token>"Example Response
{ "result": { "connectorConfigurations": { "fileConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "odbcConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "restConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "systemMetrics": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "connectorAgent": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "sapBwConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "sapSqlConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false }, "sapPackageConnector": { "scrapeIntervalSeconds": 30, "metricsCollectionEnabled": false } }, "metricsCollectorSettings": { "port": 5052, "enabled": false, "localDataRetentionDays": 30, "baseScrapeIntervalSeconds": 1, "localDatabaseFileLocation": "", "dataRetentionCheckIntervalMinutes": 60, "localDataRetentionDatabaseSizeInMb": 500 } }, "errorMessage": { "errors": [ { "code": "string", "title": "string", "detail": "string" } ], "traceId": "string", "hasErrors": true }}For new integrations, and when updating your existing integrations, use:
-
PUT connectivity/direct-access-agents/{agentId}/tools/metrics-collector/configuration
Completely replaces the contents of the metrics collector settings configuration file. Partial updates are not supported. The requestor must have the TenantAdmin role and be either the gateway's space owner or a member of the gateway's space with the Can Consume Data role. Available in Direct Access Gateway V1.7.9+.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
| Deprecated | This endpoint is deprecated and will eventually be removed. Read our API policy here. |
| Deprecated sunset | 2027-11 |
| Deprecated description | Deprecated: replaced by the namespaced Direct Access Agents API under /api/connectivity/direct-access-agents, which exposes the same operations. See https://qlik.dev/apis/rest/connectivity/direct-access-agents/. |
Path Parameters
- agentId stringRequired
The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.
Request Body
The contents of the file to be updated.
Body
- application/json object
application/json properties
- connectorConfigurations objectRequired
connectorConfigurations properties
- fileConnector objectRequired
fileConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- odbcConnector objectRequired
odbcConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- restConnector objectRequired
restConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- systemMetrics objectRequired
systemMetrics properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- connectorAgent objectRequired
connectorAgent properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapBwConnector objectRequired
sapBwConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapSqlConnector objectRequired
sapSqlConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
- sapPackageConnector objectRequired
sapPackageConnector properties
- scrapeIntervalSeconds integerRequired
Frequency in seconds at which metrics are collected from this connector.
- metricsCollectionEnabled booleanRequired
Indicates whether metrics collection is enabled for this connector.
-
-
- metricsCollectorSettings objectRequired
metricsCollectorSettings properties
- port integerRequired
The port number that the metrics collector API will run on. This must match the port that the SYSTEM connector runs on to enable network metrics collection.
- enabled booleanRequired
Indicates whether the metrics collector is enabled. Required; a request without it is rejected with
400. - localDataRetentionDays integerRequired
The number of days to retain local data.
- baseScrapeIntervalSeconds integerRequired
The base interval in seconds for the metrics collection loop. This defines how frequently the collector checks whether to scrape each connector, not the interval at which each connector is scraped. Must be equal to or less than the lowest individual connector scrape interval.
- localDatabaseFileLocation stringRequired
The file location for the local metrics database. Required; an empty string keeps the default location:
%ProgramData%\Qlik\Gateway\tmpon Windows,/usr/share/Qlik/Gateway/tmpin the containerized gateway. - dataRetentionCheckIntervalMinutes integerRequired
The interval in minutes the metrics collector checks for and deletes old data.
- localDataRetentionDatabaseSizeInMb integer
The maximum size of the local database in megabytes. Optional; 500 MB when omitted.
-
-
Responses
204
The settings were replaced.
400
Invalid request body, or the gateway version does not support this operation.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
403
The requestor does not have the required TenantAdmin role or the required permissions for the gateway's space.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
404
The gateway was not found, or the configuration file does not exist on the agent.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
409
The agent rejected the update because of a conflicting state, such as a reload in progress.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
500
There was an error processing the request.
Body
- application/json object
The error structure of this API.
application/json properties
- errors array of objects
The errors.
errors properties
- code string
The error code, for example
HTTP-400for a plain HTTP error or aDirectAccess-<number>code. - title string
A short description of the error.
- detail string
Additional detail, when available.
-
- traceId string
The trace ID of the request, when available.
- hasErrors boolean
truewhenerrorsis not empty.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.directAccessAgents.setDirectAccessAgentToolsMetricsCollectorConfiguration( 'string', { connectorConfigurations: { connectorAgent: { scrapeIntervalSeconds: 30, }, fileConnector: { scrapeIntervalSeconds: 30, }, odbcConnector: { scrapeIntervalSeconds: 30, }, restConnector: { scrapeIntervalSeconds: 30, }, sapBwConnector: { scrapeIntervalSeconds: 30, }, sapPackageConnector: { scrapeIntervalSeconds: 30, }, sapSqlConnector: { scrapeIntervalSeconds: 30, }, systemMetrics: { scrapeIntervalSeconds: 30, }, }, metricsCollectorSettings: { baseScrapeIntervalSeconds: 1, dataRetentionCheckIntervalMinutes: 60, localDataRetentionDatabaseSizeInMb: 500, localDataRetentionDays: 30, port: 5052, }, },)qlik direct-access-agent tool metrics-collector configuration update 'string' \ --connectorConfigurations-connectorAgent-metricsCollectionEnabled false \ --connectorConfigurations-connectorAgent-scrapeIntervalSeconds 30 \ --connectorConfigurations-fileConnector-metricsCollectionEnabled false \ --connectorConfigurations-fileConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-odbcConnector-metricsCollectionEnabled false \ --connectorConfigurations-odbcConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-restConnector-metricsCollectionEnabled false \ --connectorConfigurations-restConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-sapBwConnector-metricsCollectionEnabled false \ --connectorConfigurations-sapBwConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-sapPackageConnector-metricsCollectionEnabled false \ --connectorConfigurations-sapPackageConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-sapSqlConnector-metricsCollectionEnabled false \ --connectorConfigurations-sapSqlConnector-scrapeIntervalSeconds 30 \ --connectorConfigurations-systemMetrics-metricsCollectionEnabled false \ --connectorConfigurations-systemMetrics-scrapeIntervalSeconds 30 \ --metricsCollectorSettings-baseScrapeIntervalSeconds 1 \ --metricsCollectorSettings-dataRetentionCheckIntervalMinutes 60 \ --metricsCollectorSettings-enabled false \ --metricsCollectorSettings-localDataRetentionDatabaseSizeInMb 500 \ --metricsCollectorSettings-localDataRetentionDays 30 \ --metricsCollectorSettings-localDatabaseFileLocation '' \ --metricsCollectorSettings-port 5052curl "https://{tenant}.{region}.qlikcloud.com/api/v1/direct-access-agents/{agentId}/tools/metrics-collector/configuration" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"connectorConfigurations":{"fileConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"odbcConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"restConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"systemMetrics":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"connectorAgent":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"sapBwConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"sapSqlConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false},"sapPackageConnector":{"scrapeIntervalSeconds":30,"metricsCollectionEnabled":false}},"metricsCollectorSettings":{"port":5052,"enabled":false,"localDataRetentionDays":30,"baseScrapeIntervalSeconds":1,"localDatabaseFileLocation":"","dataRetentionCheckIntervalMinutes":60,"localDataRetentionDatabaseSizeInMb":500}}'