CLI Reference Guide

Delete document from service offering
Details
URI
/artifact/<service_offering_id>/document/<document_id>
Method
DELETE
Parameters
userIdentifier=<user_id>
Required; the user ID you want to use as credentials for this API call. See "Get
userIdentifier" on page 88 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/artifact/90cef5de3c63429f013c68b8cdda0bad/documen
t/90cef5de3c63429f013c68b8cdda0bad?userIdentifier=90cef5de3c63429f013c642c7fc708
ab
The following XML was returned:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document>
<id>90cef5de3c63429f013c68d4146a0bce</id>
<isCriticalSystemObject> false </isCriticalSystemObject>
<name>Example Offering Doc.txt</name>
<state>
...
</state>
<artifactType>
...
</artifactType>
<disabled>false</disabled>
<url>/csa//document/download?id=90cef5de3c63429f013c68d4146a0bce</url>
<content>Sample Doc Content</content>
<mimeType>application/octet-stream</mimeType>
<documentType>
...
</documentType>
</Document>
HP Cloud Service Automation (4.00) Page 30 of 141
APIReference
Contents