Get-​Service​Fabric​Service​Type

Gets all the Service Fabric service types for the given application type or a specific service type.

Syntax

Get-ServiceFabricServiceType
   [-ApplicationTypeName] <String>
   [-ApplicationTypeVersion] <String>
   [[-ServiceTypeName] <String>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricServiceType cmdlet gets all the Service Fabric service types for the given application type, specified by its application type name and application type version, or a specific service type, specified by its application type and service type name.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Get the service type information

PS C:\> Get-ServiceFabricServiceType -ApplicationTypeName "CalcServiceApp" -ApplicationTypeVersion "1.0"

This command gets the information for the service types of version 1.0 of the CalcServiceApp application.

Required Parameters

-ApplicationTypeName

Specifies the name of a Service Fabric application type. The cmdlet gets the services types for the application type that you specify.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ApplicationTypeVersion

Specifies the version of a Service Fabric application type. The cmdlet gets the service types for the application type version that you specify.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-ServiceTypeName

Specifies the name of a Service Fabric service type. The cmdlet gets only the service type with the specified service type name. If not specified, the cmdlet will return all the service types for the given application type.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

System.Object