Get-VPASAllCustomThemes


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL CUSTOM THEMES


Description:

USE THIS FUNCTION TO GET DETAILS ABOUT ALL CUSTOM THEMES IN CYBERARK


Syntax:

Get-VPASAllCustomThemes [-ExportToCSV] [-CSVDirectory <String>] [-token <Hashtable>] [<CommonParameters>]

Get-VPASAllCustomThemes -InputParameters <Hashtable> [-token <Hashtable>] [<CommonParameters>]


Parameters:

-ExportToCSV [<SwitchParameter>]
Output results to a CSV file found in AppData\Local\VPASModuleOutputs directory

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-CSVDirectory <String>
Output directory where the exported CSV file will be saved to
Default value: C:\Users\{CurrentUser}\AppData\Local\VPASModuleOutputs\ExportedCSVs

Required: false
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-InputParameters <Hashtable>
HashTable of values containing the parameters required to make the API call

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$AllCustomThemesDetailsJSON = Get-VPASAllCustomThemes

$InputParameters = @{
        ExportToCSV = $true|$false
         CSVDirectory = "C:\Temp"
}
$AllCustomThemesDetailsJSON = Get-VPASAllCustomThemes -InputParameters $InputParameters


Outputs:

If successful:
{
         "CustomThemes": [
                 ...
                 {
                         "isActive": false,
                         "isSystem": true,
                         "name": "Default light",
                         "isDraft": false,
                         "images": {
                                 "main": {
                                         "mainBackgroundImage": "",
                                         "mainLogoDark": "",
                                         "advancedSmallLogo": "",
                                         "advancedSymbolLogo": ""
                                 }
                         },
                         "colors": {
                                 "colorsStyle": "bright",
                                 "definitionByType": {
                                         "dark": {
                                                 "backgroundMain": "#000000",
                                                 "borderMain": "#ff390c",
                                                 "textMain": "#ffffff",
                                                 "disableMain": "#313131",
                                                 "disableTextPrimary": "#a2a2a2",
                                                 "disableBackgroundPrimary": "#818080",
                                                 "successPrimary": "#02DA4F",
                                                 "successSecondary": "#C7F8D2",
                                                 "warningPrimary": "#FFC107",
                                                 "warningSecondary": "#FFEDD9",
                                                 "infoPrimary": "#358CFF",
                                                 "infoSecondary": "#E6EFFE",
                                                 "errorPrimary": "#FF465C",
                                                 "errorSecondary": "#FFDFE0"
                                         },
                                         "bright": {
                                                 "backgroundMain": "#ffffff",
                                                 "borderMain": "#1362CB",
                                                 "textMain": "#333333",
                                                 "disableMain": "#313131",
                                                 "disableTextPrimary": "#ffffff",
                                                 "disableBackgroundPrimary": "#818080",
                                                 "successPrimary": "#008753",
                                                 "successSecondary": "#C7F8D2",
                                                 "warningPrimary": "#E37500",
                                                 "warningSecondary": "#FFEDD9",
                                                 "infoPrimary": "#1362CB",
                                                 "infoSecondary": "#E6EFFE",
                                                 "errorPrimary": "#DA1E28",
                                                 "errorSecondary": "#FFDFE0"
                                         }
                                 },
                                 "main": {
                                         "mainColor": "#1362CB",
                                         "selectedMain": "#367AD3",
                                         "hoverMain": "#0B46B8",
                                         "defaultButtonTextPrimary": "#ffffff"
                                 },
                                 "menu": {
                                         "menuLogoBackground": "#2F3564",
                                         "menuBackground": "#2f3564",
                                         "menuHoverBackground": "#FFFFff",
                                         "menuActiveBackgroundPrimary": "#eaeef7",
                                         "menuActiveBackgroundSecondary": "#FFFFff",
                                         "menuText": "#2F3564",
                                         "menuTextActive": "#2F3564",
                                         "menuIcon": "#729AF8"
                                 },
                                 "advanced": {
                                         "backgroundMain": "",
                                         "borderMain": "",
                                         "textMain": ""
                                 }
                         }
                 },
                 ...
         ]
}

$false if failed