HP Operations Manager for Windows

OV_ServiceTypeDefinition::AddAutoDeployPolicyGroup()
OV_ServiceTypeDefinition::AddAutoDeployPolicyGroup_Trans()


boolean AddAutoDeployPolicyGroup(
[in] string AutoDeployPolicyGroupName)
boolean AddAutoDeployPolicyGroup_Trans(
[in] string TransId,
[in] string AutoDeployPolicyGroupName)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
AutoDeployPolicyGroupName
The Name property of the instance of OV_AutoDeployPolicyGroup to be added to this service type.

Calling Convention

These methods can be called only from a WMI instance object.

Description

Adds an auto-deploy policy group (instance of OV_AutoDeployPolicyGroup) to this service type.

Before you can add a policy group as an auto-deployment policy group on a service type, you must create an instance of OV_AutoDeployPolicyGroup by calling the OV_AutoDeployPolicyGroup::Create method, where the path (DisplayName in the HPOM for Windows console) of the policy group is specified as the PolicyGroupPath parameter. Then the Name property of the returned instance of OV_AutoDeployPolicyGroup is used as the AutoDeployPolicyGroupName parameter of this method.

Return Value

False if the auto-deploy policy group has already been added to this service type.

Extended Status Codes

MDLAPI_E_ADPOLGROUP_NOT_EXIST
Auto Deploy Policy Group does not exist.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.