# Class CIM_PolicyActivationService
extends CIM_Service

CIM_PolicyActivationService represents a service to enable and disable the distributed policies. The CIM_PolicyActivationService provides the two extrinsic methods: ActivatePolicy() and DeactivatePolicy(). These methods will apply/remove the specified policies to/from an associated reference monitor. The associated reference monitor is represented by the CIM_ReferenceMonotor that is associated through CIM_TargetReferenceMonitor.

### Table of Contents
Hierarchy
Direct Known Subclasses
Class Qualifiers
Class Properties
Class Methods

## Class Hierarchy

CIM_ManagedElement
|
+--CIM_ManagedSystemElement
|
+--CIM_LogicalElement
|
+--CIM_EnabledLogicalElement
|
+--CIM_Service
|
+--CIM_PolicyActivationService

## Direct Known Subclasses

## Class Qualifiers

Name | Data Type | Value
--- | --- | ---
Description | string | CIM_PolicyActivationService represents a service to enable and disable the distributed policies. The CIM_PolicyActivationService provides the two extrinsic methods: ActivatePolicy() and DeactivatePolicy(). These methods will apply/remove the specified policies to/from an associated reference monitor. The associated reference monitor is represented by the CIM_ReferenceMonotor that is associated through CIM_TargetReferenceMonitor.
UMLPackagePath | string | CIM::Policy
Version | string | 2.28.0

## Class Properties

### Inherited Properties

Name | Data Type | Class Origin
--- | --- | ---
Caption | string | CIM_ManagedElement
CommunicationStatus | uint16 | CIM_ManagedSystemElement
CreationClassName | string | CIM_Service
Description | string | CIM_ManagedElement
DetailedStatus | uint16 | CIM_ManagedSystemElement
ElementName | string | CIM_ManagedElement
EnabledDefault | uint16 | CIM_EnabledLogicalElement
EnabledState | uint16 | CIM_EnabledLogicalElement
Generation | uint64 | CIM_ManagedElement
HealthState | uint16 | CIM_ManagedSystemElement
InstallDate | datetime | CIM_ManagedSystemElement
InstanceID | string | CIM_ManagedElement
LoSID | string | CIM_Service
LoSOrgID | string | CIM_Service
Name | string | CIM_Service
OperatingStatus | uint16 | CIM_ManagedSystemElement
OtherEnabledState | string | CIM_EnabledLogicalElement
PrimaryOwnerContact | string | CIM_Service
PrimaryOwnerName | string | CIM_Service
PrimaryStatus | uint16 | CIM_ManagedSystemElement
RequestedState | uint16 | CIM_EnabledLogicalElement
Started | boolean | CIM_Service
StartMode | string | CIM_Service
Status | string | CIM_ManagedSystemElement
SystemCreationClassName | string | CIM_Service
SystemName | string | CIM_Service
TimeOfLastStateChange | datetime | CIM_EnabledLogicalElement
TransitioningToState | uint16 | CIM_EnabledLogicalElement
AvailableRequestedStates | uint16[] | CIM_EnabledLogicalElement
OperationalStatus | uint16[] | CIM_ManagedSystemElement
StatusDescriptions | string[] | CIM_ManagedSystemElement

## Class Methods

### Local Class Methods

#### ActivatePolicy (uint32)

#### Method Qualifiers (ActivatePolicy)

Name | Data Type | Value
--- | --- | ---
Description | string | The DeactivatePolicy() method is used to deactivate the collection of access policies specified with the TargetPolicies parameter. Upon the successful execution of this method, the following actions occur: * When the TargetPolicies parameter is Null, this method does not deactivate any access policies. * When the TargetPolicies parameter is not Null, this method will deactivate the access policies specified in the TargetPolicies parameter. The parameter specifies the target policies as an array of the policy identifiers in the scope of the associated CIM_AccessPolicyGroup. * As a side effect, this method will changes to false the Enabled property of the CIM_AccessControlPolicy instances corresponding to the deactivated policies. The return value of this methods will be 0 (if the execution is succeeded), or 1 (if failed).
ValueMap | string | 0, 1
Values | string | Operation succeeded, Operation failed

#### Method Parameters (ActivatePolicy)

Name | Type | Qualifiers
--- | --- | ---
Name | Data Type | Value
TargetPolicies | CIM_AccessControlPolicy[]
Description | string | The ActivatePolicy() method is used to activate the collection of access policies specified with the TargetPolicies parameter. Upon the successful execution of this method, the following actions occur: * When the TargetPolicies parameter is Null, this method does not activate any access policies. * When the TargetPolicies parameter is not Null, this method will activate the access policies specified in the TargetPolicies parameter. The parameter specifies the target policies as an array of the policy identifiers in the scope of the associated CIM_AccessPolicyGroup. * As a side effect, this method will changes to true the Enabled property of the CIM_AccessControl Policy instances corresponding to the activated policies. The return value of this methods will be 0 (if the execution is succeeded), or 1 (if failed).

#### DeactivatePolicy (uint32)

#### Method Qualifiers (DeactivatePolicy)

Name | Data Type | Value
--- | --- | ---
Description | string | The DeactivatePolicy() method is used to deactivate the collection of access policies specified with the TargetPolicies parameter. Upon the successful execution of this method, the following actions occur: * When the TargetPolicies parameter is Null, this method does not deactivate any access policies. * When the TargetPolicies parameter is not Null, this method will deactivate the access policies specified in the TargetPolicies parameter. The parameter specifies the target policies as an array of the policy identifiers in the scope of the associated CIM_AccessPolicyGroup. * As a side effect, this method will changes to false the Enabled property of the CIM_AccessControlPolicy instances corresponding to the deactivated policies. The return value of this methods will be 0 (if the execution is succeeded), or 1 (if failed).
ValueMap | string | 0, 1
Values | string | Operation succeeded, Operation failed

#### Method Parameters (DeactivatePolicy)

Name | Type | Qualifiers
--- | --- | ---
Name | Data Type | Value
TargetPolicies | CIM_AccessControlPolicy[]
Description | string | The DeactivatePolicy() method is used to deactivate the collection of access policies specified with the TargetPolicies parameter. Upon the successful execution of this method, the following actions occur: * When the TargetPolicies parameter is Null, this method does not deactivate any access policies. * When the TargetPolicies parameter is not Null, this method will deactivate the access policies specified in the TargetPolicies parameter. The parameter specifies the target policies as an array of the policy identifiers in the scope of the associated CIM_AccessPolicyGroup. * As a side effect, this method will changes to false the Enabled property of the CIM_AccessControlPolicy instances corresponding to the deactivated policies. The return value of this methods will be 0 (if the execution is succeeded), or 1 (if failed).

### Inherited Class Methods

Name | Return Type | Class Origin
--- | --- | ---
ChangeAffectedElementsAssignedSequence | uint32 | CIM_Service
RequestStateChange | uint32 | CIM_EnabledLogicalElement
StartService | uint32 | CIM_Service
StopService | uint32 | CIM_Service