@@ -1331,7 +1331,7 @@ Function Get-VCFCredential
13311331 [ValidateNotNullOrEmpty ()]
13321332 [string ]$resourceName ,
13331333 [Parameter (Mandatory = $false )]
1334- [ValidateSet (" VCENTER" , " ESXI" , " BACKUP" , " NSXT_MANAGER" , " NSXT_EDGE" )]
1334+ [ValidateSet (" VCENTER" , " PSC " , " ESXI" , " BACKUP" , " NSXT_MANAGER" , " NSXT_EDGE" , " VRSLCM " , " WSA " , " VROPS " , " VRLI " , " VRA " )]
13351335 [ValidateNotNullOrEmpty ()]
13361336 [string ]$resourceType ,
13371337 [Parameter (Mandatory = $false )]
@@ -4352,6 +4352,230 @@ Export-ModuleMember -Function Reset-VCFvRSLCM
43524352
43534353# ######## End APIs for managing vRealize Suite Lifecycle Manager ##########
43544354
4355+ # ######## Start APIs for managing vRealize Operations Manager ##########
4356+
4357+ Function Get-VCFvROPs
4358+ {
4359+ <#
4360+ . SYNOPSIS
4361+ Get the existing vRealize Operations Manager
4362+
4363+ . DESCRIPTION
4364+ The Get-VCFvROPs cmdlet gets the complete information about the existing vRealize Operations Manager.
4365+
4366+ . EXAMPLE
4367+ PS C:\> Get-VCFvROPs
4368+ This example list all details concerning the vRealize Operations Manager
4369+
4370+ . EXAMPLE
4371+ PS C:\> Get-VCFvROPs -domains
4372+ This example lists all workload domains connected to vRealize Operations Manager
4373+ #>
4374+
4375+ Param (
4376+ [Parameter (Mandatory = $false )]
4377+ [ValidateNotNullOrEmpty ()]
4378+ [switch ]$domains
4379+ )
4380+
4381+ Try {
4382+ createHeader # Calls createHeader function to set Accept & Authorization
4383+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4384+ if ($PsBoundParameters.ContainsKey (" domains" )) {
4385+ $uri = " https://$sddcManager /v1/vrops/domains"
4386+ $response = Invoke-RestMethod - Method GET - URI $uri - headers $headers
4387+ $response
4388+ }
4389+ else {
4390+ $uri = " https://$sddcManager /v1/vropses"
4391+ $response = Invoke-RestMethod - Method GET - URI $uri - headers $headers
4392+ $response
4393+ }
4394+ }
4395+ Catch {
4396+ $errorString = ResponseException; Write-Error $errorString
4397+ }
4398+ }
4399+ Export-ModuleMember - Function Get-VCFvROPs
4400+
4401+ Function Set-VCFvROPs
4402+ {
4403+ <#
4404+ . SYNOPSIS
4405+ Connect or disconnect Workload Domains to vRealize Operations Manager
4406+
4407+ . DESCRIPTION
4408+ The Set-VCFvROPs cmdlet connects or disconnects Workload Domains to vRealize Operations Manager.
4409+
4410+ . EXAMPLE
4411+ PS C:\> Set-VCFvROPs -domainId <domain-id> -status ENABLED
4412+ This example connects a Workload Domain to vRealize Operations Manager
4413+
4414+ . EXAMPLE
4415+ PS C:\> Set-VCFvROPs -domainId <domain-id> -status DISABLED
4416+ This example disconnects a Workload Domain from vRealize Operations Manager
4417+ #>
4418+
4419+ Param (
4420+ [Parameter (Mandatory = $true )]
4421+ [ValidateNotNullOrEmpty ()]
4422+ [string ]$domainId ,
4423+ [Parameter (Mandatory = $true )]
4424+ [ValidateSet (" ENABLED" , " DISABLED" )]
4425+ [ValidateNotNullOrEmpty ()]
4426+ [string ]$status
4427+ )
4428+
4429+ Try {
4430+ createHeader # Calls createHeader function to set Accept & Authorization
4431+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4432+ $body = ' {"domainId": "' + $domainId + ' ","status": "' + $status + ' "}'
4433+ $uri = " https://$sddcManager /v1/vrops/domains"
4434+ $response = Invoke-RestMethod - Method PUT - URI $uri - headers $headers - body $body
4435+ $response
4436+ }
4437+ Catch {
4438+ $errorString = ResponseException; Write-Error $errorString
4439+ }
4440+ }
4441+ Export-ModuleMember - Function Set-VCFvROPs
4442+
4443+ # ######## End APIs for managing vRealize Operations Manager ##########
4444+
4445+ # ######## Start APIs for managing Workspace ONE Access ##########
4446+
4447+ Function Get-VCFWSA
4448+ {
4449+ <#
4450+ . SYNOPSIS
4451+ Get the existing Workspace ONE Access
4452+
4453+ . DESCRIPTION
4454+ The Get-VCFWSA cmdlet gets the complete information about the existing Workspace ONE Access.
4455+
4456+ . EXAMPLE
4457+ PS C:\> Get-VCFWSA
4458+ This example list all details concerning Workspace ONE Access
4459+ #>
4460+
4461+ Try {
4462+ createHeader # Calls createHeader function to set Accept & Authorization
4463+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4464+ $uri = " https://$sddcManager /v1/wsas"
4465+ $response = Invoke-RestMethod - Method GET - URI $uri - headers $headers
4466+ $response
4467+ }
4468+ Catch {
4469+ $errorString = ResponseException; Write-Error $errorString
4470+ }
4471+ }
4472+ Export-ModuleMember - Function Get-VCFWSA
4473+
4474+ # ######## End APIs for managing Workspace ONE Access ##########
4475+
4476+ # ######## Start APIs for managing vRealize Automation ##########
4477+
4478+ Function Get-VCFvRA
4479+ {
4480+ <#
4481+ . SYNOPSIS
4482+ Get the existing vRealize Automation
4483+
4484+ . DESCRIPTION
4485+ The Get-VCFvRA cmdlet gets the complete information about the existing vRealize Automation.
4486+
4487+ . EXAMPLE
4488+ PS C:\> Get-VCFvRA
4489+ This example list all details concerning the vRealize Automation
4490+ #>
4491+
4492+ Try {
4493+ createHeader # Calls createHeader function to set Accept & Authorization
4494+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4495+ $uri = " https://$sddcManager /v1/vras"
4496+ $response = Invoke-RestMethod - Method GET - URI $uri - headers $headers
4497+ $response
4498+ }
4499+ Catch {
4500+ $errorString = ResponseException; Write-Error $errorString
4501+ }
4502+ }
4503+ Export-ModuleMember - Function Get-VCFvRA
4504+
4505+ # ######## End APIs for managing vRealize Automation ##########
4506+
4507+ # ######## Start APIs for managing vRealize Log Insight ##########
4508+
4509+ Function Get-VCFvRLI
4510+ {
4511+ <#
4512+ . SYNOPSIS
4513+ Get the existing vRealize Log Insight
4514+
4515+ . DESCRIPTION
4516+ The Get-VCFvRLI cmdlet gets the complete information about the existing vRealize Log Insight.
4517+
4518+ . EXAMPLE
4519+ PS C:\> Get-VCFvRLI
4520+ This example list all details concerning the vRealize Log Insight
4521+ #>
4522+
4523+ Try {
4524+ createHeader # Calls createHeader function to set Accept & Authorization
4525+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4526+ $uri = " https://$sddcManager /v1/vrlis"
4527+ $response = Invoke-RestMethod - Method GET - URI $uri - headers $headers
4528+ $response
4529+ }
4530+ Catch {
4531+ $errorString = ResponseException; Write-Error $errorString
4532+ }
4533+ }
4534+ Export-ModuleMember - Function Get-VCFvRLI
4535+
4536+ Function Set-VCFvRLI
4537+ {
4538+ <#
4539+ . SYNOPSIS
4540+ Connect or disconnect Workload Domains to vRealize Log Insight
4541+
4542+ . DESCRIPTION
4543+ The Set-VCFvRLI cmdlet connects or disconnects Workload Domains to vRealize Log Insight
4544+
4545+ . EXAMPLE
4546+ PS C:\> Set-VCFvRLI -domainId <domain-id> -status ENABLED
4547+ This example connects a Workload Domain to vRealize Log Insight
4548+
4549+ . EXAMPLE
4550+ PS C:\> Set-VCFvRLI -domainId <domain-id> -status DISABLED
4551+ This example disconnects a Workload Domain from vRealize Log Insight
4552+ #>
4553+
4554+ Param (
4555+ [Parameter (Mandatory = $true )]
4556+ [ValidateNotNullOrEmpty ()]
4557+ [string ]$domainId ,
4558+ [Parameter (Mandatory = $true )]
4559+ [ValidateSet (" ENABLED" , " DISABLED" )]
4560+ [ValidateNotNullOrEmpty ()]
4561+ [string ]$status
4562+ )
4563+
4564+ Try {
4565+ createHeader # Calls createHeader function to set Accept & Authorization
4566+ checkVCFToken # Calls the CheckVCFToken function to validate the access token and refresh if necessary
4567+ $body = ' {"domainId": "' + $domainId + ' ","status": "' + $status + ' "}'
4568+ $uri = " https://$sddcManager /v1/vrli/domains"
4569+ $response = Invoke-RestMethod - Method PUT - URI $uri - headers $headers - body $body
4570+ $response
4571+ }
4572+ Catch {
4573+ $errorString = ResponseException; Write-Error $errorString
4574+ }
4575+ }
4576+ Export-ModuleMember - Function Set-VCFvRLI
4577+
4578+ # ######## End APIs for managing vRealize Log Insight ##########
43554579
43564580
43574581# ####### Start APIs for managing Validations ########
0 commit comments