diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bf9952e2..b82e5af4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +* Added 5.2 API calls for `Get-RubrikClusterStorage` as the endpoint to retrieve Average Daily Growth no longer exists in CDM 5.2. Resolves [Issue 664](https://github.com/rubrikinc/rubrik-sdk-for-powershell/issues/664) +* Updated API stanza for 5.2 for the `Get-RubrikSyslogServer` cmdlet + ### Fixed ## [5.0.2](https://github.com/rubrikinc/rubrik-sdk-for-powershell/tree/5.0.2) - 2020-07-08 diff --git a/Rubrik/Private/Get-RubrikAPIData.ps1 b/Rubrik/Private/Get-RubrikAPIData.ps1 index 27e70735f..ca3b156be 100644 --- a/Rubrik/Private/Get-RubrikAPIData.ps1 +++ b/Rubrik/Private/Get-RubrikAPIData.ps1 @@ -343,6 +343,24 @@ function Get-RubrikAPIData { Filter = '' Success = '200' } + '5.2' = @{ + Description = 'Retrieves advanced settings of the Rubrik cluster' + URI = @{ + StorageOverview = '/api/internal/stats/system_storage' + DiskCapacityInTb = '/api/internal/cluster/me/disk_capacity' + FlashCapacityInTb = '/api/internal/cluster/me/flash_capacity' + CloudStorage = '/api/internal/stats/cloud_storage/physical' + CloudStorageIngested = '/api/internal/stats/cloud_storage/ingested' + LocalStorageIngested = '/api/internal/stats/snapshot_storage/ingested' + DailyGrowth = '/api/internal/stats/average_storage_growth_per_day' + } + Method = 'Get' + Body = '' + Query = '' + Result = '' + Filter = '' + Success = '200' + } } 'Get-RubrikBackupServiceDeployment' = @{ '1.0' = @{ @@ -1304,6 +1322,18 @@ function Get-RubrikAPIData { } Success = '200' } + '5.2' = @{ + Description = 'Retrieve the configured syslog servers within the Rubrik Cluster' + URI = '/api/v1/syslog/export' + Method = 'Get' + Body = '' + Query = '' + Result = 'data' + Filter = @{ + 'Name' = 'hostname' + } + Success = '200' + } } 'Get-RubrikUnmanagedObject' = @{ '1.0' = @{