
Create approval policy
Details
URI
/organization/<organization_id>/approvalPolicy
Method POST
Parameters
userIdentifier=<user_id>
Required; the user ID you want to use as credentials for this API call. See "Get
userIdentifier" on page 91 for the steps required to get the userIdentifier value.
Returns 200 - Ok
401 - Not authorized
404 - Object not found
500 - Server exception
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:
APIReference
HP Cloud Service Automation (4.10) Page 107 of 150
Comentarios a estos manuales