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+.

Use the namespaced API

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.

Restart the agent

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentAction string
    Required

    The type of action to perform. Permitted values are restart (rejected with 409 while a reload is in RELOADING status) and force-restart (cancels the active reloads and restarts the agent).

  • agentId string
    Required

    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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

POST /api/v1/direct-access-agents/{agentId}/actions/{agentAction}
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>"

Start an agent benchmark

Deprecated
Replacement available

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/.
Replaced by

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 string
    Required

    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.

    Show 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

404

The agent was not found.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

501

Reserved; not returned by the current version of the service.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

503

Service is unavailable.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

POST /api/v1/direct-access-agents/{agentId}/benchmarks
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"
}

Get benchmark status

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.

  • benchmarkId string
    Required

    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.

    Show 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; null before that.

      Show 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

404

The benchmark was not found.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

503

Service is unavailable.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/benchmarks/{benchmarkId}
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"
}

Request benchmark cancellation

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.

  • benchmarkId string
    Required

    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.

    Show application/json properties
    • message string

      Confirmation text for the cancellation request.

    • statusUrl object
      Show 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

404

The benchmark was not found.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

503

Service is unavailable.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

POST /api/v1/direct-access-agents/{agentId}/benchmarks/{benchmarkId}/cancel
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"
}
}

Get the agent configuration

Deprecated
Replacement available

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/.
Replaced by

Query Parameters

  • queryProperties array of strings

    Individual properties within the agent configuration

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • connectors array of objects

      The configuration settings of one connector.

      Show connectors properties
      • settings array of objects

        The connector's configuration settings.

        One of:
        • ConfigurationLineNumeric object

          A configuration setting with a numeric value.

          Show 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 pendingApplication is true.

          • skipValidation boolean

            true when values are written without being validated against the permitted values.

          • permittedRangeEnd integer

            The highest permitted value.

          • pendingApplication boolean

            true when a new value was written but only applies after the agent restarts.

          • allowMultipleValues boolean

            true when the value is a list of values.

          • applyWithoutRestart boolean

            true when a change takes effect without restarting the agent.

          • permittedRangeStart integer

            The lowest permitted value.

        • ConfigurationLineString object

          A configuration setting with a string value.

          Show 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 pendingApplication is true.

          • skipValidation boolean

            true when 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

            true when a new value was written but only applies after the agent restarts.

          • allowMultipleValues boolean

            true when the value is a list of values.

          • applyWithoutRestart boolean

            true when 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 objects
      One of:
      • ConfigurationLineNumeric object

        A configuration setting with a numeric value.

        Show 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 pendingApplication is true.

        • skipValidation boolean

          true when values are written without being validated against the permitted values.

        • permittedRangeEnd integer

          The highest permitted value.

        • pendingApplication boolean

          true when a new value was written but only applies after the agent restarts.

        • allowMultipleValues boolean

          true when the value is a list of values.

        • applyWithoutRestart boolean

          true when a change takes effect without restarting the agent.

        • permittedRangeStart integer

          The lowest permitted value.

      • ConfigurationLineString object

        A configuration setting with a string value.

        Show 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 pendingApplication is true.

        • skipValidation boolean

          true when 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

          true when a new value was written but only applies after the agent restarts.

        • allowMultipleValues boolean

          true when the value is a list of values.

        • applyWithoutRestart boolean

          true when a change takes effect without restarting the agent.

    • productVersion string

      The Direct Access gateway product version.

    • connectorAgentSettings array of objects
      One of:
      • ConfigurationLineNumeric object

        A configuration setting with a numeric value.

        Show 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 pendingApplication is true.

        • skipValidation boolean

          true when values are written without being validated against the permitted values.

        • permittedRangeEnd integer

          The highest permitted value.

        • pendingApplication boolean

          true when a new value was written but only applies after the agent restarts.

        • allowMultipleValues boolean

          true when the value is a list of values.

        • applyWithoutRestart boolean

          true when a change takes effect without restarting the agent.

        • permittedRangeStart integer

          The lowest permitted value.

      • ConfigurationLineString object

        A configuration setting with a string value.

        Show 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 pendingApplication is true.

        • skipValidation boolean

          true when 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

          true when a new value was written but only applies after the agent restarts.

        • allowMultipleValues boolean

          true when the value is a list of values.

        • applyWithoutRestart boolean

          true when 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/configurations
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
}
]
}

