Skip to main content

ActivityConfigurationSettings

Properties

NameTypeDescriptionNotes
IsEnabledBooleanIndicates whether the feature or configuration is enabled.[optional] [default to $false]
ClusterIdStringThe identifier of the cluster associated with this configuration, if applicable.[optional]
RetentionTimePeriodInt32The time period for retaining activity logs.[optional]
RetentionTimeTypeStringThe type of retention period (e.g., days, months, years).[optional]
ExcludeUsers[]StringList of user identifiers to exclude from activity tracking.[optional]
ExcludeFolders[]StringList of folder paths to exclude from activity tracking.[optional]
ExcludeFileExtensions[]StringList of file extensions to exclude from activity tracking.[optional]
ExcludeActions[]StringList of actions to exclude from activity tracking.[optional]

Examples

  • Prepare the resource
$ActivityConfigurationSettings = Initialize-ActivityConfigurationSettings  -IsEnabled true `
-ClusterId cluster-001 `
-RetentionTimePeriod 30 `
-RetentionTimeType days `
-ExcludeUsers ["user1","user2"] `
-ExcludeFolders ["/tmp","/archive"] `
-ExcludeFileExtensions [".log",".bak"] `
-ExcludeActions ["delete","move"]
  • Convert the resource to JSON
$ActivityConfigurationSettings | ConvertTo-JSON

[Back to top]