Skip to content

Commit

Permalink
Merge pull request #665 from rubrikinc/issue-664
Browse files Browse the repository at this point in the history
Issue 664 - fixed Get-RubrikClusterStorage for 5.2
  • Loading branch information
shamsway authored Jul 28, 2020
2 parents e27221b + 3150715 commit fe62548
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions Rubrik/Private/Get-RubrikAPIData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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' = @{
Expand Down Expand Up @@ -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' = @{
Expand Down

0 comments on commit fe62548

Please sign in to comment.