Get-SmaConnectionField
取得 SMA 連接欄位。
Syntax
Get-SmaConnectionField
-ConnectionTypeName <String[]>
-WebServiceEndpoint <String>
[-Port <Int32>]
[-AuthenticationType <String>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SmaConnectionField Cmdlet 會取得一或多個 Service Management Automation (SMA) 連線欄位。
範例
範例 1:擷取連接欄位
PS C:\> Get-SmaConnectionField -WebServiceEndpoint "https://contoso.com/app01" -ConnectionTypeName "MyConnectionType"
此命令會取得名為 MyConnectionType 之連線類型的連接欄位。
參數
-AuthenticationType
指定驗證類型。 有效值為:
- 基本
- Windows
此參數的預設值為 Windows。 如果您使用基本驗證,則必須使用 Credential 參數來提供 認證 。
Type: | String |
Accepted values: | Basic, Windows |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionTypeName
指定連線類型的陣列。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Credential
指定 SMA Web 服務連線的 PSCredential 物件。
若要取得認證物件,請使用 Get-Credential Cmdlet。
如需詳細資訊,請鍵入 Get-Help Get-Credential
。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Port
指定 SMA Web 服務的埠號碼。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebServiceEndpoint
指定 SMA Web 服務的端點作為 URL。 例如,您必須包含通訊協定,HTTP:// 或 HTTPs://。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |