ImportExport - exportObject

ImportExport - exportObject

Description :

This command exports an object into an XML file. It also exports any other additional files that the object requires.

The objectType argument specifies the type of object that you are exporting. Use one of the integers below to specify an objectType that is supported by the export/import functionality.

  • ACL Push Job: 1009
  • AIX Package: 84
  • AIX Patch: 83
  • Audit Job: 31
  • BLPackage: 28
  • Batch Job: 200
  • Compliance Job: 5106
  • Component Discovery Job: 405
  • Component Smart Group: 5015
  • Component Template: 250
  • Component Template Smart Group: 5016
  • Config File: 4101
  • Configuration Object Class: 6032
  • Custom Software: 95
  • Depot Smart Group: 5012
  • Extended Object: 4003
  • File: 74
  • File Deploy Job: 40
  • Grammar: 600
  • HP-UX Bundle: 103
  • HP-UX Patch: 104
  • HP-UX Product: 71
  • HotFix: 114
  • InstallShield Package: 119
  • Job Smart Group: 5006
  • MSI Package: 118
  • NSH Script: 1
  • NSH Script Job: 111
  • OS Service Pack: 117
  • RPM: 68
  • Server Smart Group: 5007
  • Snapshot Job: 32
  • Software Deploy Job: 30
  • Solaris Package: 67
  • Solaris Patch: 69
  • Solaris Patch Cluster: 88
  • System Package: 5026
  • UCS bootable storage pool: 21107
  • UCS MAC pool: 21102
  • UCS storage pool: 21106
  • UCS template: 21101
  • UCS UUID pool: 21105
  • Update Server Properties Job: 1017
  • Workflow Job 9100

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

objectType

Integer

Type of the object you want to export.

objectDBKey

DBKey

Handle to the object you want to export.

outputPath

String

Name of the directory in which you want to put the exported object. If this directory exists and has files in it, this command overwrites the files. If this directory does not exist, this command creates it.

Example

The following example shows how to export a component template.

Script


TEMPLATE_KEY=`blcli Template getDBKeyByGroupAndName /parent/folder1 template1` 

blcli ImportExport exportObject 250 $TEMPLATE_KEY /c/exportedObjects/template1 



Was this page helpful? Yes No Submitting... Thank you

Comments