Deploy a file from Object Store to the host
POST/node/:hostname/file/deploy
Deploy a file from Object Store to the host
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
- application/json
Body
required
Name of the file in the Object Store.
Destination path on the target filesystem.
File permission mode (e.g., "0644").
File owner user.
File owner group.
Possible values: [raw, template]
Content type — "raw" or "template".
vars
object
Template variables when content_type is "template".
Template variables when content_type is "template".
Responses
- 202
- 400
- 401
- 403
- 500
File deploy job accepted.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The job ID used to process this request.
results
object[]
required
The agent that processed the job.
Possible values: [ok, failed, skipped]
The status of the operation for this host.
Whether the file was actually written.
Error message if the agent failed.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "string",
"status": "ok",
"changed": true,
"error": "string"
}
]
}
Invalid input.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Internal error.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}