Add vCenter cache rebuild functionality and related API endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -59,3 +59,22 @@ type SnapshotRepairSuiteResponse struct {
|
||||
MonthlyRefined string `json:"monthly_refined"`
|
||||
MonthlyFailed string `json:"monthly_failed"`
|
||||
}
|
||||
|
||||
// VcenterCacheRebuildResult describes rebuild results for a single vCenter.
|
||||
type VcenterCacheRebuildResult struct {
|
||||
Vcenter string `json:"vcenter"`
|
||||
FolderEntries int `json:"folder_entries"`
|
||||
ResourcePoolEntries int `json:"resource_pool_entries"`
|
||||
HostEntries int `json:"host_entries"`
|
||||
DurationSeconds float64 `json:"duration_seconds"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// VcenterCacheRebuildResponse describes the vCenter object cache rebuild response.
|
||||
type VcenterCacheRebuildResponse struct {
|
||||
Status string `json:"status"`
|
||||
Total int `json:"total"`
|
||||
Succeeded int `json:"succeeded"`
|
||||
Failed int `json:"failed"`
|
||||
Results []VcenterCacheRebuildResult `json:"results"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user