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