Fix tabs instead of spaces
This commit is contained in:
@@ -570,7 +570,7 @@ Function Get-HcxVCConfig {
|
|||||||
#>
|
#>
|
||||||
If (-Not $global:hcxVAMIConnection) { Write-error "HCX Auth Token not found, please run Connect-HcxVAMI " } Else {
|
If (-Not $global:hcxVAMIConnection) { Write-error "HCX Auth Token not found, please run Connect-HcxVAMI " } Else {
|
||||||
$vcConfigUrl = $global:hcxVAMIConnection.Server + "/api/admin/global/config/vcenter"
|
$vcConfigUrl = $global:hcxVAMIConnection.Server + "/api/admin/global/config/vcenter"
|
||||||
$pscConfigUrl = $global:hcxVAMIConnection.Server + "/api/admin/global/config/lookupservice"
|
$pscConfigUrl = $global:hcxVAMIConnection.Server + "/api/admin/global/config/lookupservice"
|
||||||
|
|
||||||
if($PSVersionTable.PSEdition -eq "Core") {
|
if($PSVersionTable.PSEdition -eq "Core") {
|
||||||
$vcRequests = Invoke-WebRequest -Uri $vcConfigUrl -Method GET -Headers $global:hcxVAMIConnection.headers -UseBasicParsing -SkipCertificateCheck
|
$vcRequests = Invoke-WebRequest -Uri $vcConfigUrl -Method GET -Headers $global:hcxVAMIConnection.headers -UseBasicParsing -SkipCertificateCheck
|
||||||
@@ -580,12 +580,12 @@ Function Get-HcxVCConfig {
|
|||||||
$ssoRequests = Invoke-WebRequest -Uri $pscConfigUrl -Method GET -Headers $global:hcxVAMIConnection.headers -UseBasicParsing
|
$ssoRequests = Invoke-WebRequest -Uri $pscConfigUrl -Method GET -Headers $global:hcxVAMIConnection.headers -UseBasicParsing
|
||||||
}
|
}
|
||||||
$vcData = ($vcRequests.content | ConvertFrom-Json).data.items
|
$vcData = ($vcRequests.content | ConvertFrom-Json).data.items
|
||||||
$ssoData = ($ssoRequests.content | ConvertFrom-Json).data.items
|
$ssoData = ($ssoRequests.content | ConvertFrom-Json).data.items
|
||||||
|
|
||||||
$tmp = [pscustomobject] @{
|
$tmp = [pscustomobject] @{
|
||||||
Name = $vcData.config.name;
|
Name = $vcData.config.name;
|
||||||
UserName = $vcData.Config.userName
|
UserName = $vcData.Config.userName
|
||||||
LookupServiceUrl = $ssoData.config.lookupServiceUrl
|
LookupServiceUrl = $ssoData.config.lookupServiceUrl
|
||||||
Version = $vcData.config.version;
|
Version = $vcData.config.version;
|
||||||
Build = $vcData.config.buildNumber;
|
Build = $vcData.config.buildNumber;
|
||||||
UUID = $vcData.config.vcuuid;
|
UUID = $vcData.config.vcuuid;
|
||||||
@@ -838,7 +838,7 @@ Function Get-HcxNSXConfig {
|
|||||||
|
|
||||||
$tmp = [pscustomobject] @{
|
$tmp = [pscustomobject] @{
|
||||||
Name = $nsxData.config.url;
|
Name = $nsxData.config.url;
|
||||||
UserName = $nsxData.config.userName
|
UserName = $nsxData.config.userName
|
||||||
Version = $nsxData.config.version;
|
Version = $nsxData.config.version;
|
||||||
HCXUUID = $nsxData.config.uuid;
|
HCXUUID = $nsxData.config.uuid;
|
||||||
}
|
}
|
||||||
@@ -1250,7 +1250,7 @@ Function Set-HcxProxy {
|
|||||||
[Parameter(Mandatory=$True)]$ProxyPort,
|
[Parameter(Mandatory=$True)]$ProxyPort,
|
||||||
[Parameter(Mandatory=$False)]$ProxyUser,
|
[Parameter(Mandatory=$False)]$ProxyUser,
|
||||||
[Parameter(Mandatory=$False)]$ProxyPassword,
|
[Parameter(Mandatory=$False)]$ProxyPassword,
|
||||||
[Parameter(Mandatory=$False)]$ProxyExclusions,
|
[Parameter(Mandatory=$False)]$ProxyExclusions,
|
||||||
[Switch]$Troubleshoot
|
[Switch]$Troubleshoot
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user