*getActionList
Configuration Article | CA-20220907-TP-38 VDG Sense | API | Functions | Macros |
Note: This function requires an API license.
Retrieve a list of actions that can be executed with the command executeAction.
Request
command=getActionList |
Response
<result errorcode="0">
  <actions count="[number]">
    <action>
      <name>[string]</name>
      <description>[string]</description>
      <type>[string]</type>
      <parameters count="[number]">
        <parameter>
          <name>[string]</name>
          <description>[string]</description>
          <type>[string]</type>
          <required>[boolean]</required>
          <min>[string]</min>
          <max>[string]</max>
          <default>[string]</default>
        </parameter>
        ...
      </parameters>
    </action>
    ...
  </actions>
</result> |
node | value | remarks | Â | Â | Â | Â | Â |
---|---|---|---|---|---|---|---|
/result | Â | Â | Â | Â | Â | ||
@errorcode | [number] | See error codes below | Â | Â | Â | Â | Â |
/result/actions | Â | Â | Â | Â | Â | ||
@count | [number] | The number of actions in this list. | Â | Â | Â | Â | Â |
/result/actions/action | Â | Â | Â | Â | Â | ||
name | [string] | unique name of the action. | Â | Â | Â | Â | Â |
description | [string] | a description of the action. | Â | Â | Â | Â | Â |
type | [string] | if it is a 'viewer' or 'server' action. | Â | Â | Â | Â | Â |
/result/actions/action/parameters | Â | Â | Â | Â | Â | ||
@count | [number] | the number of parameters in this list | Â | Â | Â | Â | Â |
/result/actions/action/parameters/parameter | Â | Â | Â | Â | Â | ||
name | [string] | unique name of the parameter. | Â | Â | Â | Â | Â |
description | [string] | a description of the parameter. | Â | Â | Â | Â | Â |
type | [string] | the type of the parameter. | Â | Â | Â | Â | Â |
required | [boolean] | [0 | 1 | false | true | yes | no] whether this parameter is required. |
min | [string] | optional, the minimum value for this parameter. | Â | Â | Â | Â | Â |
max | [string] | optional, the maximum value for this parameter. | Â | Â | Â | Â | Â |
default | [string] | optional, the default value for this parameter. | Â | Â | Â | Â | Â |
error code | description | remarks |
---|---|---|
0 | Ok | Ok, no error |
-18 | General error | An undefined error occured |
Changelog
2.2.1 – added