Artifacts

Artifact cache for collector binaries.

All paths are relative to the base path /api/v1 (same origin as the UI). Authentication, roles, pagination and the error format are described in the overview; the types are on the page Data types.

OperationRequestPermission
Cached artifactsGET /artifactsread (viewer)
Download and verify artifacts for a version and platformsPOST /artifacts/actions/prefetchartifacts:manage (operator)
One artifactGET /artifacts/{id}read (viewer)
Remove an artifact from the cacheDELETE /artifacts/{id}artifacts:manage (operator)
Download artifact bytes (used by myriarch-updater; Range supported)GET /artifacts/{id}/content/{filename}custom

Cached artifacts

GET /api/v1/artifacts

Operation listArtifacts. Permission read (lowest role: viewer).

Parameters

NameInTypeRequiredDescription
distributionquerystringnoOne of otelcol-contrib, opampsupervisor. Default otelcol-contrib.
versionquerystringno
statusqueryarray of ArtifactStatusnoRepeat the parameter for several values.
limitqueryintegernoRange 1 to 500. Default 50.
offsetqueryintegernoRange 0 to 100000. Default 0.

Responses

StatusDescriptionContent typeType
200Artifactsapplication/jsonArtifactPage
401Not authenticated (code unauthorized)application/problem+jsonProblem

Download and verify artifacts for a version and platforms

POST /api/v1/artifacts/actions/prefetch

Operation prefetchArtifacts. Permission artifacts:manage (lowest role: operator).

Parameters

NameInTypeRequiredDescription
X-CSRF-TokenheaderstringnoRequired for cookie-authenticated mutating requests (value of cookie myriarch_csrf).

Request body

Content type application/json, required. Type: PrefetchRequest.

{
  "distribution": "otelcol-contrib",
  "version": "0.162.0",
  "platforms": [
    "windows/amd64"
  ]
}

Responses

StatusDescriptionContent typeType
202Prefetch started; current artifact statesapplication/jsonArtifactList
422Validation failed (code validation_failed, details in issues)application/problem+jsonProblem

One artifact

GET /api/v1/artifacts/{id}

Operation getArtifact. Permission read (lowest role: viewer).

Parameters

NameInTypeRequiredDescription
idpathstringyesFormat uuid.

Responses

StatusDescriptionContent typeType
200Artifactapplication/jsonArtifact
404Not found (code not_found)application/problem+jsonProblem

Remove an artifact from the cache

DELETE /api/v1/artifacts/{id}

Operation deleteArtifact. Permission artifacts:manage (lowest role: operator).

Parameters

NameInTypeRequiredDescription
idpathstringyesFormat uuid.
X-CSRF-TokenheaderstringnoRequired for cookie-authenticated mutating requests (value of cookie myriarch_csrf).

Responses

StatusDescriptionContent typeType
204Deleted--
404Not found (code not_found)application/problem+jsonProblem

Download artifact bytes (used by myriarch-updater; Range supported)

GET /api/v1/artifacts/{id}/content/{filename}

Operation downloadArtifact. Permission custom. Neither a session nor an API token is checked: the operation checks its own credential (see below).

Authenticated with a short-lived download token issued in the OpAMP package offer (DownloadableFile.headers: Authorization: Bearer myrd_...). The filename segment lets agents detect the archive format from the URL suffix.

Parameters

NameInTypeRequiredDescription
idpathstringyesFormat uuid.
filenamepathstringyes
Rangeheaderstringno

Responses

StatusDescriptionContent typeType
200Full contentapplication/octet-streamstring. Format binary.
206Partial contentapplication/octet-streamstring. Format binary.
401Not authenticated (code unauthorized)application/problem+jsonProblem
404Not found (code not_found)application/problem+jsonProblem