<action> element
The <action> element contains details of an action to be performed by a CICS management client interface PUT request on the resources specified by the URI.
包含于:
属性
- name="action_name"
- The <action> element must contain only one name attribute identifying the action to be performed.
必须将 action_name 括在匹配的单引号或双引号中。 As is the convention in coding XML, you can use escape sequences to replace certain special characters such as &, <, and >. If the action has any parameters associated with it, you must specify them as child elements of <action> using the <parameter> element.
If you specify the <action> element in the HTTP body, you must not include an <attributes> element in the same request.
包含:
The <action> element can contain one or more child <parameter> elements.示例
以下示例显示了名为
ABCD的 BAS 资源的安装。PUT http://exampledomain.com:12345/CICSSystemManagement/<RESOURCE NAME>/<CONTEXT>/?CRITERIA=NAME%3DABCD
<request>
<action name="INSTALL">
<parameter name="TARGET" value="SYSTEM1"/>
<parameter name="USAGE" value="LOCAL"/>
</action>
</request>以下示例显示了一个 CSDADD 操作,其中 CSD 组 GROUP4添加到 CSD 列表 LIST2的 CSD 组 GROUP3之后。
为 CSDADD 操作指定的参数包括:
TO_CSDLIST, ADD_CSDGROUP和 ADD_LOCATION。TO_CSDLIST指定要向其添加 CSD 组的 CSD 列表。ADD_CSDGROUP指定要在 CSD 列表中的旁边添加所提供的 CSD 组的 CSD 组。ADD_LOCATION指定是在 CSD 列表中添加提供的 CSD 组"BEFORE"还是"AFTER"现有 CSD 组。
PUT http://exampledomain.com:12345/CICSSystemManagement/CICSCSDGroup/<CONTEXT>/<SCOPE>/?CRITERIA=NAME%3DGROUP4
<request>
<action name="CSDADD">
<parameter name="TO_CSDLIST" value="LIST2"/>
<parameter name="ADD_CSDGROUP" value="GROUP3"/>
<parameter name="ADD_LOCATION" value="AFTER"/>
</action>
</request>以下示例显示了对 CICS 操作资源 RESOURCE 的 DISABLE 操作。 请注意,该资源的类型包含在 URI 中,在这种情况下,该资源的类型为
CICSAtomService。PUT http://exampledomain.com:12345/CICSSystemManagement/CICSAtomService/<CONTEXT>/<SCOPE>/?CRITERIA=NAME%3DRESOURCE
<request>
<action name="DISABLE"/>
</request>