Put params in correct order
This commit is contained in:
@@ -11,6 +11,12 @@ function Connect-ZertoServer {
|
|||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[Alias("server", "zvm")]
|
[Alias("server", "zvm")]
|
||||||
[string]$zertoServer,
|
[string]$zertoServer,
|
||||||
|
[Parameter(
|
||||||
|
Mandatory,
|
||||||
|
HelpMessage = "Valid credentials to connect to the Zerto Management Server",
|
||||||
|
Position = 1
|
||||||
|
)]
|
||||||
|
[System.Management.Automation.PSCredential]$credential,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Zerto Virtual Manager management port. Default value is 9669."
|
HelpMessage = "Zerto Virtual Manager management port. Default value is 9669."
|
||||||
)]
|
)]
|
||||||
@@ -18,17 +24,15 @@ function Connect-ZertoServer {
|
|||||||
[ValidateRange(1024, 65535)]
|
[ValidateRange(1024, 65535)]
|
||||||
[Alias("port")]
|
[Alias("port")]
|
||||||
[string]$zertoPort = "9669",
|
[string]$zertoPort = "9669",
|
||||||
[Parameter(
|
|
||||||
Mandatory,
|
|
||||||
HelpMessage = "Valid credentials to connect to the Zerto Management Server",
|
|
||||||
Position = 1
|
|
||||||
)]
|
|
||||||
[System.Management.Automation.PSCredential]$credential,
|
|
||||||
[switch]$returnHeaders,
|
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Use this switch to indicate that you would like the module to take care of auto re-authorization and reconnection to the ZVM should the token expire. This option will cache your PSCredential object to be reused"
|
HelpMessage = "Use this switch to indicate that you would like the module to take care of auto re-authorization and reconnection to the ZVM should the token expire. This option will cache your PSCredential object to be reused"
|
||||||
)]
|
)]
|
||||||
[switch]$AutoReconnect
|
[switch]$AutoReconnect,
|
||||||
|
[Parameter(
|
||||||
|
HelpMessage = "Use this switch to return the headers to a specified variable or to the default output."
|
||||||
|
)]
|
||||||
|
[switch]$returnHeaders
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ Establishes a connection to a ZVM.
|
|||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
```
|
```
|
||||||
Connect-ZertoServer [-zertoServer] <String> [-credential] <PSCredential> [-zertoPort <String>] [-returnHeaders]
|
Connect-ZertoServer [-zertoServer] <String> [-credential] <PSCredential> [-zertoPort <String>] [-AutoReconnect]
|
||||||
[<CommonParameters>]
|
[-returnHeaders] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|||||||
Reference in New Issue
Block a user