Skip to main content

Update a sysctl parameter

PUT 

/node/:hostname/sysctl/:key

Update an existing sysctl kernel parameter on the target node. Fails if the key is not currently managed. This operation is idempotent — updating with the same value results in no change.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

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

    key stringrequired

    Possible values: non-empty, Value must match regular expression ^[a-z0-9._-]+$

    Sysctl parameter key (e.g., net.ipv4.ip_forward).

Body

required

Sysctl update parameters.

    value stringrequired

    New value for the sysctl parameter.

Responses

Sysctl parameter updated.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    Hostname of the agent that processed this operation.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    key string

    Sysctl parameter key.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...