--- title: "Read or configure hostname" slug: "read-or-configure-hostname" tags: ["Reference"] updated: 2026-09-03T18:40:43Z published: 2026-09-03T18:40:43Z canonical: "docs.trellix.com/read-or-configure-hostname" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Read or configure hostname 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` :