Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Artifact API
- Artifact types
- Create an artifact
- View an artifact
- Update an artifact
- Delete an artifact
- Retrieve a predefined view for an artifact
- Retrieve resolved properties for an artifact
- List active groups associated with an organization
- Add groups to an organization
- Update group display name, distinguished name
- Delete or disassociate group from an organization
- List resource providers
- Add document to service offering
- Delete document from service offering
- Update document in service offering
- Publish service offerings to catalog
- Unpublish service offerings from catalog
- Retrieve artifact state and status
- Artifact views
Update an Artifact
Details
URI | /artifact/<artifact_id> |
---|---|
Method | PUT |
Parameters |
|
Returns | 200 - Ok 401 - Not authorized 404 - Not found 500 - Server exception |
Note To completely update the artifact, i.e., replace the persistent artifact, do not use the view or merge parameters and include all artifact content in the request body. Note that if only a portion of the artifact content is sent in the request body, any unspecified content will be removed from the artifact.
To update a portion of the artifact:
- Use a pre-defined view that contains a subset of the artifact properties; only that subset of properties will be updated per the values specified in the request body. See Artifact Views for a list of view types.
- Use the merge option as described under Parameters.
You can use the merge option with the view parameter to update only the view properties for which you specify values in the request body.
Note Collection specific behavior
When a merge option is specified on a collection, for example _property_values_action_=merge
, all collection items specified in the PUT request body are updated. Any other collection items are left untouched.
For the property attribute of an artifact, the items of this collection attribute are matched by name. For all other attributes, the collection items are matched by ID.
Examples
The following examples demonstrate how to update an artifact:
This example shows how to change the finalize flag of a component using the view parameter.
The following URL is sent:
https://<host>:<port>/csa/rest/artifact/90e72e4f3af5c989013afb471ebc0264?userIdentifier=&scope=view&view=componentfinalize
The following XML is sent in the request body:
<ServiceComponent>
<id>90e72e4f3af5c989013afb471ebc0264</id>
<toFinalize>false</toFinalize>
</ServiceComponent>
This example shows changing the display name of a resource provider. This example does not use the view parameters. To use this approach, retrieve the artifact using GET artifact API, modify the necessary value (in this example - displayName), and use that as the body of the PUT request to update the artifact.
The following URL is sent:
https://<host>:<port>/csa/rest/artifact/90e72e4f3b00a69e013b0c049ab00033?userIdentifier=<user_id>
The following XML is sent in the request body:
<ResourceProvider>
<id>90e72e4f3b00a69e013b0c049ab00033</id>
<objectId>90e72e4f3b00a69e013b0c049ab00033</objectId>
<createdOn>2012-11-16T17:38:46.576-08:00</createdOn>
<updatedOn>2012-11-16T17:38:46.576-08:00</updatedOn>
<createdBy>
<id>90d96588360da0c701360da0f1d5f483</id>
...
</createdBy>
<updatedBy>
<id>90d96588360da0c701360da0f1d5f483</id>
...
</updatedBy>
<isCriticalSystemObject>false</isCriticalSystemObject>
<description>TestProvider</description>
<name>TestProvider_November 17, 2012 1:38:46 AM UTC</name>
<displayName>TestProviderModified</displayName>
<state>
<id>90d96588360da0c701360da0ef470038</id>
...
</state>
<artifactType>
<id>90d96588360da0c701360da0eed8001f</id>
...
</artifactType>
<disabled>false</disabled>
<accessPoint>
<id>90e72e4f3b00a69e013b0c049a740032</id>
...
</accessPoint>
<providerType>
<id>90d96588360da0c701360da0eeac0016</id>
...
</providerType>
<numberOfResourceOffering>0</numberOfResourceOffering>
<numberOfEnvironment>0</numberOfEnvironment>
<numberOfPools>0</numberOfPools>
</ResourceProvider>
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to clouddocs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: