Compartilhar via


ManagementGroupAdministration.GetAgentPendingActions Method ()

 

Applies To: Operations Manager for System Center 2012

Gets all actions that are awaiting administrator approval.

Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

public ReadOnlyCollection<AgentPendingAction> GetAgentPendingActions()
public:
ReadOnlyCollection<AgentPendingAction^>^ GetAgentPendingActions()
member GetAgentPendingActions : unit -> ReadOnlyCollection<AgentPendingAction>
Public Function GetAgentPendingActions As ReadOnlyCollection(Of AgentPendingAction)

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<AgentPendingAction>

Returns a ReadOnlyCollection<T> of all pending actions in the Management Group.

Remarks

A pending action is a task that is queued or awaiting administrator approval. Examples of pending actions from the AgentPendingActionType class include UpdateAgent, which denotes that an agent is waiting to update to a later software version, and RepairAgent, which denotes that an agent is waiting to be repaired.

Examples

The following example shows how to display a list of pending tasks for all servers in a Management Group. In this example, mg is a ManagementGroup instance.

See Also

AgentPendingAction
AgentPendingActionType
ApproveAgentPendingActions
RejectAgentPendingActions
ManagementGroupAdministration Class
Microsoft.EnterpriseManagement.Administration Namespace

Return to top