Get Tools in a Menu
get
/api/topology/Menus/readForMenu
Get all the tools in the menu. The menu is either the restrictive menu or the default menu.
Request
There are no request parameters for this operation.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulGetOperation
The response body for a successful get operation.
-
object
type
Nested Schema : SuccessfulGetOperation
Type:
object
The response body for a successful get operation.
Show Source
-
message: string
The response message.Example:
Loaded 1 entries
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : topologyMenusReadForMenu
Type:
Show Source
object
-
Height: integer
Used when toolTarget is set to window. The height of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser height. Any value greater than 100 is treated as an absolute pixel value.Example:
80
-
Icon: string
The icon used for the tool in menus.Example:
fugue/heart--exclamation.png
-
text: string
The name of the tool.Example:
Device Overview
-
ToolID: integer
The tool ID.Example:
1
-
ToolName: string
The name of the tool.Example:
Device Overview
-
ToolPath: string
The path to the web page to open, or script or function to run, depending on the value of Path Type.
If the value starts with a string and ://, such as https://, this is an absolute path. Otherwise, the path is relative to the $A1BASEDIR/www/tools/topology/ directory.
You can use tokens in the path in the format <Property> to represent object properties. When the tool is run, tokens are replaced with actual values. For example, <DeviceID> is replaced with the value from the object's DeviceID property. Common tokens include:- <DeviceID>
- <ObjectID>
- <OwnerUserID>
- <OwnerUserGroupID>
Example:dashboard/Device%20Overview?DeviceName=<DeviceName>&FilterType=DeviceName&FilterValue=<DeviceName>&DeviceZoneID=<DeviceZoneID>
-
ToolPathTypeName: string
The name of the tool path type.Example:
Internal
-
ToolTarget: string
How the tool opens new pages.
Possible values are:- window: Opens in a pop-up window.
- currenttab: Opens in the current browser tab.
- newtab: Opens in a new browser tab.
Example:window
-
ToolTypeName: string
The name of the tool type. For topology tools, this is always View.Example:
View
-
Width: integer
Used when toolTarget is set to window. The width of the pop-up window. Any value between 10 and 90 is treated as a percentage of the overall browser width. Any value greater than 100 is treated as an absolute pixel value.Example:
80
Example:
[
{
"ToolI":"1",
"text":"Device Overview",
"ToolName":"Device Overview",
"ToolTypeName":"View",
"icon":"/resources/assure1/images/icons/fugue/heart--exclamation.png",
"ToolPath":"dashboard/Device%20Overview?DeviceName=<DeviceName>&FilterType=DeviceName&FilterValue=<DeviceName>&DeviceZoneID=<DeviceZoneID>",
"ToolPathTypeName":"Internal",
"ToolTarget":"window",
"Width":"80",
"Height":"80"
},
{
"ToolID":"2",
"text":"Events",
"ToolName":"Events",
"ToolTypeName":"View",
"icon":"/resources/assure1/images/icons/fugue/funnel--exclamation.png",
"ToolPath":"event/events/EventsGrid?FilterType=DeviceName&FilterValue=<DeviceName>&DeviceZoneID=<DeviceZoneID>",
"ToolPathTypeName":"Internal",
"ToolTarget":"window",
"Width":"80",
"Height":"80"
},
{
"ToolID":"3",
"text":"Device Availability",
"ToolName":"Device Availability",
"ToolTypeName":"View",
"icon":"/resources/assure1/images/icons/silk/brick_go.png",
"ToolPath":"metric/availabilityData?DeviceName=<DeviceName>&TimeRange=now-24h..now&DeviceZoneID=<DeviceZoneID>",
"ToolPathTypeName":"Internal",
"ToolTarget":"window",
"Width":"80",
"Height":"80"
}
]
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
object
An error.