CLI Reference Guide
The types of approval policies supported are: NamedApproverApprovalTemplate,
NamedGroupApprovalTemplate, UserContextApprovalTemplate, and
DelegatedApprovalTemplate.
In NamedApproverApprovalTemplate request body:
l displayName is required.
l approver is optional.
l minApprovalRequired is optional. If no approver is specified, defaults to 0. If any approver is
specified, defaults to 1. Value cannot be greater than the number of approvers specified.
l automaticApproval is optional; if not present, default to false.If automaticApproval is true:
n automaticPeriodDuration (in days)is optional; if not present, defaults to 0. Valid value is
integer from 0 to 365.
n automaticApprovalDecision is required; valid value is APPROVED or REJECTED.
Example request body:
<NamedApproverApprovalTemplate>
<displayName>Name Ex Template 03</displayName>
<approver><userName>consumer</userName></approver>
...
<approver><userName>consumer04</userName></approver>
<minApprovalRequired>1</minApprovalRequired>
<automaticApproval>true</automaticApproval>
<automaticPeriodDuration>12</automaticPeriodDuration>
<automaticApprovalDecision>
<name>REJECTED</name>
</automaticApprovalDecision>
</NamedApproverApprovalTemplate>
In NamedGroupApprovalTemplate request body:
l displayName is required.
l group's distinguishedName is required.
l minApprovalRequired is optional and defaults 1. Value cannot be greater than the number of
users in the group.
l automaticApproval is optional; if not present, defaults to false.If automaticApproval is true:
n automaticPeriodDuration (in days)is optional; if not present, defaults to 0. Valid value is
integer from 0 to 365.
n automaticApprovalDecision is required; valid value is APPROVED, or REJECTED.
Example request body:
<NamedGroupApprovalTemplate>
<displayName>Name Group Template 01</displayName>
<group>
<distinguishedName>
cn=ServiceConsumer,ou=ConsumerGroup,ou=CSAGroups
</distinguishedName>
</group>
<minApprovalRequired>0</minApprovalRequired>
<automaticApproval>true</automaticApproval>
HP Cloud Service Automation (4.00) Page 102 of 141
APIReference
Contents