CLI Reference Guide
Deletion is subject to a set of business rules which depend on the type of artifact. The business
rules for artifacts are explained in the table below. Note that consumption artifacts are not removed
from the database when they are deleted; instead, the artifact is marked as retired. Please refer to
the"Catalog API" on page 42 for retiring consumption artifacts.
Artifact type Details
Resource
provider
Can only be deleted if no active service subscriptions use the resource
provider.
Service design Can be deleted when all associated service offerings or service instances are
retired.
Retrieve a predefined view for an artifact
Because the REST API presented here returns content ina different format when retrieving a single
result versus multiple results, and could thereby complicate your using the results, it is
recommended that the "View an artifact" on page 12API be used. Performance intensive
applications might stillchoose to use the following API.
Details
URI
/artifact/fastview/<artifact_id>
Method
GET
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.
view=<view_type>
Required; see "Artifact views" on page 36 for a list of view types.
Returns
200 - Ok
404 - Not found
500 - Server exception
Examples
The following URL was sent. Note that artifact_id is theID of any artifact that has an accesspoint.
https://<host>:port/csa/rest/artifact/fastview/90e72e4f3abe4bf4013ac24735730010?
userIdentifier=<user_id>&view=accesspoint
The following XML was returned in the response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resultView>
<resultMap>
<entry>
HP Cloud Service Automation (4.00) Page 18 of 141
APIReference
Contents