Share via


Get-ServiceFabricServiceType

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

Syntax

Default (Default)

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.

Parameters

-ApplicationTypeName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-TimeoutSec

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

Outputs

System.Object