Previous Topic: CreateSoftwarePolicy2Next Topic: CreateSoftwarePolicyByName


CreateSoftwarePolicy3

The CreateSoftwarePolicy3 method creates a software policy. The method takes the UUID of a unit group as an optional parameter. If a valid unit Group ID is provided, the created policy is linked to it. If a valid value is not provided, the software policy is created without a link to any unit group.

This method also includes the functionality that helps you manage the custom administrator message. The method takes the sequence CreateSoftwarePlicyProperties3. The sequence includes two parameters: userMessage, which lets you provide the custom administrator message information, and userMessageSupplied, which checks the presence of the userMessage field for the custom administrator message in SD.

Parameters

xsd: string sessionId (m)

Specifies the session identifier obtained from the login method of the the web service.

xsd: string unitGroupId

Specifies the UUID of the unit group to which the created policy is linked. If an invalid ID is supplied, the policy is not created.

CreateSoftwarePolicyProperties3 createSoftwarePolicyProperties3 (m)

Specifies the sequence CreateSoftwarePolicyProperties3 that contains the properties associated with the software policy. Although the sequence is mandatory, but providing all the members of the sequence is not mandatory.

Return Values

xsd:string softwarePolicyId

Returns a string that contains the UUID of the newly created policy if the software policy is successfully created.

Remarks

None

More information:

CreateSoftwarePolicyProperties3