< Back

Get-SpbmView

Sun Jan 19, 2020 7:15 pm

NAME Get-SpbmView



SYNOPSIS

This cmdlet retrieves SPBM views for the managed objects in the SPBM server.





SYNTAX

Get-SpbmView [-Id] <ManagedObjectReference[]> [-Server <VIServer[]>] [<CommonParameters>]



Get-SpbmView [-Server <VIServer[]>] [-ServiceContent] [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves SPBM views for the managed objects in the SPBM server. The following options are supported:

1. By the specified IDs. The string value of the ID is in format <type>-<value> as it is in the PowerShell toolkit

objects. 2. By the SPBM service contents. Returns views for all the managed objects available in the SPBM service

contents.



You can retrieve the SPBM service content by fetching PbmServiceInstance view and then calling

"PbmRetrieveServiceContent" on this view object. Example: $serviceInstanceView = Get-SpbmView -Id

"PbmServiceInstance-ServiceInstance" $spbmServiceContent = $serviceInstanceView.PbmRetrieveServiceContent()





PARAMETERS

-Id <ManagedObjectReference[]>

Specifies the ManagedObjectReference for which you want to retrieve the view. This parameter also accepts

strings by silently converting them to ManagedObjectReference by using ArgumentTransformationAttribute.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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 the Connect-VIServer cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-ServiceContent [<SwitchParameter>]

When specified, returns views for all the managed objects in the SPBM service contents.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Zero or more SpbmView objects







NOTES









-------------------------- Example 1 --------------------------



Get-SpbmView -ServiceContent -Server "MyServer"



Retrieves all SPBM view objects of the SPBM service content from the "MyServer" connected server.

-------------------------- Example 2 --------------------------



Get-SpbmView -Id "ManagedObjectId"



Retrieves the SPBM view object of a SPBM managed object with a "ManagedObjectId" ID.

-------------------------- Example 3 --------------------------



$serviceInstanceView = Get-SpbmView -Id "PbmServiceInstance-ServiceInstance"

$spbmServiceContent = $serviceInstanceView.PbmRetrieveServiceContent()

Get-SpbmView -Id $spbmServiceContent.ProfileManager



Retrieves the SPBM view object of the ProfileManager singleton managed object.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... olicy.html