Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Arubu-Instant-On-HTML.ps1 #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Aruba-Instant-On/Arubu-Instant-On-HTML.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@

$ArubaInstantOnUser = '[email protected]'
$ArubaInstantOnPass = 'Make a long randomly generated password for the account that you save securely'
ReportRoot = "Directory to hold the report directory"
$ReportFolder = "Directory to place the report files"
$ReportPath = "$ReportRoot\$ReportFolder"

#Check and create report path
$FolderExist = Test-Path -Path $ReportPath

#If Folder doesn't exist - Make it
If ($FolderExist -eq $False){
#Create Folder
New-Item -Path "$ReportRoot" -Name $ReportFolder -ItemType "directory"
}

#### Functions ####

Expand Down Expand Up @@ -164,7 +176,7 @@ foreach ($site in $sites.Elements) {
# $ClientBlacklist = (Invoke-WebRequest -Method GET -Uri "https://nb.portal.arubainstanton.com/api/sites/$($Site.id)/clientBlacklist" -ContentType $ContentType -Headers $headers).content | ConvertFrom-Json
# $applicationCategoryUsageConfiguration = (Invoke-WebRequest -Method GET -Uri "https://nb.portal.arubainstanton.com/api/sites/$($Site.id)/applicationCategoryUsageConfiguration" -ContentType $ContentType -Headers $headers).content | ConvertFrom-Json

New-HTML -Title 'Aruba Instant On Details' -FilePath "C:\Temp\ArubaION\$($Site.name).html" {
New-HTML -Title 'Aruba Instant On Details' -FilePath "$ReportPath\$($Site.name).html" {
New-HTMLTAb -Name 'Site Summary' {
New-HTMLSection -HeaderText 'Summary' {
$LandingPage | Select-Object -ExcludeProperty kind | convertto-html -as list -Fragment
Expand Down