Public/Get-CTXAPI_ConfigLog.ps1
<#PSScriptInfo .VERSION 1.1.6 .GUID 8e3eaddb-c8e2-4cd6-8a70-0fbea6245f4d .AUTHOR Pierre Smit .COMPANYNAME iOCO Tech .COPYRIGHT .TAGS api citrix ctx cvad ps .LICENSEURI .PROJECTURI .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES Created [03/04/2021_01:54] Initital Script Creating Updated [06/04/2021_09:03] Script Fle Info was updated Updated [20/04/2021_10:42] Script Fle Info was updated Updated [22/04/2021_11:42] Script Fle Info was updated Updated [05/10/2021_21:22] Module Info Updated Updated [07/10/2021_13:28] Script info updated for module Updated [03/11/2021_19:17] Info Upate .PRIVATEDATA #> <# .DESCRIPTION Get high level configuration changes in the last x days #> # .ExternalHelp CTXCloudApi-help.xml Function Get-CTXAPI_ConfigLog { <# .SYNOPSIS Get high level configuration changes in the last x days .DESCRIPTION Get high level configuration changes in the last x days .PARAMETER Days Number of days to report on .PARAMETER APIHeader Use Connect-CTXAPI to create headers .EXAMPLE Get-CTXAPI_ConfigLog -APIHeader $APIHeader -Days 15 #> [Cmdletbinding()] PARAM( [Parameter(Mandatory = $true)] [PSTypeName('CTXAPIHeaderObject')]$APIHeader, [Parameter(Mandatory = $true)] [string]$Days) (Invoke-RestMethod -Uri "https://api.cloud.com/cvad/manage/ConfigLog/Operations?days=$days" -Headers $APIHeader.headers).items } #end Function |