The key in this resourse will be updated in the AOS-S 16.09 release.
The name key will allow for a "null" or "zero length" name.
"name":
{
"description": "The name of the Port. An \"\" denotes removal of
already configured name if exists.",
"type": "string",
"maxLength": 64,
"minLength": 0,
"sql.unique": true
},
with a cURL commnad like:curl --noproxy <switch IP> --cookie "<sessionId cookie>" -i -k -X PUT https://<switch IP>/rest/v7/ports/<port ID> -d '{"id": "7", "name": "testPort"}'a response like this will be returned from the API:
{
"uri":"/ports/7","id":"7",
"name":"testPort",
"is_port_enabled":true,
"is_port_up":false,
"config_mode":"PCM_AUTO",
"trunk_mode":"PTT_NONE",
"lacp_status":"LAS_DISABLED",
"trunk_group":"",
"is_flow_control_enabled":false,
"is_dsnoop_port_trusted":false
}
or if left empty, curl --noproxy <switch IP> --cookie "<sessionId cookie>" -i -k -X PUT https://<switch IP>/rest/v7/ports/<port ID> -d '{"id": "7", "name": ""}'the respose from the API is:
{
"uri":"/ports/7",
"id":"7",
"name":"",
"is_port_enabled":true,
"is_port_up":false,
"config_mode":"PCM_AUTO",
"trunk_mode":"PTT_NONE",
"lacp_status":"LAS_DISABLED",
"trunk_group":"",
"is_flow_control_enabled":false,
"is_dsnoop_port_trusted":false
}