Get-VBRCDPSession
Short Description
Returns CDP policy sessions.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Job (Default)Get-VBRCDPSession -Policy <VBRCDPPolicyBase> [-Last] [<CommonParameters>]
-
IdGet-VBRCDPSession -Id <Guid> [<CommonParameters>]
-
SessionGet-VBRCDPSession -Session <VBRSession> [<CommonParameters>]
-
ResultGet-VBRCDPSession -Policy <VBRCDPPolicyBase> [-Result <VBRSessionResult>] [<CommonParameters>]
-
StateGet-VBRCDPSession -Policy <VBRCDPPolicyBase> [-State <VBRSessionState>] [<CommonParameters>]
Detailed Description
This cmdlet returns CDP policy sessions.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Id |
Specifies the ID of the session. The cmdlet will return the session with this ID. |
|
True |
Named |
True (ByPropertyName) |
|
Last |
Defines that the command returns the last session of the specified CDP policy. |
|
False |
Named |
False |
|
Policy |
Specifies the CDP policy for which you want to get sessions.
Accepts the |
|
True |
Named |
True (ByPropertyName) |
|
Result |
Specifies the session result. The cmdlet will return sessions with the on of the following results:
|
|
False |
Named |
False |
|
Session |
Specifies the CDP policy session for which you want to get an updated state.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
State |
Specifies the session state. The cmdlet will return sessions with the specified state. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRCDPSession object that returns details on CDP policy sessions.
Examples
Example 1. Getting Session for Specified CDP Policy
|
This example shows how to get the session for the
Perform the following steps:
|
Example 2. Getting CDP Policy Session with Specific ID
|
This command returns the
|
Example 3. Getting CDP Policy Session with Specific Result
|
This example shows how to get a CDP policy session with the
Perform the following steps:
|
Example 4. Getting CDP Policy Session with Specific State
|
This example shows how get a CDP policy session with the
Perform the following steps:
|
Related Commands
Get-VBRCDPPolicyReturns CDP policies including Cloud Director CDP policies, CDP policies, cloud CDP policies and so on.Get-VBRSessionReturns job sessions.