HP CloudSystem Enterprise Guía de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 150
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
URI /artifact/<artifact_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.
view=<view_type>&scope=view
Optional; Used to update artifacts based on pre-defined views. See "Artifact
views" on page 36 (description column) for a list of view types that support update
operation.
<_artifact_property>_action_=merge
Optional; use themerge option with the action meta tag query parameter to
update only a portion of the artifact. The action meta tag can either be specified
globally for the artifact by including parameter _action_=merge, or fora
specificpropertye.g., _property_values_action_=merge.
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 artifiact contentis sent in the request body, any unspecified content will be
removed from the artifact.
To update a portion of the artifact:
l 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"
on page 36for a list of view types.
l Use the merge option as described under Parameters.
Note: 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.
APIReference
HP Cloud Service Automation (4.10) Page 15 of 150
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 149 150

Comentarios a estos manuales

Sin comentarios