Skip to main content

AddAltirisPackageOrPolicy

You can use the AddAltirisPackageOrPolicy web method to add an Altiris package or policy to a catalog item.

Parameters

The AddAltirisPackageOrPolicy web method includes the following parameters:

#ParametersData TypeDescription
1.catalogItemIDIntegerID of the catalog item.
2.packageOrPolicyIDString (GUID)GUID of policy or package.
3.programDataStringString of the format InstallType(Integer)| programID where InstallType may be one of the following:
0 —Install
1 —Uninstall
2 —Repair
The programID is a string. For example:
0|programID
4.deploymentTargetEnum ValueUse one of the following values:
0 —DeployToUser
1 —DeployToComputer

Return Value

Returns one of the following values:

  • Returns TRUE for success

  • Returns FALSE for failure