Skip to content

Commit 61f5b9b

Browse files
authored
Fix Unix socket example (#12575)
1 parent 4b34925 commit 61f5b9b

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -316,7 +316,7 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
316316
Unix socket.
317317

318318
```powershell
319-
Invoke-RestMethod -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
319+
Invoke-RestMethod -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
320320
```
321321

322322
## PARAMETERS

reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -397,14 +397,14 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
397397
Unix socket.
398398

399399
```powershell
400-
Invoke-WebRequest -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
400+
Invoke-WebRequest -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
401401
```
402402

403403
## PARAMETERS
404404

405405
### -AllowInsecureRedirect
406406

407-
Allows redirecting from HTTPS to HTTP. By default, any request that is redirected from HTTPS to
407+
Allows redirecting from HTTPS to HTTP. By default, any request that's redirected from HTTPS to
408408
HTTP results in an error and the request is aborted to prevent unintentionally communicating in
409409
plain text over unencrypted connections. To override this behavior at your own risk, use the
410410
**AllowInsecureRedirect** parameter.
@@ -1325,6 +1325,7 @@ Accept wildcard characters: False
13251325
```
13261326

13271327
### -UnixSocket
1328+
13281329
Specifies the name of the Unix socket to connect to. This parameter is supported on Unix-based
13291330
systems and Windows version 1803 and later. For more information about Windows support of Unix
13301331
sockets, see the

reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -316,7 +316,7 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
316316
Unix socket.
317317

318318
```powershell
319-
Invoke-RestMethod -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
319+
Invoke-RestMethod -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
320320
```
321321

322322
## PARAMETERS

reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -397,14 +397,14 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
397397
Unix socket.
398398

399399
```powershell
400-
Invoke-WebRequest -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
400+
Invoke-WebRequest -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
401401
```
402402

403403
## PARAMETERS
404404

405405
### -AllowInsecureRedirect
406406

407-
Allows redirecting from HTTPS to HTTP. By default, any request that is redirected from HTTPS to
407+
Allows redirecting from HTTPS to HTTP. By default, any request that's redirected from HTTPS to
408408
HTTP results in an error and the request is aborted to prevent unintentionally communicating in
409409
plain text over unencrypted connections. To override this behavior at your own risk, use the
410410
**AllowInsecureRedirect** parameter.

reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -316,7 +316,7 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
316316
Unix socket.
317317

318318
```powershell
319-
Invoke-RestMethod -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
319+
Invoke-RestMethod -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
320320
```
321321

322322
## PARAMETERS

reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 02/05/2025
5+
ms.date: 12/10/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
aliases:
@@ -397,14 +397,14 @@ a list of Docker images using the Docker API. The cmdlet connects to the Docker
397397
Unix socket.
398398

399399
```powershell
400-
Invoke-WebRequest -Uri "http://localhost/v1.40/images/json/" -UnixSocket "/var/run/docker.sock"
400+
Invoke-WebRequest -Uri http://localhost/v1.40/images/json -UnixSocket '/var/run/docker.sock'
401401
```
402402

403403
## PARAMETERS
404404

405405
### -AllowInsecureRedirect
406406

407-
Allows redirecting from HTTPS to HTTP. By default, any request that is redirected from HTTPS to
407+
Allows redirecting from HTTPS to HTTP. By default, any request that's redirected from HTTPS to
408408
HTTP results in an error and the request is aborted to prevent unintentionally communicating in
409409
plain text over unencrypted connections. To override this behavior at your own risk, use the
410410
**AllowInsecureRedirect** parameter.

0 commit comments

Comments
 (0)