Update the agent configuration

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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.

    Show application/json properties
    • op string
      Required

      The operation. remove resets the property to its default value, or removes it when it has none.

      Can be one of: "add""replace""remove"

    • path string
      Required

      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 add and replace; ignored for remove.

The JSON Patch document

Body

  • application/json-patch+json array of objects

    A JSON Patch operation on one configuration property.

    Show application/json-patch+json properties
    • op string
      Required

      The operation. remove resets the property to its default value, or removes it when it has none.

      Can be one of: "add""replace""remove"

    • path string
      Required

      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 add and replace; ignored for remove.

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.

    Show application/json properties
    • data array of objects

      One entry per operation of the request, in request order.

      Show data properties
      • valid boolean

        true when the operation passed validation and was applied.

      • operation object

        A JSON Patch operation on one configuration property.

        Show operation properties
        • op string
          Required

          The operation. remove resets the property to its default value, or removes it when it has none.

          Can be one of: "add""replace""remove"

        • path string
          Required

          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 add and replace; ignored for remove.

      • validationResult string

        Why the operation was rejected; null when it is valid.

    • errorMessage string

      The error text from the agent when the patch could not be processed; null otherwise.

    • httpStatusCode integer

      The status the agent reported for the patch: 204 all operations applied, 207 some applied, 400 none applied.

    • failedPatchError object

      The error structure of this API.

      Show failedPatchError properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is not empty.

400

Bad request, or no operation passed validation (nothing was applied).

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

PATCH /api/v1/direct-access-agents/{agentId}/configurations
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
}
}

List the connector configuration files

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.

  • connectorType string
    Required

    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
    Show application/json properties
    • result array of strings

      The file contents.

    • errorMessage object

      The error structure of this API.

      Show errorMessage properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files
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
}
}

Get a connector configuration file

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.

  • connectorType string
    Required

    The connector type to retrieve

    Can be one of: "file-connector""rest-connector""odbc-connector"

  • fileType string
    Required

    The type of file to retrieve. Case-insensitive; the file names returned by connectors/{connectorType}/files (for example plain-text-configuration) are accepted as well. custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers are managed through their dedicated operations and are rejected here with 400.

    Can be one of: "CustomTypesMapping""PlainTextConfiguration""AllowedPaths""AllowedDrivers""AllowedDsns""CustomAllowedExtensions"

Responses

200

The lines of the file.

Body
  • application/json object
    Show application/json properties
    • result array of strings

      The file contents.

    • errorMessage object

      The error structure of this API.

      Show errorMessage properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}
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
}
}

Replace a connector configuration file

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    The ID of the Direct Access gateway, as shown in the gateway's settings dialog in the Management Console.

  • connectorType string
    Required

    The connector type to update

    Can be one of: "file-connector""rest-connector""odbc-connector"

  • fileType string
    Required

    The file type to update. Case-insensitive; the file names returned by connectors/{connectorType}/files (for example plain-text-configuration) are accepted as well. custom-data-type-mappings, allowed-paths, allowed-dsns and allowed-drivers are managed through their dedicated operations and are rejected here with 400.

    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

    Show 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

PUT /api/v1/direct-access-agents/{agentId}/connectors/{connectorType}/files/{fileType}
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"]}'

Get the file connector allowed paths

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • result array of objects

      The file contents.

      Show result properties
      • path string
        Required

        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.

      Show errorMessage properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths
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
}
}

Replace the file connector allowed paths

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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

    Show application/json properties
    • fileConnectorAllowedPaths array of objects

      The allowed paths; they replace the whole file.

      Show fileConnectorAllowedPaths properties
      • path string
        Required

        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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

PUT /api/v1/direct-access-agents/{agentId}/connectors/file-connector/files/allowed-paths
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"]}]}'

Get the ODBC custom data type mappings

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • result array of objects

      The file contents.

      Show result properties
      • id string
        Required

        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 string
        Required

        The QlikDataType property in the ODBC custom data type mapping file.

      • nativeDataType string
        Required

        The NativeDataType property in the ODBC custom data type mapping file.

    • errorMessage object

      The error structure of this API.

      Show errorMessage properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings
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
}
}

