Restaction and asn1action – H3C Technologies H3C Intelligent Management Center User Manual

Page 500

Advertising
background image

486

Example:

<Operation id="addXXXX" category="%str.category1" label="%str.addXXXX"

actionName="addXXXXAction" actionType="1" operLevel="1" devCapability="dc1">

<!—-action and parameter definition-->

</Operations>

RestAction and Asn1Action

The operation definitions include operation parameter definition and action definition. Although an
operation requires one action, the operation parameter initialization typically requires additional actions,

so you can define multiple actions. Only the action corresponding to actionName is executed for the

operation. The system dynamically generates input interface only for this action.
Common configurations support two types of actions: REST action and ASN1 action. The REST action is
executed in the REST mode; the ASN1 action is executed in the ASN1 and background communication

modes, listed in

Table 12

.

Table 12 Properties supported by the RestAction element

Property

name

Description Required Remarks

Id Action

ID

Y

A character string consisting of letters or digits;
unique in an operation.

protocol

Protocol

Y

HTTP or HTTPS.

ip IP

address

Y

Supports replaceable variable, for example,
${ IMC_SERVER_IP }.

port Port

number

Y

Supports replaceable variable, for example,
${ IMC_HTTP_PORT } or ${ IMC_HTTPS_PORT }.

uri

URI used by the
REST operation

Y

For example, /imcrs/vlan?devId=33.

userName

Authentication
username

Y

Supports replaceable variable, for example,
${ IMC_USER_NAME }.

userPassword

Authentication
password

Y

Supports replaceable variable, for example,
${ IMC_USER_PWD }.

method

Method used by
the REST
operation

Y

Enumerated value: 1(GET), 2(POST), 3(PUT), or
4(DELETE).

bufferSize

Buffer size

N

The default is 8192 bytes.

Timeout

Timeout time (in
milliseconds)

N

The default is 5000 milliseconds.

Advertising