Get-SmaCertificate
取得憑證。
Syntax
Get-SmaCertificate
[-Name <String[]>]
-WebServiceEndpoint <String>
[-Port <Int32>]
[-AuthenticationType <String>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SmaCertificate Cmdlet 會取得一或多個 Service Management Automation (SMA) 憑證。
範例
範例 1:取得憑證
PS C:\> Get-SmaCertificate -WebServiceEndpoint "https://contoso.com/app01" -Name "MyCertificate"
此命令會取得名為 MyCertificate 的憑證,該憑證位於名為 contoso.com/app01 的 Web 服務端點。
參數
-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 |
-Credential
將使用者認證指定為 PSCredential 物件,以用於服務管理自動化 Web 服務的連線。
若要取得認證物件,請使用 Get-Credential Cmdlet。
如需詳細資訊,請鍵入 Get-Help Get-Credential
。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定憑證名稱的陣列。
Type: | String[] |
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 |