Get-VcsService Command | Vmware PowerCLI Reference

Get-VcsService

This cmdlet retrieves services from the VMware Cloud Services Platform.

Syntax

Get-VcsService
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < IVcsServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Name String[] named
Specifies the names of the services you want to retrieve.
optional ProgressAction ActionPreference named
optional Server IVcsServer[] named
  • wildcards
Specifies the VMware Cloud Services Platform servers on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-Vcs cmdlet.
Get-VcsService
[-Id < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < IVcsServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Id String[] named
Specifies the names of the services you want to retrieve.
optional ProgressAction ActionPreference named
optional Server IVcsServer[] named
  • wildcards
Specifies the VMware Cloud Services Platform servers on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-Vcs cmdlet.

Output

VMware.CloudServices.Types.V1.CmdletOutput.IVcsService

Examples

Example 1

Get-VcsService -Id "ServiceId"

Retrieves the service with an "ServiceId" ID.

Example 2

Get-VcsService -Name "ServiceName"

Retrieves the service with a "ServiceName" name.

Related Commands

VcsService

This cmdlet retrieves services from the VMware Cloud Services Platform.

VcsServiceRole

This cmdlet retrieves service roles from the VMware Cloud Services Platform.