The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Read or configure hostname

Prev Next

Reads or configures the hostname.

API URL

GET https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/hostname

or

POST https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/hostname

Payload

JSON containing the hostname.

Example: '{"hostname": "EX-157"}'

Sample curl requests

Update Hostname

curl -skg -H "$auth-token" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface -d '{"hostname" : "THOR"}' -H 'content-type:application/json'

Read Hostname

curl -skg -H "$auth-token" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface/hostname {"hostname": "THOR"}

Availability

This command is available on the following platforms:

  • Network Security

  • Helix Enterprise

Authentication

Standard WSAPI authentication

Response mime type

application/json