Export Service Item
Details
This command will output the KURL definition of the service item to a file with a name similar to the service item. The file name will be the service item name with the non-alpha-numeric characters removed. This is necessary because some characters are invalid for file names. For example a service item named Laptop - Request would result in a file named LaptopRequest.rb.
If the file to be created already exists KURL will print a message and exit, leaving the file unmodified. This behavior can be modified by adding the overwrite argument, which will result in the existing file being overwritten by the latest definition.
Arguments
catalog | Specifies the catalog that contains the service item to export. This argument is required. |
service_item | Specifies the service item to export. This argument is required. |
directory | Specifies the directory to write the KURL definition file to. Defaults to the current directory if not specified. |
overwrite | If used any file with the same name will be overwritten during execution |
Examples
java -jar kurl.jar -action=retrieve_service_item -catalog="Service Catalog" -service_item="Laptop Request"
This command exports the Laptop Request service item definition to the current directory
java -jar kurl.jar -action=retrieve_service_item -catalog="Service Catalog" -service_item="Laptop Request" -directory=C:\
This command exports the Laptop Request service item definition to another directory