Previous Topic: CreateSoftwarePolicy3Next Topic: CreateSoftwarePolicyByName3


CreateSoftwarePolicyByName

Creates the software policy. This method takes the name of the software policy which is to be created as a mandatory parameter.

Name of the unit group (unitGroupName) to which the policy is attached is a mandatory parameter.

If unitGroupName is supplied the API searches for it, and if found, links it with the created policy.

If unitGroupName is supplied the API searches for it, if not found, API creates the unitGroup and links it with the created SoftwarePolicy.

If unitGroupName is not supplied the software policy is created without a link to any unit group.

Parameters

xsd: string sessionId (m)

Specifies the session id obtained from the login to the web service.

UnitGroupPropertiesForSoftwarePolicy unitGroupPropertiesForSoftwarePolicy

This sequence provides the details of the unit group to which the created software policy is linked. If not supplied the software policy is created without a link to any unit group.

CreateSoftwarePolicyProperties2 createSoftwarePolicyProperties2 (m)

The sequence CreateSoftwarePolicyProperties2 contains the properties associated with software policy. Although the sequence is mandatory, providing all the members of the sequence is not mandatory.

Return Values

xsd:string softwarePolicyId

If the software policy is successfully created, it returns a string which contains the UUID of the newly created policy.

Remarks

None

More information:

CreateSoftwarePolicyProperties2