HomeDocumentationAPI Reference
Log In
API Reference

Update host

Allows users to update a host (such as credentials to use, host aliases, jump_hosts and tags). An active value in the request is ignored, so a whole host object can be sent back unchanged: a host's active state is maintained by Sandfly as hosts are scanned. Use POST /hosts/retry to have an inactive host checked again.

Path Params
required

Unique host_id or host_sequence_id to update.

Body Params

Parameters to update in the registered host.

string | null

Credential ID to use with this host.

jump_hosts
array of strings | null

Jump hosts to update on host.

jump_hosts
string | null

Directory to run scan from instead of the node configuration values. An empty string means no override, and "~" means the directory the scan user logs in to. Any other value must be an absolute path of at most 512 characters, using only letters, digits, space, and . _ - + , @ % : = ~ /

int32 | null

SSH port to use with host.

string | null

Queue (node) name to use to connect to this host.

tags
array of strings
Defaults to []

Tags to update on host.

tags
boolean | null

If true, the SSH key of the host will be recorded during the Host Add operation, then on future scans Sandfly will not authenticate to the host if the host key changes.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json