You can export CA Process Automation objects into a local file.
For example, send an HTTP POST request to:
http://<hostname>:7000/node/rest/CA:00074_CA:00074:01/_ops/Export
Include a request header:
Content-Type=application/xml
For example:
<ExportRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="p1:ExportRequest" xmlns:p1="http://ns.ca.com/2011/09/pam-ops"> <FolderName>/rest</FolderName> <ExportAsContentPackage>true</ExportAsContentPackage> <IsAbsolute>true</IsAbsolute> <ExportFileName> <ExportLocation>C:\\REST\\ExportContent.xml</ExportLocation> <OverwriteFile>true</OverwriteFile> </ExportFileName> <Filter> <ObjectTypes> <ObjectType><Type>Process</Type></ObjectType> <ObjectType><Type>Agenda</Type></ObjectType> <ObjectType><Type>ContentPackage</Type></ObjectType> </ObjectTypes> </Filter> </ExportRequest>
Note:The SealModifiableReleaseVersions element is not required and its value is implicitly decided based on the value of ExportAsContentPackage element.
The <ExportAsContentPackage> flag specifies whether you can export a folder as a content package. The default value is false.
If you set the flag to true, CA Process Automation exports the folder as a content package.
Note: If the release version for the folder and its child objects is not defined, the export of a content package fails.
The response indicates whether the export was successful:
<?xml version="1.0" encoding="utf-8"?>
<pam-ops:ExportResponse xmlns:pam-ops="http://ns.ca.com/2011/09/pam-ops"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="pam-ops:ExportResponse">
<ExportMessage>Successfully uploaded the exported library to download file name: C:\REST\ExportContent.xml</ExportMessage>
</pam-ops:ExportResponse>
|
Copyright © 2014 CA.
All rights reserved.
|
|