Syntax
Get-VDSecurityPolicy -VDPortgroup <VDPortgroup[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves the security policy for distributed ports. For distributed port group and vSphere distributed switch parameter sets, the default port policy at the distributed port group or switch level is retrieved.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false | |
VDPort | VDPort[] | Specifies the distributed ports for which you want to retrieve the security policy. | true | true (ByValue) | |
VDPortgroup | VDPortgroup[] | Specifies a distributed port group for which you want to retrieve the default security policy. | true | true (ByValue) | |
VDSwitch | VDSwitch[] | Specifies a vSphere distributed switch for which you want to retrieve the default security policy. | true | true (ByValue) |
Return Type
One or more SecurityPolicy objectsNotes
Examples
-------------- Example 1 --------------
Get-VDSwitch "MyVDSwitch" | Get-VDSecurityPolicy
Retrieves the security policy of a vSphere distributed switch named "MyVDSwitch".
-------------- Example 2 --------------
Get-VDPortgroup "MyVDPortgroup" | Get-VDPort ?Key 4 | Get-VDSecurityPolicy
Retrieves the security policies of a specific port inside a distributed port group named "MyVDPortgroup".