Skip to main content

Remove a deployed file from the host filesystem

POST 

/node/:hostname/file/undeploy

Remove a deployed file from the host filesystem

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

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

Body

required

    path stringrequired

    Filesystem path to undeploy.

Responses

File undeploy 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 removed.

    error string

    Error message if the agent failed.

  • ]

Loading...