共用方式為


Get-SmaRunbook

Get-SmaRunbook

Gets a runbook.

語法

Parameter Set: GetAll
Get-SmaRunbook -WebServiceEndpoint <String> [-AuthenticationType <String> ] [-Credential <PSCredential> ] [-Port <Int32> ] [ <CommonParameters>]

Parameter Set: ByRunbookId
Get-SmaRunbook -WebServiceEndpoint <String> [-AuthenticationType <String> ] [-Credential <PSCredential> ] [-Id <String[]> ] [-Port <Int32> ] [ <CommonParameters>]

Parameter Set: ByRunbookName
Get-SmaRunbook -WebServiceEndpoint <String> [-AuthenticationType <String> ] [-Credential <PSCredential> ] [-Name <String[]> ] [-Port <Int32> ] [ <CommonParameters>]

詳細描述

The Get-SmaRunbook cmdlet gets one or more runbooks. By default, all runbooks are returned. To get a specific runbook, specify its name or ID.

參數

-AuthenticationType<String>

Specifies the authentication type. Valid values are: Basic, Windows.

Windows is the default value. If you use Basic authentication, you must provide credentials by using the Credential parameter.

別名

必要?

false

位置?

named

預設值

Windows

接受管線輸入?

false

接受萬用字元?

false

-Credential<PSCredential>

Specifies user credentials, as a PSCredential object, to use for the connection to the web service. To obtain a credential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

別名

必要?

false

位置?

named

預設值

Current User

接受管線輸入?

false

接受萬用字元?

false

-Id<String[]>

Specifies an array of runbook IDs.

別名

RunbookId

必要?

false

位置?

named

預設值

接受管線輸入?

True (ByValue)

接受萬用字元?

false

-Name<String[]>

Specifies an array of runbook names.

別名

RunbookName

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-Port<Int32>

Specifies the port number of the web service.

別名

必要?

false

位置?

named

預設值

9090

接受管線輸入?

false

接受萬用字元?

false

-WebServiceEndpoint<String>

Specifies the endpoint, as a URL, of the web service. Include the protocol, for example, http:// or https://.

別名

必要?

true

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

此 Cmdlet 支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 與 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是您可以使用管線處理方式傳遞給 Cmdlet 的物件類型。

輸出

輸出類型是 Cmdlet 所發出的物件類型。

範例

Example 1: Get a runbook by its name

This command gets the runbook named Runbk01 from the web service that has endpoint URL https://contoso.com/app01.

PS C:\> Get-SmaRunbook -Name "Runbk01" -WebServiceEndpoint "https://contoso.com/app01"

相關主題

Edit-SmaRunbook

Start-SmaRunbook

Publish-SmaRunbook

Import-SmaRunbook

Remove-SmaRunbook