Get Distribution URL

Get distribution URL for downloading the installation package.

Synopsis

URI
/public_api/v1/distributions/get_dist_url/
HTTP Method
POST
Required License
Cortex XDR Prevent or Cortex XDR Pro per Endpoint

Description

Get the distribution URL for downloading the installation package.

Request Fields

The body of this request contains a JSON object with the following fields:
Field
Description
request_data
(
Required
) A dictionary containing the API request fields.
distribution_id
(
Required
) A string representing the installation package ID.
package_type
(
Required
) A string representing the type of installation package. Select
one
of the following valid keywords and values:
upgrade
  • Package type should match the distribution type or platform:
  • sh
    —For Linux
  • rpm
    —For Linux
  • deb
    —For Linux
  • pkg
    —For Mac
  • x86
    —For Windows
  • x64
    —For Windows
Request Example
curl -X POST https://api-{fqdn}/public_api/v1/distributions/get_dist_url/ \ -H "x-xdr-auth-id:{key_id}" \ -H "Authorization:{key}" \ -H "Content-Type:application/json" \ -d '{ "request_data":{ "distribution_id":"<distribution ID>", "package_type":"x86" } }'

Success Response

Upon success, the HTTP response code is 200. In addition, this API returns a JSON object containing the query status, as well as an array of JSON objects, each of which represents a single URL.
Field
Description
reply
JSON object containing the query result.
distribution_url
URL for downloading the installation package.
Success Response Example
{ "reply": { "distribution_url": {DOWNLOAD_URL} } }

Error Response

Upon error, the reply includes an HTTP response code, an error message, and additional information describing the error. The HTTP response code is one of the following:
Field
Description
400
Bad Request. Got an invalid JSON.
401
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
402
Unauthorized access. User does not have the required license type to run this API.
403
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
500
Internal server error. A unified status for API communication type errors.
Error Response Format
{"reply": {"err_code": STATUS_CODE, "err_msg": GENERAL_MESSAGE, "err_extra": EXTRA_DATA}}

Recommended For You