new Commands(networkPropertiesopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
networkProperties |
Object |
<optional> |
{} |
Properties
|
Methods
(async) getCommandById(commandId) → {Promise.<Command>}
Get a specific command resource by ID
Parameters:
Name | Type | Description |
---|---|---|
commandId |
string | ID of requested command |
Returns:
- The corresponding Command
- Type
- Promise.<Command>
(async) searchCommands(commandFilteropt, pageSizeopt) → {Promise.<Collection.<Command>>}
List or search all commands available through this API.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
commandFilter |
CommandFilter |
<optional> |
new CommandFilter() | default Command filter |
pageSize |
Number |
<optional> |
10 | default page size |
Returns:
- A Collection of Command
- Type
- Promise.<Collection.<Command>>