OV_AutoDeployPolicyGroup::Create()
OV_AutoDeployPolicyGroup::Create_Trans()
- OV_AutoDeployPolicyGroup Create(
- [in] string PolicyGroupPath,
- [in, optional] boolean EnableDeployment,
- [in, optional] string Caption,
- [in, optional] string Name,
- [in, optional] string Description)
- OV_AutoDeployPolicyGroup Create_Trans(
- [in] string TransId,
- [in] string PolicyGroupPath,
- [in, optional] boolean EnableDeployment,
- [in, optional] string Caption,
- [in, optional] string Name,
- [in, optional] string Description)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- PolicyGroupPath
- The PolicyGroup property of the instance of
OV_AutoDeployPolicyGroup to be created. This property should
consist of Caption/Display Names and a single backslash as a
separator. It should also start with a single backslash. Before the
auto-deploy policy group is actually added, its existence is
verified (PMAD). If the policy group does not exist, the method
fails with MDLAPI_E_ADPOLGROUP_NOT_EXIST.
- EnableDeployment
- The EnableDeployment property of the instance of
OV_AutoDeployPolicyGroup to be created. Optional parameter. If you
do not specify the parameter, the property is set to true.
- Caption
- The Caption property of the instance of
OV_AutoDeployPolicyGroup to be created. If the Caption parameter
contains invalid characters, or has more then 1024 characters, the
method fails with MDLAPI_E_INVALID_CAPTION. Optional
parameter.
- Name
- The Name property of the instance of OV_AutoDeployPolicyGroup
to be created. Optional parameter. If you do not specify the
parameter, or if it is equal to an empty string, it is created as a
new GUID. If a Node Group with the same Name already exists,
nothing happens, and the method fails with
MDLAPI_E_ADPOLGROUP_NAME_EXISTS.
- Description
- The Description property of the instance of
OV_AutoDeployPolicyGroup to be created. Optional parameter.
Calling Convention
These methods can be called from a WMI class or instance
object.
Description
Creates an auto-deploy policy group (new instance of
OV_AutoDeployPolicyGroup).
Return Value
Instance of the newly created OV_AutoDeployPolicyGroup.
Extended Status Codes
- MDLAPI_E_INVALID_CAPTION
- Specified object Caption parameter is not valid.
- MDLAPI_E_ADPOLGROUP_NOT_EXIST
- Auto Deploy Policy Group does not exist.
- MDLAPI_E_ADPOLGROUP_NAME_EXISTS
- Auto Deploy Policy Group with the same Name already
exists.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.