< Back

Get-NsxServiceDefinition

Sat Jan 18, 2020 9:12 pm

NAME Get-NsxServiceDefinition



SYNOPSIS

Retrieves Service Definitions from NSX.





SYNTAX

Get-NsxServiceDefinition [[-Name] <String>] [-Connection <PSObject>] [<CommonParameters>]



Get-NsxServiceDefinition [-ObjectId <String>] [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

A Service Definition describes the integration of some default internal and

registered thirdparty services such as load balancing or layer 7 firewalling.



This cmdlet retrieves existing Service Definitions from NSX.





PARAMETERS

-Name <String>

Name of the Service Definition to retrieve.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ObjectId <String>

ObjectId of the Service Definition to retrieve.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object.



Required? false

Position? named

Default value $defaultNSXConnection

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



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxServiceDefinition



Retrieve all Service Definitions.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxServiceDefinition -ObjectId service-7



Retrieve the service definition with the specified objectId









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxServiceDefinition -Name MyServiceDefinition



Retrieve the service definition with the specified Name.











RELATED LINKS