Section courante

A propos

Section administrative du site

Invoke-RestMethod

Invoque une méthode REST
PowerShell

Syntaxe

Invoke-RestMethod [-Method WebRequestMethod] [-FollowRelLink] [-MaximumFollowRelLink Int32] [-ResponseHeadersVariable String] [-StatusCodeVariable String] [-UseBasicParsing] [-Uri] Uri [-WebSession WebRequestSession] [-SessionVariable String] [-AllowUnencryptedAuthentication] [-Authentication WebAuthenticationType] [-Credential PSCredential] [-UseDefaultCredentials] [-CertificateThumbprint String] [-Certificate X509Certificate] [-SkipCertificateCheck] [-SslProtocol WebSslProtocol] [-Token SecureString] [-UserAgent String] [-DisableKeepAlive] [-TimeoutSec Int32] [-Headers IDictionary] [-MaximumRedirection Int32] [-MaximumRetryCount Int32] [-RetryIntervalSec Int32] [-Proxy Uri] [-ProxyCredential PSCredential] [-ProxyUseDefaultCredentials] [-Body Object] [-Form IDictionary] [-ContentType String] [-TransferEncoding String] [-InFile String] [-OutFile String] [-PassThru] [-Resume] [-SkipHttpErrorCheck] [-PreserveAuthorizationOnRedirect] [-SkipHeaderValidation] [CommonParameters]
Invoke-RestMethod [-Method WebRequestMethod] [-FollowRelLink] [-MaximumFollowRelLink Int32] [-ResponseHeadersVariable String] [-StatusCodeVariable String] [-UseBasicParsing] [-Uri] Uri [-WebSession WebRequestSession] [-SessionVariable String] [-AllowUnencryptedAuthentication] [-Authentication WebAuthenticationType] [-Credential PSCredential] [-UseDefaultCredentials] [-CertificateThumbprint String] [-Certificate X509Certificate] [-SkipCertificateCheck] [-SslProtocol WebSslProtocol] [-Token SecureString] [-UserAgent String] [-DisableKeepAlive] [-TimeoutSec Int32] [-Headers IDictionary] [-MaximumRedirection Int32] [-MaximumRetryCount Int32] [-RetryIntervalSec Int32] -NoProxy [-Body Object] [-Form IDictionary] [-ContentType String] [-TransferEncoding String] [-InFile String] [-OutFile String] [-PassThru] [-Resume] [-SkipHttpErrorCheck] [-PreserveAuthorizationOnRedirect] [-SkipHeaderValidation] [CommonParameters]
Invoke-RestMethod -CustomMethod String [-FollowRelLink] [-MaximumFollowRelLink Int32] [-ResponseHeadersVariable String] [-StatusCodeVariable String] [-UseBasicParsing] [-Uri] Uri [-WebSession WebRequestSession] [-SessionVariable String] [-AllowUnencryptedAuthentication] [-Authentication WebAuthenticationType] [-Credential PSCredential] [-UseDefaultCredentials] [-CertificateThumbprint String] [-Certificate X509Certificate] [-SkipCertificateCheck] [-SslProtocol WebSslProtocol] [-Token SecureString] [-UserAgent String] [-DisableKeepAlive] [-TimeoutSec Int32] [-Headers IDictionary] [-MaximumRedirection Int32] [-MaximumRetryCount Int32] [-RetryIntervalSec Int32] -NoProxy [-Body Object] [-Form IDictionary] [-ContentType String] [-TransferEncoding String] [-InFile String] [-OutFile String] [-PassThru] [-Resume] [-SkipHttpErrorCheck] [-PreserveAuthorizationOnRedirect] [-SkipHeaderValidation] [CommonParameters]
Invoke-RestMethod -CustomMethod String [-FollowRelLink] [-MaximumFollowRelLink Int32] [-ResponseHeadersVariable String] [-StatusCodeVariable String] [-UseBasicParsing] [-Uri] Uri [-WebSession WebRequestSession] [-SessionVariable String] [-AllowUnencryptedAuthentication] [-Authentication WebAuthenticationType] [-Credential PSCredential] [-UseDefaultCredentials] [-CertificateThumbprint String] [-Certificate X509Certificate] [-SkipCertificateCheck] [-SslProtocol WebSslProtocol] [-Token SecureString] [-UserAgent String] [-DisableKeepAlive] [-TimeoutSec Int32] [-Headers IDictionary] [-MaximumRedirection Int32] [-MaximumRetryCount Int32] [-RetryIntervalSec Int32] [-Proxy Uri] [-ProxyCredential PSCredential] [-ProxyUseDefaultCredentials] [-Body Object] [-Form IDictionary] [-ContentType String] [-TransferEncoding String] [-InFile String] [-OutFile String] [-PassThru] [-Resume] [-SkipHttpErrorCheck] [-PreserveAuthorizationOnRedirect] [-SkipHeaderValidation] [CommonParameters]

Description

Cette commande permet d'envoyer une requête HTTP ou HTTPS dans un service web REST.



Dernière mise à jour : Mardi, le 12 Janvier 2021