Replace the ODBC custom data type mappings

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • odbcCustomDataTypes array of objects

      The custom data type mappings; they replace the whole file.

      Show odbcCustomDataTypes properties
      • id string
        Required

        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 string
        Required

        The QlikDataType property in the ODBC custom data type mapping file.

      • nativeDataType string
        Required

        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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

PUT /api/v1/direct-access-agents/{agentId}/connectors/odbc-connector/files/custom-data-type-mappings
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"}]}'

Get the metrics collector settings

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • result object

      The metrics collector configuration of the gateway.

      Show result properties
      • connectorConfigurations object

        The scrape configuration per connector.

        Show connectorConfigurations properties
        • fileConnector object
          Show fileConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • odbcConnector object
          Show odbcConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • restConnector object
          Show restConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • systemMetrics object
          Show systemMetrics properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • connectorAgent object
          Show connectorAgent properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • sapBwConnector object
          Show sapBwConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • sapSqlConnector object
          Show sapSqlConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

        • sapPackageConnector object
          Show sapPackageConnector properties
          • scrapeIntervalSeconds integer
            Required

            Frequency in seconds at which metrics are collected from this connector.

          • metricsCollectionEnabled boolean
            Required

            Indicates whether metrics collection is enabled for this connector.

      • metricsCollectorSettings object
        Show metricsCollectorSettings properties
        • port integer
          Required

          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 boolean
          Required

          Indicates whether the metrics collector is enabled.

        • localDataRetentionDays integer
          Required

          The number of days to retain local data.

        • baseScrapeIntervalSeconds integer
          Required

          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\tmp on Windows, /usr/share/Qlik/Gateway/tmp in the containerized gateway.

        • dataRetentionCheckIntervalMinutes integer
          Required

          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.

      Show errorMessage properties
      • errors array of objects

        The errors.

        Show errors properties
        • code string

          The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

        true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

GET /api/v1/direct-access-agents/{agentId}/tools/metrics-collector/configuration
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
}
}

Replace the metrics collector settings

Deprecated
Replacement available

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/.
Replaced by

Path Parameters

  • agentId string
    Required

    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
    Show application/json properties
    • connectorConfigurations object
      Required
      Show connectorConfigurations properties
      • fileConnector object
        Required
        Show fileConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • odbcConnector object
        Required
        Show odbcConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • restConnector object
        Required
        Show restConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • systemMetrics object
        Required
        Show systemMetrics properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • connectorAgent object
        Required
        Show connectorAgent properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • sapBwConnector object
        Required
        Show sapBwConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • sapSqlConnector object
        Required
        Show sapSqlConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

      • sapPackageConnector object
        Required
        Show sapPackageConnector properties
        • scrapeIntervalSeconds integer
          Required

          Frequency in seconds at which metrics are collected from this connector.

        • metricsCollectionEnabled boolean
          Required

          Indicates whether metrics collection is enabled for this connector.

    • metricsCollectorSettings object
      Required
      Show metricsCollectorSettings properties
      • port integer
        Required

        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 boolean
        Required

        Indicates whether the metrics collector is enabled. Required; a request without it is rejected with 400.

      • localDataRetentionDays integer
        Required

        The number of days to retain local data.

      • baseScrapeIntervalSeconds integer
        Required

        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
        Required

        The file location for the local metrics database. Required; an empty string keeps the default location: %ProgramData%\Qlik\Gateway\tmp on Windows, /usr/share/Qlik/Gateway/tmp in the containerized gateway.

      • dataRetentionCheckIntervalMinutes integer
        Required

        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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is 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.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

500

There was an error processing the request.

Body
  • application/json object

    The error structure of this API.

    Show application/json properties
    • errors array of objects

      The errors.

      Show errors properties
      • code string

        The error code, for example HTTP-400 for a plain HTTP error or a DirectAccess-<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

      true when errors is not empty.

PUT /api/v1/direct-access-agents/{agentId}/tools/metrics-collector/configuration
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 5052
curl "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}}'