Files
ZertoApiWrapper/ZertoApiWrapper/Public/Set-ZertoLicense.ps1
T
Wes Carroll 59a0a53812 Help system (#4)
* Establish a help system

* Continue to update Help System

* Update Get-ZertoAlert.md

* Update Get-ZertoDatastore.md

* Add Link to Zerto API for Datastores

* Update Get-ZertoLicense.md

* Update Links to Zerto API documentation

* Update the Readme Information

* Continue to update README

* Update README

* Update README.md

* Update Help Markdown Files

* Correct API URL

* Update ZertoApiWrapper-help.xml

* Update Get-ZertoProtectedVm.md

* Update Help Markdown files

* Update Get-ZertoVpgSetting.md

* Added online url to each help object.

* Update Help Markdown Files

* Update ZertoApiWrapper-help.xml
2019-03-06 20:50:14 -05:00

26 lines
624 B
PowerShell

<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Set-ZertoLicense {
[cmdletbinding( SupportsShouldProcess = $true )]
param (
[Parameter(
Mandatory = $true,
HelpMessage = "License Key to apply to the Zerto Virtual Manager"
)]
[string]$licenseKey
)
begin {
$baseUri = "license"
$body = @{"LicenseKey" = $licenseKey}
}
process {
if ($PSCmdlet.ShouldProcess()) {
Invoke-ZertoRestRequest -uri $baseUri -body $($body | ConvertTo-Json) -method "PUT"
}
}
end {
# Nothing to do
}
}