Section courante

A propos

Section administrative du site

 Logiciel  Plateforme  Utilisation  Tutoriel  Aide 
Vue par liste complète
Vue par aperçu
Vue par catégorie
BBS
Compression de données
Editeur de texte
Installateur
Adam
Alpha
AmigaOS
Amstrad CPC
Apple II
Atari 400/800
Atari ST
CoCo 3
Commodore 64
Commodore 128
CP/M
DOS
Java
Linux
Macintosh
Mac OS X
MSX2
OS/2
Solaris
TRS-80
Windows
Windows 3
Référence des commandes
Utiliser des fichiers ZIP avec PowerShell
Activer l'exécution d'un script PowerShell
Préface
Notes légal
Dictionnaire
Recherche

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.



PARTAGER CETTE PAGE SUR
Dernière mise à jour : Mardi, le 12 Janvier 2021