Skip to main content

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

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Body

required

    object_name stringrequired

    Name of the file in the Object Store.

    path stringrequired

    Destination path on the target filesystem.

    mode string

    File permission mode (e.g., "0644").

    owner string

    File owner user.

    group string

    File owner group.

    content_type stringrequired

    Possible values: [raw, template]

    Content type — "raw" or "template".

    vars

    object

    Template variables when content_type is "template".

    property name* any

    Template variables when content_type is "template".

Responses

File deploy job accepted.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The agent that processed the job.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    changed boolean

    Whether the file was actually written.

    error string

    Error message if the agent failed.

  • ]

Loading...