Hostname

Modifies and retrieves hostname command configuration. The URI to configure data for hostname command is:

/system/config/hostname

Default Configuration

Hostname has preconfigured value based on the router box type and hardware, such as ICX 7650-48F.

Use the following PATCH method to update hostname configuration:

 {
   "openconfig-system:config" : {
      "hostname" : "patch"
   }
}

Use the following PUT method to replace hostname configuration:

 {
   "openconfig-system:config" : {
      "hostname" : "put"
   }
}

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/system/config/hostname
Request body: None
Response body:     
{
   "openconfig-system:hostname" : "ICX7650-48F Router"
}

PUT method

URL: https://<host>/restconf/data/system/config
Request body:
 {
   "openconfig-system:config" : {
      "hostname" : "put"
   }
}
Response body: None    

PATCH method

URL: https://<host>/restconf/data/system/config
Request body:
{
   "openconfig-system:config" : {
      "hostname" : "patch"
   }
}
Response body: None    

DELETE

URL: https://<host>/restconf/data/system/config/hostname
Request body: None
Response body: None