/api/artifacts/{path}

Download PDF

REST API endpoint: /api/artifacts/{path}

/api/artifacts/{path}

GET

Summary: Describe an artifact directory or read an artifact file

The first path segment is the root (sec, forwarder or scripts). A directory answers with its entries, a file with its content and sha256.

Parameters

NameTypeRequiredDescription
pathstringYes
patternstringNofnmatch glob applied to entry names

Responses

200

404

PUT

Summary: Create or overwrite an artifact file

Validates the content for the root (forwarder YAML, script shebang), then replaces the file atomically; a refused write leaves the previous file untouched. Scripts are written mode 0700, other files 0600. No reload is triggered.

Parameters

NameTypeRequiredDescription
pathstringYes

Request Body

json
{
  "example": "request body"
}

Responses

200

201

413

DELETE

Summary: Delete an artifact file or a SEC instance directory

Parameters

NameTypeRequiredDescription
pathstringYes

Responses

204

No response body

404

409

/api/artifacts/{path} | LogZilla Documentation