CLI Reference Guide
URI
/import
Parameters
userIdentifier=<user_id>
Required; the user ID you want to use as credentials for this API call. This user
should be a consumer user who has the necessary permissions for the data you
want to work with. See "Get userIdentifier" on page 88 for the steps required to
get the userIdentifier value.
file=<multipart_representation_of_service_offering_zip_file>
Required; type 'Multipart/Form-Data' CSA archive zip to be imported. Note that
the directorythe file will be imported from is defined by the REST client or
browser in use. Typically the file parameter will not include a directory path.
update=[true|false]
Optional; default is false. If true,any existingartifacts of the same type and
with the same name will be overwritten; otherwise the artifactsare
created.Cannot be used withupdatePreserveExisting parameter.
updatePreserveExisting=[true|false]
Optional; default is false.If true, any existingartifacts of the same type with
the same name will be preserved (not overwritten) and renamed. Existing
references to these artifactswill automatically use the renamed artifacts. New
artifacts are created from the archive. Cannot be used withupdate parameter.
orgForCatalogImport=<organization_name>
Required for import of catalog archive; the name of the organization to be used
when creating the imported catalog.
associateProviders=[true|false]
Optional; default is false. If true,resource providers in the archive are bound to
existing resource offerings and resource environments of the same provider type
and display name in the database.
validateType=[COMPONENT_PALETTE|CATALOG|SERVICE_OFFERING|SERVICE_
BLUEPRINT|RESOURCE_OFFERING|RESOURCE_ENVIRONMENT]
Optional; if specified,content archive is verified to be of the specified type. ||
Returns
200 -Updated
400 - Bad request
404 - Not found
500 - Server exception
Caution: Component palette import isan update operation, and so associateProviders and
updatePreserveExisting parameters will be ignored.
The following headers must be set when using this API to upload the content archive:
HP Cloud Service Automation (4.00)Page 79 of 141
APIReference
Contents