Documentation Center

create_package

Creates a .pac package on the server based on the requested package.

Description

The package file will be stored in packages/ for packaging profiles or within packages/distro for distribution profiles.

Parameters

action
create_package
name
Identifying name of the package or the content delivery group.
step
One of the valid steps for creating packages. Provide a value of all to execute all the creation steps in order.

Example URL

http://<host>:<port>/<context>/web/package.xql?action=create_package&name=<value>&step=<value>

Successful Result

This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure. The result element will contain additional result information for each creation step that was executed.

Failed Result

Accessing this API feature requires the "Manage application" permission, and the function will throw a permission exception if the permission is not available.