Skip to main content

Create a sysctl parameter

POST 

/node/:hostname/sysctl

Create a new sysctl kernel parameter on the target node. Fails if the key is already managed. This operation is idempotent — creating the same key and value again 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).

Body

required

Sysctl create parameters.

    key stringrequired

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

    value stringrequired

    Value to set for the sysctl parameter.

Responses

Sysctl parameter created.

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...