HP CloudSystem Enterprise Guía de usuario Pagina 111

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 150
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 110
URI
/organization/<organization_id>/approvalPolicy/<policy_id>
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
Example
The following URL was sent:
https://<host>:<port>/csa/rest/organization/8a81818f3d1421e7013d1423635a0003/
approvalPolicy/8a81818f3d1437e2013d17f249c30a0c?
userIdentifier=90d96588360da0c701360da0f1d5f483
The following XML was sent in the request. It will change the list of approvers to user
ProjectManager, set automaticApproval to false, and set automaticApprovalDecision to
REJECTED.
<NamedApproverApprovalTemplate>
<displayName>Updated-My-Approval-Template</displayName>
<approver><userName>ProjectManager</userName></approver>
<minApprovalRequired>0</minApprovalRequired>
<automaticApproval>false</automaticApproval>
<automaticPeriodDuration>0</automaticPeriodDuration>
<automaticApprovalDecision>
<name>REJECTED</name>
</automaticApprovalDecision>
</NamedApproverApprovalTemplate>
The following XML was returned:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NamedApproverApprovalTemplate>
<id>8a81818f3d1437e2013d17f249c30a0c</id>
<objectId>8a81818f3d1437e2013d17f249c30a0c</objectId>
<createdOn>2013-02-26T11:19:47.397-08:00</createdOn>
<updatedOn>2013-02-26T11:45:06.900-08:00</updatedOn>
...
<name>
My-New-Approval-Template_February 26, 2013 7:19:47 PM UTC
</name>
<displayName>Updated-My-Approval-Template</displayName>
...
<automaticApproval>false</automaticApproval>
<automaticPeriodDuration>0</automaticPeriodDuration>
<minApprovalRequired>1</minApprovalRequired>
APIReference
HP Cloud Service Automation (4.10) Page 111 of 150
Vista de pagina 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 149 150

Comentarios a estos manuales

Sin comentarios