@openshift-migration-advisor/agent-sdk 0.20.1-bf086d122d0f → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (642) hide show
  1. package/.openapi-generator/FILES +48 -64
  2. package/README.md +86 -81
  3. package/dist/apis/DefaultApi.d.ts +1988 -0
  4. package/dist/apis/DefaultApi.js +2066 -0
  5. package/dist/apis/index.d.ts +1 -12
  6. package/dist/apis/index.js +1 -12
  7. package/dist/esm/apis/DefaultApi.d.ts +1988 -0
  8. package/dist/esm/apis/DefaultApi.js +2062 -0
  9. package/dist/esm/apis/index.d.ts +1 -12
  10. package/dist/esm/apis/index.js +1 -12
  11. package/dist/esm/models/AgentModeRequest.d.ts +1 -1
  12. package/dist/esm/models/AgentModeRequest.js +1 -1
  13. package/dist/esm/models/AgentStatus.d.ts +15 -4
  14. package/dist/esm/models/AgentStatus.js +13 -5
  15. package/dist/esm/models/ApplicationListResponse.d.ts +1 -1
  16. package/dist/esm/models/ApplicationListResponse.js +1 -1
  17. package/dist/esm/models/ApplicationOverview.d.ts +4 -4
  18. package/dist/esm/models/ApplicationOverview.js +1 -1
  19. package/dist/esm/models/ApplicationVM.d.ts +3 -3
  20. package/dist/esm/models/ApplicationVM.js +1 -1
  21. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +1 -1
  22. package/dist/esm/models/BatchUpdateExclusionRequest.js +1 -1
  23. package/dist/esm/models/BenchmarkRun.d.ts +6 -6
  24. package/dist/esm/models/BenchmarkRun.js +5 -7
  25. package/dist/esm/models/CapabilityStatus.d.ts +1 -1
  26. package/dist/esm/models/CapabilityStatus.js +1 -1
  27. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +1 -1
  28. package/dist/esm/models/CapabilityStatusCapabilities.js +1 -1
  29. package/dist/esm/models/ClusterFeatures.d.ts +1 -1
  30. package/dist/esm/models/ClusterFeatures.js +1 -1
  31. package/dist/esm/models/ClusterUtilization.d.ts +1 -1
  32. package/dist/esm/models/ClusterUtilization.js +1 -1
  33. package/dist/esm/models/CollectorStartRequest.d.ts +46 -0
  34. package/dist/esm/models/CollectorStartRequest.js +49 -0
  35. package/dist/esm/models/CollectorStatus.d.ts +1 -2
  36. package/dist/esm/models/CollectorStatus.js +1 -2
  37. package/dist/esm/models/CreateGroupRequest.d.ts +4 -4
  38. package/dist/esm/models/CreateGroupRequest.js +1 -1
  39. package/dist/esm/models/CredentialStatus.d.ts +1 -1
  40. package/dist/esm/models/CredentialStatus.js +1 -1
  41. package/dist/esm/models/Datastore.d.ts +1 -1
  42. package/dist/esm/models/Datastore.js +1 -1
  43. package/dist/esm/models/DatastoreDetail.d.ts +17 -7
  44. package/dist/esm/models/DatastoreDetail.js +10 -1
  45. package/dist/esm/models/DatastorePair.d.ts +42 -0
  46. package/dist/esm/models/{DatastorePairRequest.js → DatastorePair.js} +9 -9
  47. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +5 -5
  48. package/dist/esm/models/DeleteLabelGloballyResponse.js +5 -5
  49. package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -1
  50. package/dist/esm/models/DiskSizeTierSummary.js +1 -1
  51. package/dist/esm/models/DiskTypeSummary.d.ts +1 -1
  52. package/dist/esm/models/DiskTypeSummary.js +1 -1
  53. package/dist/esm/models/EstimateRange.d.ts +8 -8
  54. package/dist/esm/models/EstimateRange.js +4 -10
  55. package/dist/esm/models/ExportInventory400Response.d.ts +30 -0
  56. package/dist/esm/models/ExportInventory400Response.js +41 -0
  57. package/dist/esm/models/ExportInventory500Response.d.ts +30 -0
  58. package/dist/esm/models/ExportInventory500Response.js +41 -0
  59. package/dist/esm/models/ForecastStats.d.ts +11 -11
  60. package/dist/esm/models/ForecastStats.js +17 -33
  61. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +31 -0
  62. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  63. package/dist/esm/models/ForecasterPairStatus.d.ts +78 -0
  64. package/dist/esm/models/{ForecastPairStatus.js → ForecasterPairStatus.js} +22 -22
  65. package/dist/esm/models/ForecasterStartRequest.d.ts +48 -0
  66. package/dist/esm/models/{StartForecasterRequest.js → ForecasterStartRequest.js} +15 -12
  67. package/dist/esm/models/ForecasterStatus.d.ts +7 -7
  68. package/dist/esm/models/ForecasterStatus.js +6 -8
  69. package/dist/esm/models/GetInventory200Response.d.ts +23 -0
  70. package/dist/esm/models/GetInventory200Response.js +51 -0
  71. package/dist/esm/models/Group.d.ts +4 -4
  72. package/dist/esm/models/Group.js +1 -1
  73. package/dist/esm/models/GroupListResponse.d.ts +4 -4
  74. package/dist/esm/models/GroupListResponse.js +1 -1
  75. package/dist/esm/models/GroupResponse.d.ts +6 -6
  76. package/dist/esm/models/GroupResponse.js +4 -4
  77. package/dist/esm/models/GuestNetwork.d.ts +6 -6
  78. package/dist/esm/models/GuestNetwork.js +1 -1
  79. package/dist/esm/models/Histogram.d.ts +1 -1
  80. package/dist/esm/models/Histogram.js +1 -1
  81. package/dist/esm/models/Host.d.ts +1 -1
  82. package/dist/esm/models/Host.js +1 -1
  83. package/dist/esm/models/Infra.d.ts +1 -1
  84. package/dist/esm/models/Infra.js +1 -1
  85. package/dist/esm/models/InspectorStatus.d.ts +1 -1
  86. package/dist/esm/models/InspectorStatus.js +1 -1
  87. package/dist/esm/models/Inventory.d.ts +17 -3
  88. package/dist/esm/models/Inventory.js +14 -5
  89. package/dist/esm/models/InventoryData.d.ts +1 -1
  90. package/dist/esm/models/InventoryData.js +1 -1
  91. package/dist/esm/models/IssuesBreakdown.d.ts +1 -1
  92. package/dist/esm/models/IssuesBreakdown.js +1 -1
  93. package/dist/esm/models/MigrationIssue.d.ts +1 -1
  94. package/dist/esm/models/MigrationIssue.js +1 -1
  95. package/dist/esm/models/Network.d.ts +1 -1
  96. package/dist/esm/models/Network.js +1 -1
  97. package/dist/esm/models/OperationCapability.d.ts +1 -1
  98. package/dist/esm/models/OperationCapability.js +1 -1
  99. package/dist/esm/models/OsInfo.d.ts +1 -1
  100. package/dist/esm/models/OsInfo.js +1 -1
  101. package/dist/esm/models/PairCapability.d.ts +13 -3
  102. package/dist/esm/models/PairCapability.js +10 -1
  103. package/dist/esm/models/PairCapabilityRequest.d.ts +8 -3
  104. package/dist/esm/models/PairCapabilityRequest.js +7 -4
  105. package/dist/esm/models/Process.d.ts +1 -1
  106. package/dist/esm/models/Process.js +1 -1
  107. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +34 -0
  108. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  109. package/dist/esm/models/RightsizingClusterListResponse.d.ts +35 -0
  110. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  111. package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -2
  112. package/dist/esm/models/RightsizingClusterResponse.js +1 -1
  113. package/dist/esm/models/RightsizingClusterUtilization.d.ts +15 -13
  114. package/dist/esm/models/RightsizingClusterUtilization.js +1 -1
  115. package/dist/esm/models/RightsizingCollectRequest.d.ts +56 -0
  116. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  117. package/dist/esm/models/RightsizingMetricStats.d.ts +50 -0
  118. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  119. package/dist/esm/models/RightsizingReport.d.ts +63 -0
  120. package/dist/esm/models/RightsizingReport.js +76 -0
  121. package/dist/esm/models/RightsizingReportListResponse.d.ts +35 -0
  122. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  123. package/dist/esm/models/RightsizingReportSummary.d.ts +58 -0
  124. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  125. package/dist/esm/models/RightsizingVMReport.d.ts +45 -0
  126. package/dist/esm/models/RightsizingVMReport.js +57 -0
  127. package/dist/esm/models/StartInspectionRequest.d.ts +8 -3
  128. package/dist/esm/models/StartInspectionRequest.js +4 -1
  129. package/dist/esm/models/StopForecasterPair202Response.d.ts +1 -1
  130. package/dist/esm/models/StopForecasterPair202Response.js +1 -1
  131. package/dist/esm/models/StorageIoConfiguration.d.ts +1 -1
  132. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  133. package/dist/esm/models/UpdateGroupRequest.d.ts +4 -4
  134. package/dist/esm/models/UpdateGroupRequest.js +1 -1
  135. package/dist/esm/models/UpdateInventory.d.ts +3 -3
  136. package/dist/esm/models/UpdateInventory.js +4 -4
  137. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +1 -1
  138. package/dist/esm/models/UpdateLabelVMsRequest.js +1 -1
  139. package/dist/esm/models/VCenter.d.ts +1 -1
  140. package/dist/esm/models/VCenter.js +1 -1
  141. package/dist/esm/models/VMDevice.d.ts +30 -0
  142. package/dist/esm/models/{VirtualMachineDevice.js → VMDevice.js} +9 -9
  143. package/dist/esm/models/VMDisk.d.ts +54 -0
  144. package/dist/esm/models/{VirtualMachineDisk.js → VMDisk.js} +9 -9
  145. package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -1
  146. package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
  147. package/dist/esm/models/VMIssue.d.ts +50 -0
  148. package/dist/esm/models/{VirtualMachineIssue.js → VMIssue.js} +16 -16
  149. package/dist/esm/models/VMLabelsResponse.d.ts +1 -1
  150. package/dist/esm/models/VMLabelsResponse.js +1 -1
  151. package/dist/esm/models/VMNIC.d.ts +46 -0
  152. package/dist/esm/models/{VirtualMachineNIC.js → VMNIC.js} +13 -9
  153. package/dist/esm/models/VMResourceBreakdown.d.ts +1 -1
  154. package/dist/esm/models/VMResourceBreakdown.js +1 -1
  155. package/dist/esm/models/VMs.d.ts +1 -1
  156. package/dist/esm/models/VMs.js +1 -1
  157. package/dist/esm/models/VcenterCredentials.d.ts +1 -1
  158. package/dist/esm/models/VcenterCredentials.js +1 -1
  159. package/dist/esm/models/VddkProperties.d.ts +2 -2
  160. package/dist/esm/models/VddkProperties.js +1 -1
  161. package/dist/esm/models/VersionInfo.d.ts +4 -4
  162. package/dist/esm/models/VersionInfo.js +1 -1
  163. package/dist/esm/models/VirtualMachine.d.ts +11 -15
  164. package/dist/esm/models/VirtualMachine.js +6 -10
  165. package/dist/esm/models/VirtualMachineDetail.d.ts +38 -42
  166. package/dist/esm/models/VirtualMachineDetail.js +16 -20
  167. package/dist/esm/models/VirtualMachineListResponse.d.ts +3 -3
  168. package/dist/esm/models/VirtualMachineListResponse.js +4 -4
  169. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +1 -1
  170. package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
  171. package/dist/esm/models/VmInspectionConcern.d.ts +38 -0
  172. package/dist/esm/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +9 -9
  173. package/dist/esm/models/VmInspectionResults.d.ts +31 -0
  174. package/dist/esm/models/VmInspectionResults.js +42 -0
  175. package/dist/esm/models/VmInspectionStatus.d.ts +53 -0
  176. package/dist/esm/models/VmInspectionStatus.js +61 -0
  177. package/dist/esm/models/VmUtilizationDetails.d.ts +8 -8
  178. package/dist/esm/models/VmUtilizationDetails.js +1 -1
  179. package/dist/esm/models/index.d.ts +23 -20
  180. package/dist/esm/models/index.js +23 -20
  181. package/dist/esm/runtime.d.ts +1 -1
  182. package/dist/esm/runtime.js +2 -2
  183. package/dist/models/AgentModeRequest.d.ts +1 -1
  184. package/dist/models/AgentModeRequest.js +1 -1
  185. package/dist/models/AgentStatus.d.ts +15 -4
  186. package/dist/models/AgentStatus.js +14 -6
  187. package/dist/models/ApplicationListResponse.d.ts +1 -1
  188. package/dist/models/ApplicationListResponse.js +1 -1
  189. package/dist/models/ApplicationOverview.d.ts +4 -4
  190. package/dist/models/ApplicationOverview.js +1 -1
  191. package/dist/models/ApplicationVM.d.ts +3 -3
  192. package/dist/models/ApplicationVM.js +1 -1
  193. package/dist/models/BatchUpdateExclusionRequest.d.ts +1 -1
  194. package/dist/models/BatchUpdateExclusionRequest.js +1 -1
  195. package/dist/models/BenchmarkRun.d.ts +6 -6
  196. package/dist/models/BenchmarkRun.js +5 -7
  197. package/dist/models/CapabilityStatus.d.ts +1 -1
  198. package/dist/models/CapabilityStatus.js +1 -1
  199. package/dist/models/CapabilityStatusCapabilities.d.ts +1 -1
  200. package/dist/models/CapabilityStatusCapabilities.js +1 -1
  201. package/dist/models/ClusterFeatures.d.ts +1 -1
  202. package/dist/models/ClusterFeatures.js +1 -1
  203. package/dist/models/ClusterUtilization.d.ts +1 -1
  204. package/dist/models/ClusterUtilization.js +1 -1
  205. package/dist/models/CollectorStartRequest.d.ts +46 -0
  206. package/dist/models/CollectorStartRequest.js +56 -0
  207. package/dist/models/CollectorStatus.d.ts +1 -2
  208. package/dist/models/CollectorStatus.js +1 -2
  209. package/dist/models/CreateGroupRequest.d.ts +4 -4
  210. package/dist/models/CreateGroupRequest.js +1 -1
  211. package/dist/models/CredentialStatus.d.ts +1 -1
  212. package/dist/models/CredentialStatus.js +1 -1
  213. package/dist/models/Datastore.d.ts +1 -1
  214. package/dist/models/Datastore.js +1 -1
  215. package/dist/models/DatastoreDetail.d.ts +17 -7
  216. package/dist/models/DatastoreDetail.js +11 -1
  217. package/dist/models/DatastorePair.d.ts +42 -0
  218. package/dist/models/{DatastorePairRequest.js → DatastorePair.js} +14 -14
  219. package/dist/models/DeleteLabelGloballyResponse.d.ts +5 -5
  220. package/dist/models/DeleteLabelGloballyResponse.js +5 -5
  221. package/dist/models/DiskSizeTierSummary.d.ts +1 -1
  222. package/dist/models/DiskSizeTierSummary.js +1 -1
  223. package/dist/models/DiskTypeSummary.d.ts +1 -1
  224. package/dist/models/DiskTypeSummary.js +1 -1
  225. package/dist/models/EstimateRange.d.ts +8 -8
  226. package/dist/models/EstimateRange.js +4 -10
  227. package/dist/models/ExportInventory400Response.d.ts +30 -0
  228. package/dist/models/ExportInventory400Response.js +48 -0
  229. package/dist/models/ExportInventory500Response.d.ts +30 -0
  230. package/dist/models/ExportInventory500Response.js +48 -0
  231. package/dist/models/ForecastStats.d.ts +11 -11
  232. package/dist/models/ForecastStats.js +17 -33
  233. package/dist/models/ForecasterDatastoresRequest.d.ts +31 -0
  234. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  235. package/dist/models/ForecasterPairStatus.d.ts +78 -0
  236. package/dist/models/{ForecastPairStatus.js → ForecasterPairStatus.js} +28 -28
  237. package/dist/models/ForecasterStartRequest.d.ts +48 -0
  238. package/dist/models/ForecasterStartRequest.js +60 -0
  239. package/dist/models/ForecasterStatus.d.ts +7 -7
  240. package/dist/models/ForecasterStatus.js +6 -8
  241. package/dist/models/GetInventory200Response.d.ts +23 -0
  242. package/dist/models/GetInventory200Response.js +57 -0
  243. package/dist/models/Group.d.ts +4 -4
  244. package/dist/models/Group.js +1 -1
  245. package/dist/models/GroupListResponse.d.ts +4 -4
  246. package/dist/models/GroupListResponse.js +1 -1
  247. package/dist/models/GroupResponse.d.ts +6 -6
  248. package/dist/models/GroupResponse.js +4 -4
  249. package/dist/models/GuestNetwork.d.ts +6 -6
  250. package/dist/models/GuestNetwork.js +1 -1
  251. package/dist/models/Histogram.d.ts +1 -1
  252. package/dist/models/Histogram.js +1 -1
  253. package/dist/models/Host.d.ts +1 -1
  254. package/dist/models/Host.js +1 -1
  255. package/dist/models/Infra.d.ts +1 -1
  256. package/dist/models/Infra.js +1 -1
  257. package/dist/models/InspectorStatus.d.ts +1 -1
  258. package/dist/models/InspectorStatus.js +1 -1
  259. package/dist/models/Inventory.d.ts +17 -3
  260. package/dist/models/Inventory.js +14 -5
  261. package/dist/models/InventoryData.d.ts +1 -1
  262. package/dist/models/InventoryData.js +1 -1
  263. package/dist/models/IssuesBreakdown.d.ts +1 -1
  264. package/dist/models/IssuesBreakdown.js +1 -1
  265. package/dist/models/MigrationIssue.d.ts +1 -1
  266. package/dist/models/MigrationIssue.js +1 -1
  267. package/dist/models/Network.d.ts +1 -1
  268. package/dist/models/Network.js +1 -1
  269. package/dist/models/OperationCapability.d.ts +1 -1
  270. package/dist/models/OperationCapability.js +1 -1
  271. package/dist/models/OsInfo.d.ts +1 -1
  272. package/dist/models/OsInfo.js +1 -1
  273. package/dist/models/PairCapability.d.ts +13 -3
  274. package/dist/models/PairCapability.js +11 -1
  275. package/dist/models/PairCapabilityRequest.d.ts +8 -3
  276. package/dist/models/PairCapabilityRequest.js +7 -4
  277. package/dist/models/Process.d.ts +1 -1
  278. package/dist/models/Process.js +1 -1
  279. package/dist/models/PutForecasterCredentials403Response.d.ts +34 -0
  280. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  281. package/dist/models/RightsizingClusterListResponse.d.ts +35 -0
  282. package/dist/models/RightsizingClusterListResponse.js +55 -0
  283. package/dist/models/RightsizingClusterResponse.d.ts +2 -2
  284. package/dist/models/RightsizingClusterResponse.js +1 -1
  285. package/dist/models/RightsizingClusterUtilization.d.ts +15 -13
  286. package/dist/models/RightsizingClusterUtilization.js +1 -1
  287. package/dist/models/RightsizingCollectRequest.d.ts +56 -0
  288. package/dist/models/RightsizingCollectRequest.js +63 -0
  289. package/dist/models/RightsizingMetricStats.d.ts +50 -0
  290. package/dist/models/RightsizingMetricStats.js +70 -0
  291. package/dist/models/RightsizingReport.d.ts +63 -0
  292. package/dist/models/RightsizingReport.js +83 -0
  293. package/dist/models/RightsizingReportListResponse.d.ts +35 -0
  294. package/dist/models/RightsizingReportListResponse.js +55 -0
  295. package/dist/models/RightsizingReportSummary.d.ts +58 -0
  296. package/dist/models/RightsizingReportSummary.js +78 -0
  297. package/dist/models/RightsizingVMReport.d.ts +45 -0
  298. package/dist/models/RightsizingVMReport.js +64 -0
  299. package/dist/models/StartInspectionRequest.d.ts +8 -3
  300. package/dist/models/StartInspectionRequest.js +4 -1
  301. package/dist/models/StopForecasterPair202Response.d.ts +1 -1
  302. package/dist/models/StopForecasterPair202Response.js +1 -1
  303. package/dist/models/StorageIoConfiguration.d.ts +1 -1
  304. package/dist/models/StorageIoConfiguration.js +1 -1
  305. package/dist/models/UpdateGroupRequest.d.ts +4 -4
  306. package/dist/models/UpdateGroupRequest.js +1 -1
  307. package/dist/models/UpdateInventory.d.ts +3 -3
  308. package/dist/models/UpdateInventory.js +4 -4
  309. package/dist/models/UpdateLabelVMsRequest.d.ts +1 -1
  310. package/dist/models/UpdateLabelVMsRequest.js +1 -1
  311. package/dist/models/VCenter.d.ts +1 -1
  312. package/dist/models/VCenter.js +1 -1
  313. package/dist/models/VMDevice.d.ts +30 -0
  314. package/dist/models/VMDevice.js +48 -0
  315. package/dist/models/VMDisk.d.ts +54 -0
  316. package/dist/models/{VirtualMachineDisk.js → VMDisk.js} +14 -14
  317. package/dist/models/VMFilterOptionsResponse.d.ts +1 -1
  318. package/dist/models/VMFilterOptionsResponse.js +1 -1
  319. package/dist/models/VMIssue.d.ts +50 -0
  320. package/dist/models/VMIssue.js +70 -0
  321. package/dist/models/VMLabelsResponse.d.ts +1 -1
  322. package/dist/models/VMLabelsResponse.js +1 -1
  323. package/dist/models/VMNIC.d.ts +46 -0
  324. package/dist/models/{VirtualMachineNIC.js → VMNIC.js} +18 -14
  325. package/dist/models/VMResourceBreakdown.d.ts +1 -1
  326. package/dist/models/VMResourceBreakdown.js +1 -1
  327. package/dist/models/VMs.d.ts +1 -1
  328. package/dist/models/VMs.js +1 -1
  329. package/dist/models/VcenterCredentials.d.ts +1 -1
  330. package/dist/models/VcenterCredentials.js +1 -1
  331. package/dist/models/VddkProperties.d.ts +2 -2
  332. package/dist/models/VddkProperties.js +1 -1
  333. package/dist/models/VersionInfo.d.ts +4 -4
  334. package/dist/models/VersionInfo.js +1 -1
  335. package/dist/models/VirtualMachine.d.ts +11 -15
  336. package/dist/models/VirtualMachine.js +6 -10
  337. package/dist/models/VirtualMachineDetail.d.ts +38 -42
  338. package/dist/models/VirtualMachineDetail.js +16 -20
  339. package/dist/models/VirtualMachineListResponse.d.ts +3 -3
  340. package/dist/models/VirtualMachineListResponse.js +4 -4
  341. package/dist/models/VirtualMachineUpdateRequest.d.ts +1 -1
  342. package/dist/models/VirtualMachineUpdateRequest.js +1 -1
  343. package/dist/models/VmInspectionConcern.d.ts +38 -0
  344. package/dist/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +14 -14
  345. package/dist/models/VmInspectionResults.d.ts +31 -0
  346. package/dist/models/VmInspectionResults.js +49 -0
  347. package/dist/models/VmInspectionStatus.d.ts +53 -0
  348. package/dist/models/VmInspectionStatus.js +69 -0
  349. package/dist/models/VmUtilizationDetails.d.ts +8 -8
  350. package/dist/models/VmUtilizationDetails.js +1 -1
  351. package/dist/models/index.d.ts +23 -20
  352. package/dist/models/index.js +23 -20
  353. package/dist/runtime.d.ts +1 -1
  354. package/dist/runtime.js +2 -2
  355. package/docs/AgentStatus.md +4 -2
  356. package/docs/BenchmarkRun.md +2 -2
  357. package/docs/{CollectionAggregate.md → CollectorStartRequest.md} +15 -16
  358. package/docs/{DatastorePairRequest.md → DatastorePair.md} +4 -4
  359. package/docs/DefaultApi.md +3361 -0
  360. package/docs/DeleteLabelGloballyResponse.md +2 -2
  361. package/docs/EstimateRange.md +1 -0
  362. package/docs/{AgentStatusConsoleConnection.md → ExportInventory400Response.md} +5 -7
  363. package/docs/{InspectionStatus.md → ExportInventory500Response.md} +4 -6
  364. package/docs/ForecastStats.md +16 -16
  365. package/docs/{Collection.md → ForecasterDatastoresRequest.md} +6 -10
  366. package/docs/{ForecastPairStatus.md → ForecasterPairStatus.md} +8 -8
  367. package/docs/{StartForecasterRequest.md → ForecasterStartRequest.md} +7 -5
  368. package/docs/ForecasterStatus.md +1 -1
  369. package/docs/{Inventory1.md → GetInventory200Response.md} +8 -4
  370. package/docs/GroupResponse.md +1 -1
  371. package/docs/Inventory.md +8 -2
  372. package/docs/PairCapabilityRequest.md +3 -1
  373. package/docs/PutForecasterCredentials403Response.md +36 -0
  374. package/docs/RightsizingClusterListResponse.md +36 -0
  375. package/docs/RightsizingCollectRequest.md +46 -0
  376. package/docs/{CollectionListResponse.md → RightsizingMetricStats.md} +16 -6
  377. package/docs/RightsizingReport.md +50 -0
  378. package/docs/{ComparisonDiffPage.md → RightsizingReportListResponse.md} +6 -10
  379. package/docs/RightsizingReportSummary.md +49 -0
  380. package/docs/RightsizingVMReport.md +40 -0
  381. package/docs/StartInspectionRequest.md +3 -0
  382. package/docs/UpdateInventory.md +1 -1
  383. package/docs/{VirtualMachineDevice.md → VMDevice.md} +4 -4
  384. package/docs/{VirtualMachineDisk.md → VMDisk.md} +4 -4
  385. package/docs/{VirtualMachineIssue.md → VMIssue.md} +4 -4
  386. package/docs/VMLabelsResponse.md +2 -2
  387. package/docs/{VirtualMachineNIC.md → VMNIC.md} +8 -4
  388. package/docs/VirtualMachine.md +3 -5
  389. package/docs/VirtualMachineDetail.md +5 -7
  390. package/docs/VirtualMachineListResponse.md +2 -2
  391. package/docs/VirtualMachineUpdateRequest.md +2 -2
  392. package/docs/{VirtualMachineInspectionConcern.md → VmInspectionConcern.md} +5 -4
  393. package/docs/{ComparisonDiffEntry.md → VmInspectionResults.md} +7 -10
  394. package/docs/VmInspectionStatus.md +40 -0
  395. package/package.json +1 -1
  396. package/src/apis/DefaultApi.ts +3986 -0
  397. package/src/apis/index.ts +1 -12
  398. package/src/models/AgentModeRequest.ts +1 -1
  399. package/src/models/AgentStatus.ts +21 -14
  400. package/src/models/ApplicationListResponse.ts +1 -1
  401. package/src/models/ApplicationOverview.ts +4 -4
  402. package/src/models/ApplicationVM.ts +3 -3
  403. package/src/models/BatchUpdateExclusionRequest.ts +1 -1
  404. package/src/models/BenchmarkRun.ts +10 -11
  405. package/src/models/CapabilityStatus.ts +1 -1
  406. package/src/models/CapabilityStatusCapabilities.ts +1 -1
  407. package/src/models/ClusterFeatures.ts +1 -1
  408. package/src/models/ClusterUtilization.ts +1 -1
  409. package/src/models/CollectorStartRequest.ts +87 -0
  410. package/src/models/CollectorStatus.ts +1 -2
  411. package/src/models/CreateGroupRequest.ts +4 -4
  412. package/src/models/CredentialStatus.ts +1 -1
  413. package/src/models/Datastore.ts +1 -1
  414. package/src/models/DatastoreDetail.ts +20 -7
  415. package/src/models/{DatastorePairRequest.ts → DatastorePair.ts} +15 -15
  416. package/src/models/DeleteLabelGloballyResponse.ts +8 -8
  417. package/src/models/DiskSizeTierSummary.ts +1 -1
  418. package/src/models/DiskTypeSummary.ts +1 -1
  419. package/src/models/EstimateRange.ts +11 -14
  420. package/src/models/ExportInventory400Response.ts +63 -0
  421. package/src/models/ExportInventory500Response.ts +63 -0
  422. package/src/models/ForecastStats.ts +27 -35
  423. package/src/models/ForecasterDatastoresRequest.ts +71 -0
  424. package/src/models/{ForecastPairStatus.ts → ForecasterPairStatus.ts} +37 -37
  425. package/src/models/ForecasterStartRequest.ts +103 -0
  426. package/src/models/ForecasterStatus.ts +14 -15
  427. package/src/models/GetInventory200Response.ts +76 -0
  428. package/src/models/Group.ts +4 -4
  429. package/src/models/GroupListResponse.ts +4 -4
  430. package/src/models/GroupResponse.ts +13 -13
  431. package/src/models/GuestNetwork.ts +6 -6
  432. package/src/models/Histogram.ts +1 -1
  433. package/src/models/Host.ts +1 -1
  434. package/src/models/Infra.ts +1 -1
  435. package/src/models/InspectorStatus.ts +1 -1
  436. package/src/models/Inventory.ts +30 -11
  437. package/src/models/InventoryData.ts +1 -1
  438. package/src/models/IssuesBreakdown.ts +1 -1
  439. package/src/models/MigrationIssue.ts +1 -1
  440. package/src/models/Network.ts +1 -1
  441. package/src/models/OperationCapability.ts +1 -1
  442. package/src/models/OsInfo.ts +1 -1
  443. package/src/models/PairCapability.ts +16 -3
  444. package/src/models/PairCapabilityRequest.ts +23 -10
  445. package/src/models/Process.ts +1 -1
  446. package/src/models/PutForecasterCredentials403Response.ts +69 -0
  447. package/src/models/RightsizingClusterListResponse.ts +79 -0
  448. package/src/models/RightsizingClusterResponse.ts +2 -2
  449. package/src/models/RightsizingClusterUtilization.ts +15 -13
  450. package/src/models/RightsizingCollectRequest.ts +109 -0
  451. package/src/models/RightsizingMetricStats.ts +99 -0
  452. package/src/models/RightsizingReport.ts +128 -0
  453. package/src/models/RightsizingReportListResponse.ts +79 -0
  454. package/src/models/RightsizingReportSummary.ts +113 -0
  455. package/src/models/RightsizingVMReport.ts +93 -0
  456. package/src/models/StartInspectionRequest.ts +17 -3
  457. package/src/models/StopForecasterPair202Response.ts +1 -1
  458. package/src/models/StorageIoConfiguration.ts +1 -1
  459. package/src/models/UpdateGroupRequest.ts +4 -4
  460. package/src/models/UpdateInventory.ts +10 -10
  461. package/src/models/UpdateLabelVMsRequest.ts +1 -1
  462. package/src/models/VCenter.ts +1 -1
  463. package/src/models/VMDevice.ts +63 -0
  464. package/src/models/{VirtualMachineDisk.ts → VMDisk.ts} +17 -17
  465. package/src/models/VMFilterOptionsResponse.ts +1 -1
  466. package/src/models/VMIssue.ts +93 -0
  467. package/src/models/VMLabelsResponse.ts +1 -1
  468. package/src/models/VMNIC.ts +87 -0
  469. package/src/models/VMResourceBreakdown.ts +1 -1
  470. package/src/models/VMs.ts +1 -1
  471. package/src/models/VcenterCredentials.ts +1 -1
  472. package/src/models/VddkProperties.ts +2 -2
  473. package/src/models/VersionInfo.ts +4 -4
  474. package/src/models/VirtualMachine.ts +20 -27
  475. package/src/models/VirtualMachineDetail.ts +73 -80
  476. package/src/models/VirtualMachineListResponse.ts +6 -6
  477. package/src/models/VirtualMachineUpdateRequest.ts +1 -1
  478. package/src/models/{VirtualMachineInspectionConcern.ts → VmInspectionConcern.ts} +12 -12
  479. package/src/models/VmInspectionResults.ts +71 -0
  480. package/src/models/VmInspectionStatus.ts +97 -0
  481. package/src/models/VmUtilizationDetails.ts +8 -8
  482. package/src/models/index.ts +23 -20
  483. package/src/runtime.ts +2 -2
  484. package/dist/apis/AgentApi.d.ts +0 -95
  485. package/dist/apis/AgentApi.js +0 -109
  486. package/dist/apis/ApplicationsApi.d.ts +0 -64
  487. package/dist/apis/ApplicationsApi.js +0 -72
  488. package/dist/apis/CollectionsApi.d.ts +0 -217
  489. package/dist/apis/CollectionsApi.js +0 -216
  490. package/dist/apis/CollectorApi.d.ts +0 -116
  491. package/dist/apis/CollectorApi.js +0 -137
  492. package/dist/apis/CredentialsApi.d.ts +0 -168
  493. package/dist/apis/CredentialsApi.js +0 -187
  494. package/dist/apis/ForecasterApi.d.ts +0 -375
  495. package/dist/apis/ForecasterApi.js +0 -397
  496. package/dist/apis/GroupsApi.d.ts +0 -374
  497. package/dist/apis/GroupsApi.js +0 -351
  498. package/dist/apis/InspectorApi.d.ts +0 -202
  499. package/dist/apis/InspectorApi.js +0 -240
  500. package/dist/apis/InventoriesApi.d.ts +0 -94
  501. package/dist/apis/InventoriesApi.js +0 -107
  502. package/dist/apis/RightsizingApi.d.ts +0 -109
  503. package/dist/apis/RightsizingApi.js +0 -116
  504. package/dist/apis/VersionApi.d.ts +0 -56
  505. package/dist/apis/VersionApi.js +0 -68
  506. package/dist/apis/VirtualMachinesApi.d.ts +0 -578
  507. package/dist/apis/VirtualMachinesApi.js +0 -576
  508. package/dist/esm/apis/AgentApi.d.ts +0 -95
  509. package/dist/esm/apis/AgentApi.js +0 -105
  510. package/dist/esm/apis/ApplicationsApi.d.ts +0 -64
  511. package/dist/esm/apis/ApplicationsApi.js +0 -68
  512. package/dist/esm/apis/CollectionsApi.d.ts +0 -217
  513. package/dist/esm/apis/CollectionsApi.js +0 -212
  514. package/dist/esm/apis/CollectorApi.d.ts +0 -116
  515. package/dist/esm/apis/CollectorApi.js +0 -133
  516. package/dist/esm/apis/CredentialsApi.d.ts +0 -168
  517. package/dist/esm/apis/CredentialsApi.js +0 -183
  518. package/dist/esm/apis/ForecasterApi.d.ts +0 -375
  519. package/dist/esm/apis/ForecasterApi.js +0 -393
  520. package/dist/esm/apis/GroupsApi.d.ts +0 -374
  521. package/dist/esm/apis/GroupsApi.js +0 -347
  522. package/dist/esm/apis/InspectorApi.d.ts +0 -202
  523. package/dist/esm/apis/InspectorApi.js +0 -236
  524. package/dist/esm/apis/InventoriesApi.d.ts +0 -94
  525. package/dist/esm/apis/InventoriesApi.js +0 -103
  526. package/dist/esm/apis/RightsizingApi.d.ts +0 -109
  527. package/dist/esm/apis/RightsizingApi.js +0 -112
  528. package/dist/esm/apis/VersionApi.d.ts +0 -56
  529. package/dist/esm/apis/VersionApi.js +0 -64
  530. package/dist/esm/apis/VirtualMachinesApi.d.ts +0 -578
  531. package/dist/esm/apis/VirtualMachinesApi.js +0 -572
  532. package/dist/esm/models/AgentStatusConsoleConnection.d.ts +0 -42
  533. package/dist/esm/models/AgentStatusConsoleConnection.js +0 -52
  534. package/dist/esm/models/Collection.d.ts +0 -38
  535. package/dist/esm/models/Collection.js +0 -51
  536. package/dist/esm/models/CollectionAggregate.d.ts +0 -50
  537. package/dist/esm/models/CollectionAggregate.js +0 -63
  538. package/dist/esm/models/CollectionComparisonDiff.d.ts +0 -48
  539. package/dist/esm/models/CollectionComparisonDiff.js +0 -60
  540. package/dist/esm/models/CollectionComparisonSummary.d.ts +0 -36
  541. package/dist/esm/models/CollectionComparisonSummary.js +0 -49
  542. package/dist/esm/models/CollectionComparisonSummaryDiff.d.ts +0 -43
  543. package/dist/esm/models/CollectionComparisonSummaryDiff.js +0 -56
  544. package/dist/esm/models/CollectionListResponse.d.ts +0 -31
  545. package/dist/esm/models/CollectionListResponse.js +0 -44
  546. package/dist/esm/models/ComparisonDiffEntry.d.ts +0 -38
  547. package/dist/esm/models/ComparisonDiffEntry.js +0 -47
  548. package/dist/esm/models/ComparisonDiffPage.d.ts +0 -42
  549. package/dist/esm/models/ComparisonDiffPage.js +0 -55
  550. package/dist/esm/models/DatastorePairRequest.d.ts +0 -42
  551. package/dist/esm/models/ForecastPairStatus.d.ts +0 -78
  552. package/dist/esm/models/InspectionStatus.d.ts +0 -45
  553. package/dist/esm/models/InspectionStatus.js +0 -55
  554. package/dist/esm/models/Inventory1.d.ts +0 -45
  555. package/dist/esm/models/Inventory1.js +0 -53
  556. package/dist/esm/models/StartForecasterRequest.d.ts +0 -43
  557. package/dist/esm/models/VirtualMachineDevice.d.ts +0 -30
  558. package/dist/esm/models/VirtualMachineDisk.d.ts +0 -54
  559. package/dist/esm/models/VirtualMachineInspectionConcern.d.ts +0 -38
  560. package/dist/esm/models/VirtualMachineInspectionResults.d.ts +0 -31
  561. package/dist/esm/models/VirtualMachineInspectionResults.js +0 -42
  562. package/dist/esm/models/VirtualMachineIssue.d.ts +0 -50
  563. package/dist/esm/models/VirtualMachineNIC.d.ts +0 -38
  564. package/dist/models/AgentStatusConsoleConnection.d.ts +0 -42
  565. package/dist/models/AgentStatusConsoleConnection.js +0 -60
  566. package/dist/models/Collection.d.ts +0 -38
  567. package/dist/models/Collection.js +0 -58
  568. package/dist/models/CollectionAggregate.d.ts +0 -50
  569. package/dist/models/CollectionAggregate.js +0 -70
  570. package/dist/models/CollectionComparisonDiff.d.ts +0 -48
  571. package/dist/models/CollectionComparisonDiff.js +0 -68
  572. package/dist/models/CollectionComparisonSummary.d.ts +0 -36
  573. package/dist/models/CollectionComparisonSummary.js +0 -56
  574. package/dist/models/CollectionComparisonSummaryDiff.d.ts +0 -43
  575. package/dist/models/CollectionComparisonSummaryDiff.js +0 -63
  576. package/dist/models/CollectionListResponse.d.ts +0 -31
  577. package/dist/models/CollectionListResponse.js +0 -51
  578. package/dist/models/ComparisonDiffEntry.d.ts +0 -38
  579. package/dist/models/ComparisonDiffEntry.js +0 -54
  580. package/dist/models/ComparisonDiffPage.d.ts +0 -42
  581. package/dist/models/ComparisonDiffPage.js +0 -62
  582. package/dist/models/DatastorePairRequest.d.ts +0 -42
  583. package/dist/models/ForecastPairStatus.d.ts +0 -78
  584. package/dist/models/InspectionStatus.d.ts +0 -45
  585. package/dist/models/InspectionStatus.js +0 -63
  586. package/dist/models/Inventory1.d.ts +0 -45
  587. package/dist/models/Inventory1.js +0 -60
  588. package/dist/models/StartForecasterRequest.d.ts +0 -43
  589. package/dist/models/StartForecasterRequest.js +0 -57
  590. package/dist/models/VirtualMachineDevice.d.ts +0 -30
  591. package/dist/models/VirtualMachineDevice.js +0 -48
  592. package/dist/models/VirtualMachineDisk.d.ts +0 -54
  593. package/dist/models/VirtualMachineInspectionConcern.d.ts +0 -38
  594. package/dist/models/VirtualMachineInspectionResults.d.ts +0 -31
  595. package/dist/models/VirtualMachineInspectionResults.js +0 -49
  596. package/dist/models/VirtualMachineIssue.d.ts +0 -50
  597. package/dist/models/VirtualMachineIssue.js +0 -70
  598. package/dist/models/VirtualMachineNIC.d.ts +0 -38
  599. package/docs/AgentApi.md +0 -136
  600. package/docs/ApplicationsApi.md +0 -76
  601. package/docs/CollectionComparisonDiff.md +0 -38
  602. package/docs/CollectionComparisonSummary.md +0 -36
  603. package/docs/CollectionComparisonSummaryDiff.md +0 -41
  604. package/docs/CollectionsApi.md +0 -291
  605. package/docs/CollectorApi.md +0 -187
  606. package/docs/CredentialsApi.md +0 -264
  607. package/docs/ForecasterApi.md +0 -612
  608. package/docs/GroupsApi.md +0 -527
  609. package/docs/InspectorApi.md +0 -334
  610. package/docs/InventoriesApi.md +0 -136
  611. package/docs/RightsizingApi.md +0 -148
  612. package/docs/VersionApi.md +0 -66
  613. package/docs/VirtualMachineInspectionResults.md +0 -35
  614. package/docs/VirtualMachinesApi.md +0 -914
  615. package/src/apis/AgentApi.ts +0 -176
  616. package/src/apis/ApplicationsApi.ts +0 -111
  617. package/src/apis/CollectionsApi.ts +0 -411
  618. package/src/apis/CollectorApi.ts +0 -209
  619. package/src/apis/CredentialsApi.ts +0 -308
  620. package/src/apis/ForecasterApi.ts +0 -721
  621. package/src/apis/GroupsApi.ts +0 -718
  622. package/src/apis/InspectorApi.ts +0 -405
  623. package/src/apis/InventoriesApi.ts +0 -169
  624. package/src/apis/RightsizingApi.ts +0 -205
  625. package/src/apis/VersionApi.ts +0 -94
  626. package/src/apis/VirtualMachinesApi.ts +0 -1142
  627. package/src/models/AgentStatusConsoleConnection.ts +0 -81
  628. package/src/models/Collection.ts +0 -78
  629. package/src/models/CollectionAggregate.ts +0 -99
  630. package/src/models/CollectionComparisonDiff.ts +0 -98
  631. package/src/models/CollectionComparisonSummary.ts +0 -86
  632. package/src/models/CollectionComparisonSummaryDiff.ts +0 -93
  633. package/src/models/CollectionListResponse.ts +0 -72
  634. package/src/models/ComparisonDiffEntry.ts +0 -76
  635. package/src/models/ComparisonDiffPage.ts +0 -85
  636. package/src/models/InspectionStatus.ts +0 -84
  637. package/src/models/Inventory1.ts +0 -91
  638. package/src/models/StartForecasterRequest.ts +0 -90
  639. package/src/models/VirtualMachineDevice.ts +0 -63
  640. package/src/models/VirtualMachineInspectionResults.ts +0 -71
  641. package/src/models/VirtualMachineIssue.ts +0 -93
  642. package/src/models/VirtualMachineNIC.ts +0 -75
@@ -0,0 +1,3361 @@
1
+ # DefaultApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**batchUpdateVMExclusion**](DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status |
8
+ | [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
9
+ | [**deleteCredentials**](DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials |
10
+ | [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
11
+ | [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
12
+ | [**deleteLabelGlobally**](DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs |
13
+ | [**exportInventory**](DefaultApi.md#exportinventory) | **GET** /export | Export VM inventory and migration planning data |
14
+ | [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
15
+ | [**getApplications**](DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs |
16
+ | [**getClusterUtilization**](DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID |
17
+ | [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
18
+ | [**getCredentialCapabilities**](DefaultApi.md#getcredentialcapabilities) | **GET** /credentials/capabilities | Check vSphere operation capabilities |
19
+ | [**getCredentials**](DefaultApi.md#getcredentials) | **GET** /credentials | Get stored credential status |
20
+ | [**getForecasterDatastores**](DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores |
21
+ | [**getForecasterRuns**](DefaultApi.md#getforecasterruns) | **GET** /forecaster/runs | List benchmark runs |
22
+ | [**getForecasterStats**](DefaultApi.md#getforecasterstats) | **GET** /forecaster/stats | Get throughput statistics |
23
+ | [**getForecasterStatus**](DefaultApi.md#getforecasterstatus) | **GET** /forecaster | Poll forecaster status |
24
+ | [**getGroup**](DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs |
25
+ | [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
26
+ | [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
27
+ | [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
28
+ | [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics |
29
+ | [**getRightsizingReportCluster**](DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report |
30
+ | [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
31
+ | [**getVMLabels**](DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs |
32
+ | [**getVMUtilization**](DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM |
33
+ | [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
34
+ | [**getVMsFilterOptions**](DefaultApi.md#getvmsfilteroptions) | **GET** /vms/filter-options | Get distinct filter option values for VMs |
35
+ | [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
36
+ | [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
37
+ | [**listRightsizingReportClusters**](DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report |
38
+ | [**listRightsizingReports**](DefaultApi.md#listrightsizingreports) | **GET** /rightsizing | List all rightsizing reports |
39
+ | [**postForecasterPairCapabilities**](DefaultApi.md#postforecasterpaircapabilities) | **POST** /forecaster/capabilities | Compute pair capabilities |
40
+ | [**putCredentials**](DefaultApi.md#putcredentials) | **PUT** /credentials | Store vCenter credentials |
41
+ | [**putForecasterCredentials**](DefaultApi.md#putforecastercredentials) | **PUT** /forecaster/credentials | Verify vCenter credentials and permissions |
42
+ | [**putInspectorVddk**](DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball |
43
+ | [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue |
44
+ | [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
45
+ | [**startCollector**](DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection |
46
+ | [**startForecaster**](DefaultApi.md#startforecaster) | **POST** /forecaster | Start benchmark |
47
+ | [**startInspection**](DefaultApi.md#startinspectionoperation) | **POST** /inspector | Start inspection for VMs |
48
+ | [**stopCollector**](DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection |
49
+ | [**stopForecaster**](DefaultApi.md#stopforecaster) | **DELETE** /forecaster | Cancel benchmark |
50
+ | [**stopForecasterPair**](DefaultApi.md#stopforecasterpair) | **DELETE** /forecaster/pairs/{name} | Cancel a single pair |
51
+ | [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely |
52
+ | [**triggerRightsizingCollection**](DefaultApi.md#triggerrightsizingcollection) | **POST** /rightsizing | Trigger rightsizing metrics collection |
53
+ | [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
54
+ | [**updateLabelVMs**](DefaultApi.md#updatelabelvmsoperation) | **PATCH** /vms/labels/{label} | Modify label VM membership (add/remove label to/from VMs) |
55
+ | [**updateVM**](DefaultApi.md#updatevm) | **PATCH** /vms/{id} | Update VM properties |
56
+ | [**validateInspectorCredentials**](DefaultApi.md#validateinspectorcredentials) | **POST** /inspector/credentials | Validate vCenter credentials for inspector |
57
+
58
+
59
+
60
+ ## batchUpdateVMExclusion
61
+
62
+ > batchUpdateVMExclusion(batchUpdateExclusionRequest)
63
+
64
+ Batch update VM exclusion status
65
+
66
+ ### Example
67
+
68
+ ```ts
69
+ import {
70
+ Configuration,
71
+ DefaultApi,
72
+ } from '@openshift-migration-advisor/agent-sdk';
73
+ import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
74
+
75
+ async function example() {
76
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
77
+ const api = new DefaultApi();
78
+
79
+ const body = {
80
+ // BatchUpdateExclusionRequest
81
+ batchUpdateExclusionRequest: ...,
82
+ } satisfies BatchUpdateVMExclusionRequest;
83
+
84
+ try {
85
+ const data = await api.batchUpdateVMExclusion(body);
86
+ console.log(data);
87
+ } catch (error) {
88
+ console.error(error);
89
+ }
90
+ }
91
+
92
+ // Run the test
93
+ example().catch(console.error);
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+
99
+ | Name | Type | Description | Notes |
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **batchUpdateExclusionRequest** | [BatchUpdateExclusionRequest](BatchUpdateExclusionRequest.md) | | |
102
+
103
+ ### Return type
104
+
105
+ `void` (Empty response body)
106
+
107
+ ### Authorization
108
+
109
+ No authorization required
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: `application/json`
114
+ - **Accept**: Not defined
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ | **200** | All VMs updated successfully | - |
121
+ | **400** | Invalid request | - |
122
+ | **404** | One or more VMs not found | - |
123
+ | **500** | Internal server error | - |
124
+
125
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
126
+
127
+
128
+ ## createGroup
129
+
130
+ > Group createGroup(createGroupRequest)
131
+
132
+ Create a new group
133
+
134
+ ### Example
135
+
136
+ ```ts
137
+ import {
138
+ Configuration,
139
+ DefaultApi,
140
+ } from '@openshift-migration-advisor/agent-sdk';
141
+ import type { CreateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
142
+
143
+ async function example() {
144
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
145
+ const api = new DefaultApi();
146
+
147
+ const body = {
148
+ // CreateGroupRequest
149
+ createGroupRequest: ...,
150
+ } satisfies CreateGroupOperationRequest;
151
+
152
+ try {
153
+ const data = await api.createGroup(body);
154
+ console.log(data);
155
+ } catch (error) {
156
+ console.error(error);
157
+ }
158
+ }
159
+
160
+ // Run the test
161
+ example().catch(console.error);
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+
167
+ | Name | Type | Description | Notes |
168
+ |------------- | ------------- | ------------- | -------------|
169
+ | **createGroupRequest** | [CreateGroupRequest](CreateGroupRequest.md) | | |
170
+
171
+ ### Return type
172
+
173
+ [**Group**](Group.md)
174
+
175
+ ### Authorization
176
+
177
+ No authorization required
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: `application/json`
182
+ - **Accept**: `application/json`
183
+
184
+
185
+ ### HTTP response details
186
+ | Status code | Description | Response headers |
187
+ |-------------|-------------|------------------|
188
+ | **201** | Group created | - |
189
+ | **400** | Invalid request (e.g., invalid filter syntax) | - |
190
+ | **500** | Internal server error | - |
191
+
192
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
193
+
194
+
195
+ ## deleteCredentials
196
+
197
+ > deleteCredentials()
198
+
199
+ Delete stored credentials
200
+
201
+ Removes all stored vCenter credentials from the database.
202
+
203
+ ### Example
204
+
205
+ ```ts
206
+ import {
207
+ Configuration,
208
+ DefaultApi,
209
+ } from '@openshift-migration-advisor/agent-sdk';
210
+ import type { DeleteCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
211
+
212
+ async function example() {
213
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
214
+ const api = new DefaultApi();
215
+
216
+ try {
217
+ const data = await api.deleteCredentials();
218
+ console.log(data);
219
+ } catch (error) {
220
+ console.error(error);
221
+ }
222
+ }
223
+
224
+ // Run the test
225
+ example().catch(console.error);
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ This endpoint does not need any parameter.
231
+
232
+ ### Return type
233
+
234
+ `void` (Empty response body)
235
+
236
+ ### Authorization
237
+
238
+ No authorization required
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: Not defined
244
+
245
+
246
+ ### HTTP response details
247
+ | Status code | Description | Response headers |
248
+ |-------------|-------------|------------------|
249
+ | **204** | Credentials deleted | - |
250
+ | **500** | Internal server error | - |
251
+
252
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
253
+
254
+
255
+ ## deleteForecasterRun
256
+
257
+ > deleteForecasterRun(id)
258
+
259
+ Delete a benchmark run
260
+
261
+ ### Example
262
+
263
+ ```ts
264
+ import {
265
+ Configuration,
266
+ DefaultApi,
267
+ } from '@openshift-migration-advisor/agent-sdk';
268
+ import type { DeleteForecasterRunRequest } from '@openshift-migration-advisor/agent-sdk';
269
+
270
+ async function example() {
271
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
272
+ const api = new DefaultApi();
273
+
274
+ const body = {
275
+ // number | Run ID
276
+ id: 789,
277
+ } satisfies DeleteForecasterRunRequest;
278
+
279
+ try {
280
+ const data = await api.deleteForecasterRun(body);
281
+ console.log(data);
282
+ } catch (error) {
283
+ console.error(error);
284
+ }
285
+ }
286
+
287
+ // Run the test
288
+ example().catch(console.error);
289
+ ```
290
+
291
+ ### Parameters
292
+
293
+
294
+ | Name | Type | Description | Notes |
295
+ |------------- | ------------- | ------------- | -------------|
296
+ | **id** | `number` | Run ID | [Defaults to `undefined`] |
297
+
298
+ ### Return type
299
+
300
+ `void` (Empty response body)
301
+
302
+ ### Authorization
303
+
304
+ No authorization required
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: Not defined
309
+ - **Accept**: Not defined
310
+
311
+
312
+ ### HTTP response details
313
+ | Status code | Description | Response headers |
314
+ |-------------|-------------|------------------|
315
+ | **204** | Run deleted | - |
316
+ | **400** | Invalid run ID | - |
317
+ | **404** | Run not found | - |
318
+ | **500** | Internal server error | - |
319
+
320
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
321
+
322
+
323
+ ## deleteGroup
324
+
325
+ > deleteGroup(id)
326
+
327
+ Delete group
328
+
329
+ ### Example
330
+
331
+ ```ts
332
+ import {
333
+ Configuration,
334
+ DefaultApi,
335
+ } from '@openshift-migration-advisor/agent-sdk';
336
+ import type { DeleteGroupRequest } from '@openshift-migration-advisor/agent-sdk';
337
+
338
+ async function example() {
339
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
340
+ const api = new DefaultApi();
341
+
342
+ const body = {
343
+ // string | Group ID
344
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
345
+ } satisfies DeleteGroupRequest;
346
+
347
+ try {
348
+ const data = await api.deleteGroup(body);
349
+ console.log(data);
350
+ } catch (error) {
351
+ console.error(error);
352
+ }
353
+ }
354
+
355
+ // Run the test
356
+ example().catch(console.error);
357
+ ```
358
+
359
+ ### Parameters
360
+
361
+
362
+ | Name | Type | Description | Notes |
363
+ |------------- | ------------- | ------------- | -------------|
364
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
365
+
366
+ ### Return type
367
+
368
+ `void` (Empty response body)
369
+
370
+ ### Authorization
371
+
372
+ No authorization required
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: Not defined
377
+ - **Accept**: Not defined
378
+
379
+
380
+ ### HTTP response details
381
+ | Status code | Description | Response headers |
382
+ |-------------|-------------|------------------|
383
+ | **204** | Group deleted | - |
384
+ | **500** | Internal server error | - |
385
+
386
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
387
+
388
+
389
+ ## deleteLabelGlobally
390
+
391
+ > DeleteLabelGloballyResponse deleteLabelGlobally(label)
392
+
393
+ Delete label from all VMs
394
+
395
+ ### Example
396
+
397
+ ```ts
398
+ import {
399
+ Configuration,
400
+ DefaultApi,
401
+ } from '@openshift-migration-advisor/agent-sdk';
402
+ import type { DeleteLabelGloballyRequest } from '@openshift-migration-advisor/agent-sdk';
403
+
404
+ async function example() {
405
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
406
+ const api = new DefaultApi();
407
+
408
+ const body = {
409
+ // string | The label to remove from all VMs
410
+ label: label_example,
411
+ } satisfies DeleteLabelGloballyRequest;
412
+
413
+ try {
414
+ const data = await api.deleteLabelGlobally(body);
415
+ console.log(data);
416
+ } catch (error) {
417
+ console.error(error);
418
+ }
419
+ }
420
+
421
+ // Run the test
422
+ example().catch(console.error);
423
+ ```
424
+
425
+ ### Parameters
426
+
427
+
428
+ | Name | Type | Description | Notes |
429
+ |------------- | ------------- | ------------- | -------------|
430
+ | **label** | `string` | The label to remove from all VMs | [Defaults to `undefined`] |
431
+
432
+ ### Return type
433
+
434
+ [**DeleteLabelGloballyResponse**](DeleteLabelGloballyResponse.md)
435
+
436
+ ### Authorization
437
+
438
+ No authorization required
439
+
440
+ ### HTTP request headers
441
+
442
+ - **Content-Type**: Not defined
443
+ - **Accept**: `application/json`
444
+
445
+
446
+ ### HTTP response details
447
+ | Status code | Description | Response headers |
448
+ |-------------|-------------|------------------|
449
+ | **200** | Label removed globally | - |
450
+ | **400** | Invalid label parameter | - |
451
+ | **500** | Internal server error | - |
452
+
453
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
454
+
455
+
456
+ ## exportInventory
457
+
458
+ > Blob exportInventory(scope, format)
459
+
460
+ Export VM inventory and migration planning data
461
+
462
+ Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
463
+
464
+ ### Example
465
+
466
+ ```ts
467
+ import {
468
+ Configuration,
469
+ DefaultApi,
470
+ } from '@openshift-migration-advisor/agent-sdk';
471
+ import type { ExportInventoryRequest } from '@openshift-migration-advisor/agent-sdk';
472
+
473
+ async function example() {
474
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
475
+ const api = new DefaultApi();
476
+
477
+ const body = {
478
+ // string | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection (optional)
479
+ scope: overview,hosts,vms,
480
+ // 'zip' | 'xlsx' | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) (optional)
481
+ format: format_example,
482
+ } satisfies ExportInventoryRequest;
483
+
484
+ try {
485
+ const data = await api.exportInventory(body);
486
+ console.log(data);
487
+ } catch (error) {
488
+ console.error(error);
489
+ }
490
+ }
491
+
492
+ // Run the test
493
+ example().catch(console.error);
494
+ ```
495
+
496
+ ### Parameters
497
+
498
+
499
+ | Name | Type | Description | Notes |
500
+ |------------- | ------------- | ------------- | -------------|
501
+ | **scope** | `string` | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection | [Optional] [Defaults to `undefined`] |
502
+ | **format** | `zip`, `xlsx` | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) | [Optional] [Defaults to `'zip'`] [Enum: zip, xlsx] |
503
+
504
+ ### Return type
505
+
506
+ **Blob**
507
+
508
+ ### Authorization
509
+
510
+ No authorization required
511
+
512
+ ### HTTP request headers
513
+
514
+ - **Content-Type**: Not defined
515
+ - **Accept**: `application/zip`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`, `application/json`
516
+
517
+
518
+ ### HTTP response details
519
+ | Status code | Description | Response headers |
520
+ |-------------|-------------|------------------|
521
+ | **200** | ZIP archive containing CSV files or Excel workbook | - |
522
+ | **400** | Invalid scope name | - |
523
+ | **500** | Internal server error | - |
524
+
525
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
526
+
527
+
528
+ ## getAgentStatus
529
+
530
+ > AgentStatus getAgentStatus()
531
+
532
+ Get agent status
533
+
534
+ ### Example
535
+
536
+ ```ts
537
+ import {
538
+ Configuration,
539
+ DefaultApi,
540
+ } from '@openshift-migration-advisor/agent-sdk';
541
+ import type { GetAgentStatusRequest } from '@openshift-migration-advisor/agent-sdk';
542
+
543
+ async function example() {
544
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
545
+ const api = new DefaultApi();
546
+
547
+ try {
548
+ const data = await api.getAgentStatus();
549
+ console.log(data);
550
+ } catch (error) {
551
+ console.error(error);
552
+ }
553
+ }
554
+
555
+ // Run the test
556
+ example().catch(console.error);
557
+ ```
558
+
559
+ ### Parameters
560
+
561
+ This endpoint does not need any parameter.
562
+
563
+ ### Return type
564
+
565
+ [**AgentStatus**](AgentStatus.md)
566
+
567
+ ### Authorization
568
+
569
+ No authorization required
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: Not defined
574
+ - **Accept**: `application/json`
575
+
576
+
577
+ ### HTTP response details
578
+ | Status code | Description | Response headers |
579
+ |-------------|-------------|------------------|
580
+ | **200** | Agent status | - |
581
+ | **500** | Internal server error | - |
582
+
583
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
584
+
585
+
586
+ ## getApplications
587
+
588
+ > ApplicationListResponse getApplications()
589
+
590
+ List detected applications running on VMs
591
+
592
+ ### Example
593
+
594
+ ```ts
595
+ import {
596
+ Configuration,
597
+ DefaultApi,
598
+ } from '@openshift-migration-advisor/agent-sdk';
599
+ import type { GetApplicationsRequest } from '@openshift-migration-advisor/agent-sdk';
600
+
601
+ async function example() {
602
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
603
+ const api = new DefaultApi();
604
+
605
+ try {
606
+ const data = await api.getApplications();
607
+ console.log(data);
608
+ } catch (error) {
609
+ console.error(error);
610
+ }
611
+ }
612
+
613
+ // Run the test
614
+ example().catch(console.error);
615
+ ```
616
+
617
+ ### Parameters
618
+
619
+ This endpoint does not need any parameter.
620
+
621
+ ### Return type
622
+
623
+ [**ApplicationListResponse**](ApplicationListResponse.md)
624
+
625
+ ### Authorization
626
+
627
+ No authorization required
628
+
629
+ ### HTTP request headers
630
+
631
+ - **Content-Type**: Not defined
632
+ - **Accept**: `application/json`
633
+
634
+
635
+ ### HTTP response details
636
+ | Status code | Description | Response headers |
637
+ |-------------|-------------|------------------|
638
+ | **200** | List of applications with matching VMs | - |
639
+ | **500** | Internal server error | - |
640
+
641
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
642
+
643
+
644
+ ## getClusterUtilization
645
+
646
+ > RightsizingClusterResponse getClusterUtilization(clusterId)
647
+
648
+ Get latest cluster utilization by cluster ID
649
+
650
+ ### Example
651
+
652
+ ```ts
653
+ import {
654
+ Configuration,
655
+ DefaultApi,
656
+ } from '@openshift-migration-advisor/agent-sdk';
657
+ import type { GetClusterUtilizationRequest } from '@openshift-migration-advisor/agent-sdk';
658
+
659
+ async function example() {
660
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
661
+ const api = new DefaultApi();
662
+
663
+ const body = {
664
+ // string | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
665
+ clusterId: clusterId_example,
666
+ } satisfies GetClusterUtilizationRequest;
667
+
668
+ try {
669
+ const data = await api.getClusterUtilization(body);
670
+ console.log(data);
671
+ } catch (error) {
672
+ console.error(error);
673
+ }
674
+ }
675
+
676
+ // Run the test
677
+ example().catch(console.error);
678
+ ```
679
+
680
+ ### Parameters
681
+
682
+
683
+ | Name | Type | Description | Notes |
684
+ |------------- | ------------- | ------------- | -------------|
685
+ | **clusterId** | `string` | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\") | [Defaults to `undefined`] |
686
+
687
+ ### Return type
688
+
689
+ [**RightsizingClusterResponse**](RightsizingClusterResponse.md)
690
+
691
+ ### Authorization
692
+
693
+ No authorization required
694
+
695
+ ### HTTP request headers
696
+
697
+ - **Content-Type**: Not defined
698
+ - **Accept**: `application/json`
699
+
700
+
701
+ ### HTTP response details
702
+ | Status code | Description | Response headers |
703
+ |-------------|-------------|------------------|
704
+ | **200** | Cluster utilization data from the latest completed rightsizing report | - |
705
+ | **400** | Invalid cluster_id format | - |
706
+ | **404** | No completed rightsizing report found, or cluster not found in report | - |
707
+ | **500** | Internal server error | - |
708
+
709
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
710
+
711
+
712
+ ## getCollectorStatus
713
+
714
+ > CollectorStatus getCollectorStatus()
715
+
716
+ Get collector status
717
+
718
+ ### Example
719
+
720
+ ```ts
721
+ import {
722
+ Configuration,
723
+ DefaultApi,
724
+ } from '@openshift-migration-advisor/agent-sdk';
725
+ import type { GetCollectorStatusRequest } from '@openshift-migration-advisor/agent-sdk';
726
+
727
+ async function example() {
728
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
729
+ const api = new DefaultApi();
730
+
731
+ try {
732
+ const data = await api.getCollectorStatus();
733
+ console.log(data);
734
+ } catch (error) {
735
+ console.error(error);
736
+ }
737
+ }
738
+
739
+ // Run the test
740
+ example().catch(console.error);
741
+ ```
742
+
743
+ ### Parameters
744
+
745
+ This endpoint does not need any parameter.
746
+
747
+ ### Return type
748
+
749
+ [**CollectorStatus**](CollectorStatus.md)
750
+
751
+ ### Authorization
752
+
753
+ No authorization required
754
+
755
+ ### HTTP request headers
756
+
757
+ - **Content-Type**: Not defined
758
+ - **Accept**: `application/json`
759
+
760
+
761
+ ### HTTP response details
762
+ | Status code | Description | Response headers |
763
+ |-------------|-------------|------------------|
764
+ | **200** | Collector status | - |
765
+ | **500** | Internal server error | - |
766
+
767
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
768
+
769
+
770
+ ## getCredentialCapabilities
771
+
772
+ > CapabilityStatus getCredentialCapabilities()
773
+
774
+ Check vSphere operation capabilities
775
+
776
+ Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
777
+
778
+ ### Example
779
+
780
+ ```ts
781
+ import {
782
+ Configuration,
783
+ DefaultApi,
784
+ } from '@openshift-migration-advisor/agent-sdk';
785
+ import type { GetCredentialCapabilitiesRequest } from '@openshift-migration-advisor/agent-sdk';
786
+
787
+ async function example() {
788
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
789
+ const api = new DefaultApi();
790
+
791
+ try {
792
+ const data = await api.getCredentialCapabilities();
793
+ console.log(data);
794
+ } catch (error) {
795
+ console.error(error);
796
+ }
797
+ }
798
+
799
+ // Run the test
800
+ example().catch(console.error);
801
+ ```
802
+
803
+ ### Parameters
804
+
805
+ This endpoint does not need any parameter.
806
+
807
+ ### Return type
808
+
809
+ [**CapabilityStatus**](CapabilityStatus.md)
810
+
811
+ ### Authorization
812
+
813
+ No authorization required
814
+
815
+ ### HTTP request headers
816
+
817
+ - **Content-Type**: Not defined
818
+ - **Accept**: `application/json`
819
+
820
+
821
+ ### HTTP response details
822
+ | Status code | Description | Response headers |
823
+ |-------------|-------------|------------------|
824
+ | **200** | Capability status per operation | - |
825
+ | **404** | No credentials stored | - |
826
+ | **500** | Internal server error | - |
827
+
828
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
829
+
830
+
831
+ ## getCredentials
832
+
833
+ > CredentialStatus getCredentials()
834
+
835
+ Get stored credential status
836
+
837
+ Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
838
+
839
+ ### Example
840
+
841
+ ```ts
842
+ import {
843
+ Configuration,
844
+ DefaultApi,
845
+ } from '@openshift-migration-advisor/agent-sdk';
846
+ import type { GetCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
847
+
848
+ async function example() {
849
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
850
+ const api = new DefaultApi();
851
+
852
+ try {
853
+ const data = await api.getCredentials();
854
+ console.log(data);
855
+ } catch (error) {
856
+ console.error(error);
857
+ }
858
+ }
859
+
860
+ // Run the test
861
+ example().catch(console.error);
862
+ ```
863
+
864
+ ### Parameters
865
+
866
+ This endpoint does not need any parameter.
867
+
868
+ ### Return type
869
+
870
+ [**CredentialStatus**](CredentialStatus.md)
871
+
872
+ ### Authorization
873
+
874
+ No authorization required
875
+
876
+ ### HTTP request headers
877
+
878
+ - **Content-Type**: Not defined
879
+ - **Accept**: `application/json`
880
+
881
+
882
+ ### HTTP response details
883
+ | Status code | Description | Response headers |
884
+ |-------------|-------------|------------------|
885
+ | **200** | Credential status | - |
886
+ | **404** | No credentials stored | - |
887
+ | **500** | Internal server error | - |
888
+
889
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
890
+
891
+
892
+ ## getForecasterDatastores
893
+
894
+ > Array<DatastoreDetail> getForecasterDatastores(forecasterDatastoresRequest)
895
+
896
+ List available datastores
897
+
898
+ Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
899
+
900
+ ### Example
901
+
902
+ ```ts
903
+ import {
904
+ Configuration,
905
+ DefaultApi,
906
+ } from '@openshift-migration-advisor/agent-sdk';
907
+ import type { GetForecasterDatastoresRequest } from '@openshift-migration-advisor/agent-sdk';
908
+
909
+ async function example() {
910
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
911
+ const api = new DefaultApi();
912
+
913
+ const body = {
914
+ // ForecasterDatastoresRequest (optional)
915
+ forecasterDatastoresRequest: ...,
916
+ } satisfies GetForecasterDatastoresRequest;
917
+
918
+ try {
919
+ const data = await api.getForecasterDatastores(body);
920
+ console.log(data);
921
+ } catch (error) {
922
+ console.error(error);
923
+ }
924
+ }
925
+
926
+ // Run the test
927
+ example().catch(console.error);
928
+ ```
929
+
930
+ ### Parameters
931
+
932
+
933
+ | Name | Type | Description | Notes |
934
+ |------------- | ------------- | ------------- | -------------|
935
+ | **forecasterDatastoresRequest** | [ForecasterDatastoresRequest](ForecasterDatastoresRequest.md) | | [Optional] |
936
+
937
+ ### Return type
938
+
939
+ [**Array<DatastoreDetail>**](DatastoreDetail.md)
940
+
941
+ ### Authorization
942
+
943
+ No authorization required
944
+
945
+ ### HTTP request headers
946
+
947
+ - **Content-Type**: `application/json`
948
+ - **Accept**: `application/json`
949
+
950
+
951
+ ### HTTP response details
952
+ | Status code | Description | Response headers |
953
+ |-------------|-------------|------------------|
954
+ | **200** | List of datastores | - |
955
+ | **500** | Internal server error | - |
956
+
957
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
958
+
959
+
960
+ ## getForecasterRuns
961
+
962
+ > Array<BenchmarkRun> getForecasterRuns(pairName)
963
+
964
+ List benchmark runs
965
+
966
+ Returns individual benchmark iterations. Optionally filtered by pair name.
967
+
968
+ ### Example
969
+
970
+ ```ts
971
+ import {
972
+ Configuration,
973
+ DefaultApi,
974
+ } from '@openshift-migration-advisor/agent-sdk';
975
+ import type { GetForecasterRunsRequest } from '@openshift-migration-advisor/agent-sdk';
976
+
977
+ async function example() {
978
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
979
+ const api = new DefaultApi();
980
+
981
+ const body = {
982
+ // string | Filter runs by pair name (optional)
983
+ pairName: pairName_example,
984
+ } satisfies GetForecasterRunsRequest;
985
+
986
+ try {
987
+ const data = await api.getForecasterRuns(body);
988
+ console.log(data);
989
+ } catch (error) {
990
+ console.error(error);
991
+ }
992
+ }
993
+
994
+ // Run the test
995
+ example().catch(console.error);
996
+ ```
997
+
998
+ ### Parameters
999
+
1000
+
1001
+ | Name | Type | Description | Notes |
1002
+ |------------- | ------------- | ------------- | -------------|
1003
+ | **pairName** | `string` | Filter runs by pair name | [Optional] [Defaults to `undefined`] |
1004
+
1005
+ ### Return type
1006
+
1007
+ [**Array<BenchmarkRun>**](BenchmarkRun.md)
1008
+
1009
+ ### Authorization
1010
+
1011
+ No authorization required
1012
+
1013
+ ### HTTP request headers
1014
+
1015
+ - **Content-Type**: Not defined
1016
+ - **Accept**: `application/json`
1017
+
1018
+
1019
+ ### HTTP response details
1020
+ | Status code | Description | Response headers |
1021
+ |-------------|-------------|------------------|
1022
+ | **200** | List of benchmark runs | - |
1023
+ | **500** | Internal server error | - |
1024
+
1025
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1026
+
1027
+
1028
+ ## getForecasterStats
1029
+
1030
+ > ForecastStats getForecasterStats(pairName)
1031
+
1032
+ Get throughput statistics
1033
+
1034
+ Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
1035
+
1036
+ ### Example
1037
+
1038
+ ```ts
1039
+ import {
1040
+ Configuration,
1041
+ DefaultApi,
1042
+ } from '@openshift-migration-advisor/agent-sdk';
1043
+ import type { GetForecasterStatsRequest } from '@openshift-migration-advisor/agent-sdk';
1044
+
1045
+ async function example() {
1046
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1047
+ const api = new DefaultApi();
1048
+
1049
+ const body = {
1050
+ // string | Pair name to get statistics for
1051
+ pairName: pairName_example,
1052
+ } satisfies GetForecasterStatsRequest;
1053
+
1054
+ try {
1055
+ const data = await api.getForecasterStats(body);
1056
+ console.log(data);
1057
+ } catch (error) {
1058
+ console.error(error);
1059
+ }
1060
+ }
1061
+
1062
+ // Run the test
1063
+ example().catch(console.error);
1064
+ ```
1065
+
1066
+ ### Parameters
1067
+
1068
+
1069
+ | Name | Type | Description | Notes |
1070
+ |------------- | ------------- | ------------- | -------------|
1071
+ | **pairName** | `string` | Pair name to get statistics for | [Defaults to `undefined`] |
1072
+
1073
+ ### Return type
1074
+
1075
+ [**ForecastStats**](ForecastStats.md)
1076
+
1077
+ ### Authorization
1078
+
1079
+ No authorization required
1080
+
1081
+ ### HTTP request headers
1082
+
1083
+ - **Content-Type**: Not defined
1084
+ - **Accept**: `application/json`
1085
+
1086
+
1087
+ ### HTTP response details
1088
+ | Status code | Description | Response headers |
1089
+ |-------------|-------------|------------------|
1090
+ | **200** | Throughput statistics | - |
1091
+ | **400** | Missing pairName parameter | - |
1092
+ | **500** | Internal server error | - |
1093
+
1094
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1095
+
1096
+
1097
+ ## getForecasterStatus
1098
+
1099
+ > ForecasterStatus getForecasterStatus()
1100
+
1101
+ Poll forecaster status
1102
+
1103
+ Returns current service state with per-pair progress details.
1104
+
1105
+ ### Example
1106
+
1107
+ ```ts
1108
+ import {
1109
+ Configuration,
1110
+ DefaultApi,
1111
+ } from '@openshift-migration-advisor/agent-sdk';
1112
+ import type { GetForecasterStatusRequest } from '@openshift-migration-advisor/agent-sdk';
1113
+
1114
+ async function example() {
1115
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1116
+ const api = new DefaultApi();
1117
+
1118
+ try {
1119
+ const data = await api.getForecasterStatus();
1120
+ console.log(data);
1121
+ } catch (error) {
1122
+ console.error(error);
1123
+ }
1124
+ }
1125
+
1126
+ // Run the test
1127
+ example().catch(console.error);
1128
+ ```
1129
+
1130
+ ### Parameters
1131
+
1132
+ This endpoint does not need any parameter.
1133
+
1134
+ ### Return type
1135
+
1136
+ [**ForecasterStatus**](ForecasterStatus.md)
1137
+
1138
+ ### Authorization
1139
+
1140
+ No authorization required
1141
+
1142
+ ### HTTP request headers
1143
+
1144
+ - **Content-Type**: Not defined
1145
+ - **Accept**: `application/json`
1146
+
1147
+
1148
+ ### HTTP response details
1149
+ | Status code | Description | Response headers |
1150
+ |-------------|-------------|------------------|
1151
+ | **200** | Current forecaster status | - |
1152
+
1153
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1154
+
1155
+
1156
+ ## getGroup
1157
+
1158
+ > GroupResponse getGroup(id, sort, page, pageSize)
1159
+
1160
+ Get group by ID with its VMs
1161
+
1162
+ ### Example
1163
+
1164
+ ```ts
1165
+ import {
1166
+ Configuration,
1167
+ DefaultApi,
1168
+ } from '@openshift-migration-advisor/agent-sdk';
1169
+ import type { GetGroupRequest } from '@openshift-migration-advisor/agent-sdk';
1170
+
1171
+ async function example() {
1172
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1173
+ const api = new DefaultApi();
1174
+
1175
+ const body = {
1176
+ // string | Group ID
1177
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1178
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
1179
+ sort: ["cluster:asc","name:desc"],
1180
+ // number | Page number for pagination (optional)
1181
+ page: 56,
1182
+ // number | Number of items per page (optional)
1183
+ pageSize: 56,
1184
+ } satisfies GetGroupRequest;
1185
+
1186
+ try {
1187
+ const data = await api.getGroup(body);
1188
+ console.log(data);
1189
+ } catch (error) {
1190
+ console.error(error);
1191
+ }
1192
+ }
1193
+
1194
+ // Run the test
1195
+ example().catch(console.error);
1196
+ ```
1197
+
1198
+ ### Parameters
1199
+
1200
+
1201
+ | Name | Type | Description | Notes |
1202
+ |------------- | ------------- | ------------- | -------------|
1203
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
1204
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
1205
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
1206
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
1207
+
1208
+ ### Return type
1209
+
1210
+ [**GroupResponse**](GroupResponse.md)
1211
+
1212
+ ### Authorization
1213
+
1214
+ No authorization required
1215
+
1216
+ ### HTTP request headers
1217
+
1218
+ - **Content-Type**: Not defined
1219
+ - **Accept**: `application/json`
1220
+
1221
+
1222
+ ### HTTP response details
1223
+ | Status code | Description | Response headers |
1224
+ |-------------|-------------|------------------|
1225
+ | **200** | Group details with VMs | - |
1226
+ | **404** | Group not found | - |
1227
+ | **500** | Internal server error | - |
1228
+
1229
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1230
+
1231
+
1232
+ ## getInspectorStatus
1233
+
1234
+ > InspectorStatus getInspectorStatus(includeVddk)
1235
+
1236
+ Get inspector status
1237
+
1238
+ ### Example
1239
+
1240
+ ```ts
1241
+ import {
1242
+ Configuration,
1243
+ DefaultApi,
1244
+ } from '@openshift-migration-advisor/agent-sdk';
1245
+ import type { GetInspectorStatusRequest } from '@openshift-migration-advisor/agent-sdk';
1246
+
1247
+ async function example() {
1248
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1249
+ const api = new DefaultApi();
1250
+
1251
+ const body = {
1252
+ // boolean | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. (optional)
1253
+ includeVddk: true,
1254
+ } satisfies GetInspectorStatusRequest;
1255
+
1256
+ try {
1257
+ const data = await api.getInspectorStatus(body);
1258
+ console.log(data);
1259
+ } catch (error) {
1260
+ console.error(error);
1261
+ }
1262
+ }
1263
+
1264
+ // Run the test
1265
+ example().catch(console.error);
1266
+ ```
1267
+
1268
+ ### Parameters
1269
+
1270
+
1271
+ | Name | Type | Description | Notes |
1272
+ |------------- | ------------- | ------------- | -------------|
1273
+ | **includeVddk** | `boolean` | If true, include uploaded VDDK metadata (&#x60;version&#x60;, &#x60;md5&#x60;) when present. omitted if VDDK was never uploaded. | [Optional] [Defaults to `false`] |
1274
+
1275
+ ### Return type
1276
+
1277
+ [**InspectorStatus**](InspectorStatus.md)
1278
+
1279
+ ### Authorization
1280
+
1281
+ No authorization required
1282
+
1283
+ ### HTTP request headers
1284
+
1285
+ - **Content-Type**: Not defined
1286
+ - **Accept**: `application/json`
1287
+
1288
+
1289
+ ### HTTP response details
1290
+ | Status code | Description | Response headers |
1291
+ |-------------|-------------|------------------|
1292
+ | **200** | Inspector status | - |
1293
+ | **500** | Internal server error | - |
1294
+
1295
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1296
+
1297
+
1298
+ ## getInspectorVddkStatus
1299
+
1300
+ > VddkProperties getInspectorVddkStatus()
1301
+
1302
+ Get VDDK status
1303
+
1304
+ ### Example
1305
+
1306
+ ```ts
1307
+ import {
1308
+ Configuration,
1309
+ DefaultApi,
1310
+ } from '@openshift-migration-advisor/agent-sdk';
1311
+ import type { GetInspectorVddkStatusRequest } from '@openshift-migration-advisor/agent-sdk';
1312
+
1313
+ async function example() {
1314
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1315
+ const api = new DefaultApi();
1316
+
1317
+ try {
1318
+ const data = await api.getInspectorVddkStatus();
1319
+ console.log(data);
1320
+ } catch (error) {
1321
+ console.error(error);
1322
+ }
1323
+ }
1324
+
1325
+ // Run the test
1326
+ example().catch(console.error);
1327
+ ```
1328
+
1329
+ ### Parameters
1330
+
1331
+ This endpoint does not need any parameter.
1332
+
1333
+ ### Return type
1334
+
1335
+ [**VddkProperties**](VddkProperties.md)
1336
+
1337
+ ### Authorization
1338
+
1339
+ No authorization required
1340
+
1341
+ ### HTTP request headers
1342
+
1343
+ - **Content-Type**: Not defined
1344
+ - **Accept**: `application/json`
1345
+
1346
+
1347
+ ### HTTP response details
1348
+ | Status code | Description | Response headers |
1349
+ |-------------|-------------|------------------|
1350
+ | **200** | Returns the current properties of the uploaded VMware VDDK tar. If the VDDK package has not been uploaded, a 404 response is returned. | - |
1351
+ | **404** | Vddk not found | - |
1352
+ | **500** | Internal server error | - |
1353
+
1354
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1355
+
1356
+
1357
+ ## getInventory
1358
+
1359
+ > GetInventory200Response getInventory(withAgentId, groupId)
1360
+
1361
+ Get collected inventory
1362
+
1363
+ ### Example
1364
+
1365
+ ```ts
1366
+ import {
1367
+ Configuration,
1368
+ DefaultApi,
1369
+ } from '@openshift-migration-advisor/agent-sdk';
1370
+ import type { GetInventoryRequest } from '@openshift-migration-advisor/agent-sdk';
1371
+
1372
+ async function example() {
1373
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1374
+ const api = new DefaultApi();
1375
+
1376
+ const body = {
1377
+ // boolean | If true, include the agentId in the response (Compatible with manual inventory upload). (optional)
1378
+ withAgentId: true,
1379
+ // string | Filter inventory to VMs matching this group\'s filter expression (optional)
1380
+ groupId: groupId_example,
1381
+ } satisfies GetInventoryRequest;
1382
+
1383
+ try {
1384
+ const data = await api.getInventory(body);
1385
+ console.log(data);
1386
+ } catch (error) {
1387
+ console.error(error);
1388
+ }
1389
+ }
1390
+
1391
+ // Run the test
1392
+ example().catch(console.error);
1393
+ ```
1394
+
1395
+ ### Parameters
1396
+
1397
+
1398
+ | Name | Type | Description | Notes |
1399
+ |------------- | ------------- | ------------- | -------------|
1400
+ | **withAgentId** | `boolean` | If true, include the agentId in the response (Compatible with manual inventory upload). | [Optional] [Defaults to `false`] |
1401
+ | **groupId** | `string` | Filter inventory to VMs matching this group\&#39;s filter expression | [Optional] [Defaults to `undefined`] |
1402
+
1403
+ ### Return type
1404
+
1405
+ [**GetInventory200Response**](GetInventory200Response.md)
1406
+
1407
+ ### Authorization
1408
+
1409
+ No authorization required
1410
+
1411
+ ### HTTP request headers
1412
+
1413
+ - **Content-Type**: Not defined
1414
+ - **Accept**: `application/json`
1415
+
1416
+
1417
+ ### HTTP response details
1418
+ | Status code | Description | Response headers |
1419
+ |-------------|-------------|------------------|
1420
+ | **200** | Collected inventory | - |
1421
+ | **404** | Inventory not available | - |
1422
+ | **500** | Internal server error | - |
1423
+
1424
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1425
+
1426
+
1427
+ ## getRightsizingReport
1428
+
1429
+ > RightsizingReport getRightsizingReport(reportId)
1430
+
1431
+ Get a specific rightsizing report with full VM metrics
1432
+
1433
+ ### Example
1434
+
1435
+ ```ts
1436
+ import {
1437
+ Configuration,
1438
+ DefaultApi,
1439
+ } from '@openshift-migration-advisor/agent-sdk';
1440
+ import type { GetRightsizingReportRequest } from '@openshift-migration-advisor/agent-sdk';
1441
+
1442
+ async function example() {
1443
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1444
+ const api = new DefaultApi();
1445
+
1446
+ const body = {
1447
+ // string | Report UUID
1448
+ reportId: reportId_example,
1449
+ } satisfies GetRightsizingReportRequest;
1450
+
1451
+ try {
1452
+ const data = await api.getRightsizingReport(body);
1453
+ console.log(data);
1454
+ } catch (error) {
1455
+ console.error(error);
1456
+ }
1457
+ }
1458
+
1459
+ // Run the test
1460
+ example().catch(console.error);
1461
+ ```
1462
+
1463
+ ### Parameters
1464
+
1465
+
1466
+ | Name | Type | Description | Notes |
1467
+ |------------- | ------------- | ------------- | -------------|
1468
+ | **reportId** | `string` | Report UUID | [Defaults to `undefined`] |
1469
+
1470
+ ### Return type
1471
+
1472
+ [**RightsizingReport**](RightsizingReport.md)
1473
+
1474
+ ### Authorization
1475
+
1476
+ No authorization required
1477
+
1478
+ ### HTTP request headers
1479
+
1480
+ - **Content-Type**: Not defined
1481
+ - **Accept**: `application/json`
1482
+
1483
+
1484
+ ### HTTP response details
1485
+ | Status code | Description | Response headers |
1486
+ |-------------|-------------|------------------|
1487
+ | **200** | Rightsizing report | - |
1488
+ | **404** | Report not found | - |
1489
+ | **500** | Internal server error | - |
1490
+
1491
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1492
+
1493
+
1494
+ ## getRightsizingReportCluster
1495
+
1496
+ > RightsizingClusterResponse getRightsizingReportCluster(reportId, clusterId)
1497
+
1498
+ Get utilization for a specific cluster from a specific report
1499
+
1500
+ ### Example
1501
+
1502
+ ```ts
1503
+ import {
1504
+ Configuration,
1505
+ DefaultApi,
1506
+ } from '@openshift-migration-advisor/agent-sdk';
1507
+ import type { GetRightsizingReportClusterRequest } from '@openshift-migration-advisor/agent-sdk';
1508
+
1509
+ async function example() {
1510
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1511
+ const api = new DefaultApi();
1512
+
1513
+ const body = {
1514
+ // string | Rightsizing report UUID
1515
+ reportId: reportId_example,
1516
+ // string | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
1517
+ clusterId: clusterId_example,
1518
+ } satisfies GetRightsizingReportClusterRequest;
1519
+
1520
+ try {
1521
+ const data = await api.getRightsizingReportCluster(body);
1522
+ console.log(data);
1523
+ } catch (error) {
1524
+ console.error(error);
1525
+ }
1526
+ }
1527
+
1528
+ // Run the test
1529
+ example().catch(console.error);
1530
+ ```
1531
+
1532
+ ### Parameters
1533
+
1534
+
1535
+ | Name | Type | Description | Notes |
1536
+ |------------- | ------------- | ------------- | -------------|
1537
+ | **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
1538
+ | **clusterId** | `string` | vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;) | [Defaults to `undefined`] |
1539
+
1540
+ ### Return type
1541
+
1542
+ [**RightsizingClusterResponse**](RightsizingClusterResponse.md)
1543
+
1544
+ ### Authorization
1545
+
1546
+ No authorization required
1547
+
1548
+ ### HTTP request headers
1549
+
1550
+ - **Content-Type**: Not defined
1551
+ - **Accept**: `application/json`
1552
+
1553
+
1554
+ ### HTTP response details
1555
+ | Status code | Description | Response headers |
1556
+ |-------------|-------------|------------------|
1557
+ | **200** | Cluster utilization data | - |
1558
+ | **404** | Report not found, or cluster not found in report | - |
1559
+ | **500** | Internal server error | - |
1560
+
1561
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1562
+
1563
+
1564
+ ## getVM
1565
+
1566
+ > VirtualMachineDetail getVM(id)
1567
+
1568
+ Get details about a vm
1569
+
1570
+ ### Example
1571
+
1572
+ ```ts
1573
+ import {
1574
+ Configuration,
1575
+ DefaultApi,
1576
+ } from '@openshift-migration-advisor/agent-sdk';
1577
+ import type { GetVMRequest } from '@openshift-migration-advisor/agent-sdk';
1578
+
1579
+ async function example() {
1580
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1581
+ const api = new DefaultApi();
1582
+
1583
+ const body = {
1584
+ // string | VirtualMachine id
1585
+ id: id_example,
1586
+ } satisfies GetVMRequest;
1587
+
1588
+ try {
1589
+ const data = await api.getVM(body);
1590
+ console.log(data);
1591
+ } catch (error) {
1592
+ console.error(error);
1593
+ }
1594
+ }
1595
+
1596
+ // Run the test
1597
+ example().catch(console.error);
1598
+ ```
1599
+
1600
+ ### Parameters
1601
+
1602
+
1603
+ | Name | Type | Description | Notes |
1604
+ |------------- | ------------- | ------------- | -------------|
1605
+ | **id** | `string` | VirtualMachine id | [Defaults to `undefined`] |
1606
+
1607
+ ### Return type
1608
+
1609
+ [**VirtualMachineDetail**](VirtualMachineDetail.md)
1610
+
1611
+ ### Authorization
1612
+
1613
+ No authorization required
1614
+
1615
+ ### HTTP request headers
1616
+
1617
+ - **Content-Type**: Not defined
1618
+ - **Accept**: `application/json`
1619
+
1620
+
1621
+ ### HTTP response details
1622
+ | Status code | Description | Response headers |
1623
+ |-------------|-------------|------------------|
1624
+ | **200** | VirtualMachine details | - |
1625
+ | **404** | VirtualMachine not found | - |
1626
+ | **500** | Internal server error | - |
1627
+
1628
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1629
+
1630
+
1631
+ ## getVMLabels
1632
+
1633
+ > VMLabelsResponse getVMLabels()
1634
+
1635
+ Get all distinct labels in use across VMs
1636
+
1637
+ ### Example
1638
+
1639
+ ```ts
1640
+ import {
1641
+ Configuration,
1642
+ DefaultApi,
1643
+ } from '@openshift-migration-advisor/agent-sdk';
1644
+ import type { GetVMLabelsRequest } from '@openshift-migration-advisor/agent-sdk';
1645
+
1646
+ async function example() {
1647
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1648
+ const api = new DefaultApi();
1649
+
1650
+ try {
1651
+ const data = await api.getVMLabels();
1652
+ console.log(data);
1653
+ } catch (error) {
1654
+ console.error(error);
1655
+ }
1656
+ }
1657
+
1658
+ // Run the test
1659
+ example().catch(console.error);
1660
+ ```
1661
+
1662
+ ### Parameters
1663
+
1664
+ This endpoint does not need any parameter.
1665
+
1666
+ ### Return type
1667
+
1668
+ [**VMLabelsResponse**](VMLabelsResponse.md)
1669
+
1670
+ ### Authorization
1671
+
1672
+ No authorization required
1673
+
1674
+ ### HTTP request headers
1675
+
1676
+ - **Content-Type**: Not defined
1677
+ - **Accept**: `application/json`
1678
+
1679
+
1680
+ ### HTTP response details
1681
+ | Status code | Description | Response headers |
1682
+ |-------------|-------------|------------------|
1683
+ | **200** | List of distinct labels | - |
1684
+ | **500** | Internal server error | - |
1685
+
1686
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1687
+
1688
+
1689
+ ## getVMUtilization
1690
+
1691
+ > VmUtilizationDetails getVMUtilization(id)
1692
+
1693
+ Get utilization breakdown for a specific VM
1694
+
1695
+ ### Example
1696
+
1697
+ ```ts
1698
+ import {
1699
+ Configuration,
1700
+ DefaultApi,
1701
+ } from '@openshift-migration-advisor/agent-sdk';
1702
+ import type { GetVMUtilizationRequest } from '@openshift-migration-advisor/agent-sdk';
1703
+
1704
+ async function example() {
1705
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1706
+ const api = new DefaultApi();
1707
+
1708
+ const body = {
1709
+ // string | VirtualMachine MoRef ID
1710
+ id: id_example,
1711
+ } satisfies GetVMUtilizationRequest;
1712
+
1713
+ try {
1714
+ const data = await api.getVMUtilization(body);
1715
+ console.log(data);
1716
+ } catch (error) {
1717
+ console.error(error);
1718
+ }
1719
+ }
1720
+
1721
+ // Run the test
1722
+ example().catch(console.error);
1723
+ ```
1724
+
1725
+ ### Parameters
1726
+
1727
+
1728
+ | Name | Type | Description | Notes |
1729
+ |------------- | ------------- | ------------- | -------------|
1730
+ | **id** | `string` | VirtualMachine MoRef ID | [Defaults to `undefined`] |
1731
+
1732
+ ### Return type
1733
+
1734
+ [**VmUtilizationDetails**](VmUtilizationDetails.md)
1735
+
1736
+ ### Authorization
1737
+
1738
+ No authorization required
1739
+
1740
+ ### HTTP request headers
1741
+
1742
+ - **Content-Type**: Not defined
1743
+ - **Accept**: `application/json`
1744
+
1745
+
1746
+ ### HTTP response details
1747
+ | Status code | Description | Response headers |
1748
+ |-------------|-------------|------------------|
1749
+ | **200** | VM utilization details | - |
1750
+ | **404** | No utilization data found for this VM | - |
1751
+ | **500** | Internal server error | - |
1752
+
1753
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1754
+
1755
+
1756
+ ## getVMs
1757
+
1758
+ > VirtualMachineListResponse getVMs(byExpression, sort, page, pageSize)
1759
+
1760
+ Get list of VMs with filtering and pagination
1761
+
1762
+ ### Example
1763
+
1764
+ ```ts
1765
+ import {
1766
+ Configuration,
1767
+ DefaultApi,
1768
+ } from '@openshift-migration-advisor/agent-sdk';
1769
+ import type { GetVMsRequest } from '@openshift-migration-advisor/agent-sdk';
1770
+
1771
+ async function example() {
1772
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1773
+ const api = new DefaultApi();
1774
+
1775
+ const body = {
1776
+ // string | Filter by expression (matches VMs with the provided expression) (optional)
1777
+ byExpression: exp1,
1778
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
1779
+ sort: ["cluster:asc","name:desc"],
1780
+ // number | Page number for pagination (optional)
1781
+ page: 56,
1782
+ // number | Number of items per page (optional)
1783
+ pageSize: 56,
1784
+ } satisfies GetVMsRequest;
1785
+
1786
+ try {
1787
+ const data = await api.getVMs(body);
1788
+ console.log(data);
1789
+ } catch (error) {
1790
+ console.error(error);
1791
+ }
1792
+ }
1793
+
1794
+ // Run the test
1795
+ example().catch(console.error);
1796
+ ```
1797
+
1798
+ ### Parameters
1799
+
1800
+
1801
+ | Name | Type | Description | Notes |
1802
+ |------------- | ------------- | ------------- | -------------|
1803
+ | **byExpression** | `string` | Filter by expression (matches VMs with the provided expression) | [Optional] [Defaults to `undefined`] |
1804
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
1805
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
1806
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
1807
+
1808
+ ### Return type
1809
+
1810
+ [**VirtualMachineListResponse**](VirtualMachineListResponse.md)
1811
+
1812
+ ### Authorization
1813
+
1814
+ No authorization required
1815
+
1816
+ ### HTTP request headers
1817
+
1818
+ - **Content-Type**: Not defined
1819
+ - **Accept**: `application/json`
1820
+
1821
+
1822
+ ### HTTP response details
1823
+ | Status code | Description | Response headers |
1824
+ |-------------|-------------|------------------|
1825
+ | **200** | List of VMs | - |
1826
+ | **400** | Invalid request parameters | - |
1827
+ | **500** | Internal server error | - |
1828
+
1829
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1830
+
1831
+
1832
+ ## getVMsFilterOptions
1833
+
1834
+ > VMFilterOptionsResponse getVMsFilterOptions()
1835
+
1836
+ Get distinct filter option values for VMs
1837
+
1838
+ ### Example
1839
+
1840
+ ```ts
1841
+ import {
1842
+ Configuration,
1843
+ DefaultApi,
1844
+ } from '@openshift-migration-advisor/agent-sdk';
1845
+ import type { GetVMsFilterOptionsRequest } from '@openshift-migration-advisor/agent-sdk';
1846
+
1847
+ async function example() {
1848
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1849
+ const api = new DefaultApi();
1850
+
1851
+ try {
1852
+ const data = await api.getVMsFilterOptions();
1853
+ console.log(data);
1854
+ } catch (error) {
1855
+ console.error(error);
1856
+ }
1857
+ }
1858
+
1859
+ // Run the test
1860
+ example().catch(console.error);
1861
+ ```
1862
+
1863
+ ### Parameters
1864
+
1865
+ This endpoint does not need any parameter.
1866
+
1867
+ ### Return type
1868
+
1869
+ [**VMFilterOptionsResponse**](VMFilterOptionsResponse.md)
1870
+
1871
+ ### Authorization
1872
+
1873
+ No authorization required
1874
+
1875
+ ### HTTP request headers
1876
+
1877
+ - **Content-Type**: Not defined
1878
+ - **Accept**: `application/json`
1879
+
1880
+
1881
+ ### HTTP response details
1882
+ | Status code | Description | Response headers |
1883
+ |-------------|-------------|------------------|
1884
+ | **200** | Filter options | - |
1885
+ | **500** | Internal server error | - |
1886
+
1887
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1888
+
1889
+
1890
+ ## getVersion
1891
+
1892
+ > VersionInfo getVersion()
1893
+
1894
+ Get agent version information
1895
+
1896
+ ### Example
1897
+
1898
+ ```ts
1899
+ import {
1900
+ Configuration,
1901
+ DefaultApi,
1902
+ } from '@openshift-migration-advisor/agent-sdk';
1903
+ import type { GetVersionRequest } from '@openshift-migration-advisor/agent-sdk';
1904
+
1905
+ async function example() {
1906
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1907
+ const api = new DefaultApi();
1908
+
1909
+ try {
1910
+ const data = await api.getVersion();
1911
+ console.log(data);
1912
+ } catch (error) {
1913
+ console.error(error);
1914
+ }
1915
+ }
1916
+
1917
+ // Run the test
1918
+ example().catch(console.error);
1919
+ ```
1920
+
1921
+ ### Parameters
1922
+
1923
+ This endpoint does not need any parameter.
1924
+
1925
+ ### Return type
1926
+
1927
+ [**VersionInfo**](VersionInfo.md)
1928
+
1929
+ ### Authorization
1930
+
1931
+ No authorization required
1932
+
1933
+ ### HTTP request headers
1934
+
1935
+ - **Content-Type**: Not defined
1936
+ - **Accept**: `application/json`
1937
+
1938
+
1939
+ ### HTTP response details
1940
+ | Status code | Description | Response headers |
1941
+ |-------------|-------------|------------------|
1942
+ | **200** | Version information | - |
1943
+
1944
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1945
+
1946
+
1947
+ ## listGroups
1948
+
1949
+ > GroupListResponse listGroups(byName, page, pageSize)
1950
+
1951
+ List all groups
1952
+
1953
+ ### Example
1954
+
1955
+ ```ts
1956
+ import {
1957
+ Configuration,
1958
+ DefaultApi,
1959
+ } from '@openshift-migration-advisor/agent-sdk';
1960
+ import type { ListGroupsRequest } from '@openshift-migration-advisor/agent-sdk';
1961
+
1962
+ async function example() {
1963
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1964
+ const api = new DefaultApi();
1965
+
1966
+ const body = {
1967
+ // string | Filter groups by name (case-insensitive substring match) (optional)
1968
+ byName: byName_example,
1969
+ // number | Page number (1-indexed) (optional)
1970
+ page: 56,
1971
+ // number | Number of groups per page (optional)
1972
+ pageSize: 56,
1973
+ } satisfies ListGroupsRequest;
1974
+
1975
+ try {
1976
+ const data = await api.listGroups(body);
1977
+ console.log(data);
1978
+ } catch (error) {
1979
+ console.error(error);
1980
+ }
1981
+ }
1982
+
1983
+ // Run the test
1984
+ example().catch(console.error);
1985
+ ```
1986
+
1987
+ ### Parameters
1988
+
1989
+
1990
+ | Name | Type | Description | Notes |
1991
+ |------------- | ------------- | ------------- | -------------|
1992
+ | **byName** | `string` | Filter groups by name (case-insensitive substring match) | [Optional] [Defaults to `undefined`] |
1993
+ | **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
1994
+ | **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
1995
+
1996
+ ### Return type
1997
+
1998
+ [**GroupListResponse**](GroupListResponse.md)
1999
+
2000
+ ### Authorization
2001
+
2002
+ No authorization required
2003
+
2004
+ ### HTTP request headers
2005
+
2006
+ - **Content-Type**: Not defined
2007
+ - **Accept**: `application/json`
2008
+
2009
+
2010
+ ### HTTP response details
2011
+ | Status code | Description | Response headers |
2012
+ |-------------|-------------|------------------|
2013
+ | **200** | List of groups | - |
2014
+ | **400** | Invalid filter expression | - |
2015
+ | **500** | Internal server error | - |
2016
+
2017
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2018
+
2019
+
2020
+ ## listRightsizingReportClusters
2021
+
2022
+ > RightsizingClusterListResponse listRightsizingReportClusters(reportId, byExpression)
2023
+
2024
+ Get cluster-level utilization aggregates for a specific report
2025
+
2026
+ ### Example
2027
+
2028
+ ```ts
2029
+ import {
2030
+ Configuration,
2031
+ DefaultApi,
2032
+ } from '@openshift-migration-advisor/agent-sdk';
2033
+ import type { ListRightsizingReportClustersRequest } from '@openshift-migration-advisor/agent-sdk';
2034
+
2035
+ async function example() {
2036
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2037
+ const api = new DefaultApi();
2038
+
2039
+ const body = {
2040
+ // string | Rightsizing report UUID
2041
+ reportId: reportId_example,
2042
+ // string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
2043
+ byExpression: byExpression_example,
2044
+ } satisfies ListRightsizingReportClustersRequest;
2045
+
2046
+ try {
2047
+ const data = await api.listRightsizingReportClusters(body);
2048
+ console.log(data);
2049
+ } catch (error) {
2050
+ console.error(error);
2051
+ }
2052
+ }
2053
+
2054
+ // Run the test
2055
+ example().catch(console.error);
2056
+ ```
2057
+
2058
+ ### Parameters
2059
+
2060
+
2061
+ | Name | Type | Description | Notes |
2062
+ |------------- | ------------- | ------------- | -------------|
2063
+ | **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
2064
+ | **byExpression** | `string` | Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
2065
+
2066
+ ### Return type
2067
+
2068
+ [**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
2069
+
2070
+ ### Authorization
2071
+
2072
+ No authorization required
2073
+
2074
+ ### HTTP request headers
2075
+
2076
+ - **Content-Type**: Not defined
2077
+ - **Accept**: `application/json`
2078
+
2079
+
2080
+ ### HTTP response details
2081
+ | Status code | Description | Response headers |
2082
+ |-------------|-------------|------------------|
2083
+ | **200** | Cluster utilization aggregates | - |
2084
+ | **404** | Report not found | - |
2085
+ | **500** | Internal server error | - |
2086
+
2087
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2088
+
2089
+
2090
+ ## listRightsizingReports
2091
+
2092
+ > RightsizingReportListResponse listRightsizingReports()
2093
+
2094
+ List all rightsizing reports
2095
+
2096
+ ### Example
2097
+
2098
+ ```ts
2099
+ import {
2100
+ Configuration,
2101
+ DefaultApi,
2102
+ } from '@openshift-migration-advisor/agent-sdk';
2103
+ import type { ListRightsizingReportsRequest } from '@openshift-migration-advisor/agent-sdk';
2104
+
2105
+ async function example() {
2106
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2107
+ const api = new DefaultApi();
2108
+
2109
+ try {
2110
+ const data = await api.listRightsizingReports();
2111
+ console.log(data);
2112
+ } catch (error) {
2113
+ console.error(error);
2114
+ }
2115
+ }
2116
+
2117
+ // Run the test
2118
+ example().catch(console.error);
2119
+ ```
2120
+
2121
+ ### Parameters
2122
+
2123
+ This endpoint does not need any parameter.
2124
+
2125
+ ### Return type
2126
+
2127
+ [**RightsizingReportListResponse**](RightsizingReportListResponse.md)
2128
+
2129
+ ### Authorization
2130
+
2131
+ No authorization required
2132
+
2133
+ ### HTTP request headers
2134
+
2135
+ - **Content-Type**: Not defined
2136
+ - **Accept**: `application/json`
2137
+
2138
+
2139
+ ### HTTP response details
2140
+ | Status code | Description | Response headers |
2141
+ |-------------|-------------|------------------|
2142
+ | **200** | List of rightsizing reports | - |
2143
+ | **500** | Internal server error | - |
2144
+
2145
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2146
+
2147
+
2148
+ ## postForecasterPairCapabilities
2149
+
2150
+ > Array&lt;PairCapability&gt; postForecasterPairCapabilities(pairCapabilityRequest)
2151
+
2152
+ Compute pair capabilities
2153
+
2154
+ Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
2155
+
2156
+ ### Example
2157
+
2158
+ ```ts
2159
+ import {
2160
+ Configuration,
2161
+ DefaultApi,
2162
+ } from '@openshift-migration-advisor/agent-sdk';
2163
+ import type { PostForecasterPairCapabilitiesRequest } from '@openshift-migration-advisor/agent-sdk';
2164
+
2165
+ async function example() {
2166
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2167
+ const api = new DefaultApi();
2168
+
2169
+ const body = {
2170
+ // PairCapabilityRequest
2171
+ pairCapabilityRequest: ...,
2172
+ } satisfies PostForecasterPairCapabilitiesRequest;
2173
+
2174
+ try {
2175
+ const data = await api.postForecasterPairCapabilities(body);
2176
+ console.log(data);
2177
+ } catch (error) {
2178
+ console.error(error);
2179
+ }
2180
+ }
2181
+
2182
+ // Run the test
2183
+ example().catch(console.error);
2184
+ ```
2185
+
2186
+ ### Parameters
2187
+
2188
+
2189
+ | Name | Type | Description | Notes |
2190
+ |------------- | ------------- | ------------- | -------------|
2191
+ | **pairCapabilityRequest** | [PairCapabilityRequest](PairCapabilityRequest.md) | | |
2192
+
2193
+ ### Return type
2194
+
2195
+ [**Array&lt;PairCapability&gt;**](PairCapability.md)
2196
+
2197
+ ### Authorization
2198
+
2199
+ No authorization required
2200
+
2201
+ ### HTTP request headers
2202
+
2203
+ - **Content-Type**: `application/json`
2204
+ - **Accept**: `application/json`
2205
+
2206
+
2207
+ ### HTTP response details
2208
+ | Status code | Description | Response headers |
2209
+ |-------------|-------------|------------------|
2210
+ | **200** | Capabilities per pair | - |
2211
+ | **400** | Datastore not found | - |
2212
+ | **500** | Internal server error | - |
2213
+
2214
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2215
+
2216
+
2217
+ ## putCredentials
2218
+
2219
+ > CredentialStatus putCredentials(vcenterCredentials)
2220
+
2221
+ Store vCenter credentials
2222
+
2223
+ Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
2224
+
2225
+ ### Example
2226
+
2227
+ ```ts
2228
+ import {
2229
+ Configuration,
2230
+ DefaultApi,
2231
+ } from '@openshift-migration-advisor/agent-sdk';
2232
+ import type { PutCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
2233
+
2234
+ async function example() {
2235
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2236
+ const api = new DefaultApi();
2237
+
2238
+ const body = {
2239
+ // VcenterCredentials
2240
+ vcenterCredentials: ...,
2241
+ } satisfies PutCredentialsRequest;
2242
+
2243
+ try {
2244
+ const data = await api.putCredentials(body);
2245
+ console.log(data);
2246
+ } catch (error) {
2247
+ console.error(error);
2248
+ }
2249
+ }
2250
+
2251
+ // Run the test
2252
+ example().catch(console.error);
2253
+ ```
2254
+
2255
+ ### Parameters
2256
+
2257
+
2258
+ | Name | Type | Description | Notes |
2259
+ |------------- | ------------- | ------------- | -------------|
2260
+ | **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
2261
+
2262
+ ### Return type
2263
+
2264
+ [**CredentialStatus**](CredentialStatus.md)
2265
+
2266
+ ### Authorization
2267
+
2268
+ No authorization required
2269
+
2270
+ ### HTTP request headers
2271
+
2272
+ - **Content-Type**: `application/json`
2273
+ - **Accept**: `application/json`
2274
+
2275
+
2276
+ ### HTTP response details
2277
+ | Status code | Description | Response headers |
2278
+ |-------------|-------------|------------------|
2279
+ | **201** | Credentials created and stored | - |
2280
+ | **200** | Credentials validated and stored | - |
2281
+ | **400** | Invalid credentials or unreachable vCenter | - |
2282
+ | **500** | Internal server error | - |
2283
+
2284
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2285
+
2286
+
2287
+ ## putForecasterCredentials
2288
+
2289
+ > putForecasterCredentials(vcenterCredentials)
2290
+
2291
+ Verify vCenter credentials and permissions
2292
+
2293
+ Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
2294
+
2295
+ ### Example
2296
+
2297
+ ```ts
2298
+ import {
2299
+ Configuration,
2300
+ DefaultApi,
2301
+ } from '@openshift-migration-advisor/agent-sdk';
2302
+ import type { PutForecasterCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
2303
+
2304
+ async function example() {
2305
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2306
+ const api = new DefaultApi();
2307
+
2308
+ const body = {
2309
+ // VcenterCredentials
2310
+ vcenterCredentials: ...,
2311
+ } satisfies PutForecasterCredentialsRequest;
2312
+
2313
+ try {
2314
+ const data = await api.putForecasterCredentials(body);
2315
+ console.log(data);
2316
+ } catch (error) {
2317
+ console.error(error);
2318
+ }
2319
+ }
2320
+
2321
+ // Run the test
2322
+ example().catch(console.error);
2323
+ ```
2324
+
2325
+ ### Parameters
2326
+
2327
+
2328
+ | Name | Type | Description | Notes |
2329
+ |------------- | ------------- | ------------- | -------------|
2330
+ | **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
2331
+
2332
+ ### Return type
2333
+
2334
+ `void` (Empty response body)
2335
+
2336
+ ### Authorization
2337
+
2338
+ No authorization required
2339
+
2340
+ ### HTTP request headers
2341
+
2342
+ - **Content-Type**: `application/json`
2343
+ - **Accept**: `application/json`
2344
+
2345
+
2346
+ ### HTTP response details
2347
+ | Status code | Description | Response headers |
2348
+ |-------------|-------------|------------------|
2349
+ | **200** | Credentials valid and all required privileges are granted | - |
2350
+ | **400** | Invalid credentials or unreachable vCenter | - |
2351
+ | **403** | Authentication succeeded but user lacks required privileges | - |
2352
+ | **500** | Internal server error | - |
2353
+
2354
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2355
+
2356
+
2357
+ ## putInspectorVddk
2358
+
2359
+ > VddkProperties putInspectorVddk(file)
2360
+
2361
+ Upload VDDK tarball
2362
+
2363
+ ### Example
2364
+
2365
+ ```ts
2366
+ import {
2367
+ Configuration,
2368
+ DefaultApi,
2369
+ } from '@openshift-migration-advisor/agent-sdk';
2370
+ import type { PutInspectorVddkRequest } from '@openshift-migration-advisor/agent-sdk';
2371
+
2372
+ async function example() {
2373
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2374
+ const api = new DefaultApi();
2375
+
2376
+ const body = {
2377
+ // Blob | VDDK tarball
2378
+ file: BINARY_DATA_HERE,
2379
+ } satisfies PutInspectorVddkRequest;
2380
+
2381
+ try {
2382
+ const data = await api.putInspectorVddk(body);
2383
+ console.log(data);
2384
+ } catch (error) {
2385
+ console.error(error);
2386
+ }
2387
+ }
2388
+
2389
+ // Run the test
2390
+ example().catch(console.error);
2391
+ ```
2392
+
2393
+ ### Parameters
2394
+
2395
+
2396
+ | Name | Type | Description | Notes |
2397
+ |------------- | ------------- | ------------- | -------------|
2398
+ | **file** | `Blob` | VDDK tarball | [Defaults to `undefined`] |
2399
+
2400
+ ### Return type
2401
+
2402
+ [**VddkProperties**](VddkProperties.md)
2403
+
2404
+ ### Authorization
2405
+
2406
+ No authorization required
2407
+
2408
+ ### HTTP request headers
2409
+
2410
+ - **Content-Type**: `multipart/form-data`
2411
+ - **Accept**: `application/json`
2412
+
2413
+
2414
+ ### HTTP response details
2415
+ | Status code | Description | Response headers |
2416
+ |-------------|-------------|------------------|
2417
+ | **200** | Upload successful | - |
2418
+ | **409** | Conflict | - |
2419
+ | **413** | File exceeds 64MB limit | - |
2420
+ | **400** | Bad request | - |
2421
+ | **500** | Internal server error | - |
2422
+
2423
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2424
+
2425
+
2426
+ ## removeVMFromInspection
2427
+
2428
+ > VmInspectionStatus removeVMFromInspection(id)
2429
+
2430
+ Remove VirtualMachine from inspection queue
2431
+
2432
+ ### Example
2433
+
2434
+ ```ts
2435
+ import {
2436
+ Configuration,
2437
+ DefaultApi,
2438
+ } from '@openshift-migration-advisor/agent-sdk';
2439
+ import type { RemoveVMFromInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
2440
+
2441
+ async function example() {
2442
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2443
+ const api = new DefaultApi();
2444
+
2445
+ const body = {
2446
+ // string
2447
+ id: id_example,
2448
+ } satisfies RemoveVMFromInspectionRequest;
2449
+
2450
+ try {
2451
+ const data = await api.removeVMFromInspection(body);
2452
+ console.log(data);
2453
+ } catch (error) {
2454
+ console.error(error);
2455
+ }
2456
+ }
2457
+
2458
+ // Run the test
2459
+ example().catch(console.error);
2460
+ ```
2461
+
2462
+ ### Parameters
2463
+
2464
+
2465
+ | Name | Type | Description | Notes |
2466
+ |------------- | ------------- | ------------- | -------------|
2467
+ | **id** | `string` | | [Defaults to `undefined`] |
2468
+
2469
+ ### Return type
2470
+
2471
+ [**VmInspectionStatus**](VmInspectionStatus.md)
2472
+
2473
+ ### Authorization
2474
+
2475
+ No authorization required
2476
+
2477
+ ### HTTP request headers
2478
+
2479
+ - **Content-Type**: Not defined
2480
+ - **Accept**: `application/json`
2481
+
2482
+
2483
+ ### HTTP response details
2484
+ | Status code | Description | Response headers |
2485
+ |-------------|-------------|------------------|
2486
+ | **200** | VMs removed from queue | - |
2487
+ | **400** | Inspector not running or VirtualMachine cannot be canceled | - |
2488
+ | **404** | VirtualMachine not found or not in the queue | - |
2489
+ | **500** | Internal server error | - |
2490
+
2491
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2492
+
2493
+
2494
+ ## setAgentMode
2495
+
2496
+ > AgentStatus setAgentMode(agentModeRequest)
2497
+
2498
+ Change agent mode
2499
+
2500
+ ### Example
2501
+
2502
+ ```ts
2503
+ import {
2504
+ Configuration,
2505
+ DefaultApi,
2506
+ } from '@openshift-migration-advisor/agent-sdk';
2507
+ import type { SetAgentModeRequest } from '@openshift-migration-advisor/agent-sdk';
2508
+
2509
+ async function example() {
2510
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2511
+ const api = new DefaultApi();
2512
+
2513
+ const body = {
2514
+ // AgentModeRequest
2515
+ agentModeRequest: ...,
2516
+ } satisfies SetAgentModeRequest;
2517
+
2518
+ try {
2519
+ const data = await api.setAgentMode(body);
2520
+ console.log(data);
2521
+ } catch (error) {
2522
+ console.error(error);
2523
+ }
2524
+ }
2525
+
2526
+ // Run the test
2527
+ example().catch(console.error);
2528
+ ```
2529
+
2530
+ ### Parameters
2531
+
2532
+
2533
+ | Name | Type | Description | Notes |
2534
+ |------------- | ------------- | ------------- | -------------|
2535
+ | **agentModeRequest** | [AgentModeRequest](AgentModeRequest.md) | | |
2536
+
2537
+ ### Return type
2538
+
2539
+ [**AgentStatus**](AgentStatus.md)
2540
+
2541
+ ### Authorization
2542
+
2543
+ No authorization required
2544
+
2545
+ ### HTTP request headers
2546
+
2547
+ - **Content-Type**: `application/json`
2548
+ - **Accept**: `application/json`
2549
+
2550
+
2551
+ ### HTTP response details
2552
+ | Status code | Description | Response headers |
2553
+ |-------------|-------------|------------------|
2554
+ | **200** | Mode changed | - |
2555
+ | **400** | Invalid request | - |
2556
+ | **409** | Conflict | - |
2557
+ | **500** | Internal server error | - |
2558
+
2559
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2560
+
2561
+
2562
+ ## startCollector
2563
+
2564
+ > CollectorStatus startCollector(collectorStartRequest)
2565
+
2566
+ Start inventory collection
2567
+
2568
+ ### Example
2569
+
2570
+ ```ts
2571
+ import {
2572
+ Configuration,
2573
+ DefaultApi,
2574
+ } from '@openshift-migration-advisor/agent-sdk';
2575
+ import type { StartCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
2576
+
2577
+ async function example() {
2578
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2579
+ const api = new DefaultApi();
2580
+
2581
+ const body = {
2582
+ // CollectorStartRequest
2583
+ collectorStartRequest: ...,
2584
+ } satisfies StartCollectorRequest;
2585
+
2586
+ try {
2587
+ const data = await api.startCollector(body);
2588
+ console.log(data);
2589
+ } catch (error) {
2590
+ console.error(error);
2591
+ }
2592
+ }
2593
+
2594
+ // Run the test
2595
+ example().catch(console.error);
2596
+ ```
2597
+
2598
+ ### Parameters
2599
+
2600
+
2601
+ | Name | Type | Description | Notes |
2602
+ |------------- | ------------- | ------------- | -------------|
2603
+ | **collectorStartRequest** | [CollectorStartRequest](CollectorStartRequest.md) | | |
2604
+
2605
+ ### Return type
2606
+
2607
+ [**CollectorStatus**](CollectorStatus.md)
2608
+
2609
+ ### Authorization
2610
+
2611
+ No authorization required
2612
+
2613
+ ### HTTP request headers
2614
+
2615
+ - **Content-Type**: `application/json`
2616
+ - **Accept**: `application/json`
2617
+
2618
+
2619
+ ### HTTP response details
2620
+ | Status code | Description | Response headers |
2621
+ |-------------|-------------|------------------|
2622
+ | **202** | Collection started | - |
2623
+ | **400** | Invalid request | - |
2624
+ | **409** | Collection already in progress | - |
2625
+ | **500** | Internal server error | - |
2626
+
2627
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2628
+
2629
+
2630
+ ## startForecaster
2631
+
2632
+ > ForecasterStatus startForecaster(forecasterStartRequest)
2633
+
2634
+ Start benchmark
2635
+
2636
+ Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
2637
+
2638
+ ### Example
2639
+
2640
+ ```ts
2641
+ import {
2642
+ Configuration,
2643
+ DefaultApi,
2644
+ } from '@openshift-migration-advisor/agent-sdk';
2645
+ import type { StartForecasterRequest } from '@openshift-migration-advisor/agent-sdk';
2646
+
2647
+ async function example() {
2648
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2649
+ const api = new DefaultApi();
2650
+
2651
+ const body = {
2652
+ // ForecasterStartRequest
2653
+ forecasterStartRequest: ...,
2654
+ } satisfies StartForecasterRequest;
2655
+
2656
+ try {
2657
+ const data = await api.startForecaster(body);
2658
+ console.log(data);
2659
+ } catch (error) {
2660
+ console.error(error);
2661
+ }
2662
+ }
2663
+
2664
+ // Run the test
2665
+ example().catch(console.error);
2666
+ ```
2667
+
2668
+ ### Parameters
2669
+
2670
+
2671
+ | Name | Type | Description | Notes |
2672
+ |------------- | ------------- | ------------- | -------------|
2673
+ | **forecasterStartRequest** | [ForecasterStartRequest](ForecasterStartRequest.md) | | |
2674
+
2675
+ ### Return type
2676
+
2677
+ [**ForecasterStatus**](ForecasterStatus.md)
2678
+
2679
+ ### Authorization
2680
+
2681
+ No authorization required
2682
+
2683
+ ### HTTP request headers
2684
+
2685
+ - **Content-Type**: `application/json`
2686
+ - **Accept**: `application/json`
2687
+
2688
+
2689
+ ### HTTP response details
2690
+ | Status code | Description | Response headers |
2691
+ |-------------|-------------|------------------|
2692
+ | **202** | Benchmark started | - |
2693
+ | **400** | Invalid credentials, validation error, or pair limit exceeded | - |
2694
+ | **409** | Another benchmark is already running | - |
2695
+ | **500** | Internal server error | - |
2696
+
2697
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2698
+
2699
+
2700
+ ## startInspection
2701
+
2702
+ > InspectorStatus startInspection(startInspectionRequest)
2703
+
2704
+ Start inspection for VMs
2705
+
2706
+ ### Example
2707
+
2708
+ ```ts
2709
+ import {
2710
+ Configuration,
2711
+ DefaultApi,
2712
+ } from '@openshift-migration-advisor/agent-sdk';
2713
+ import type { StartInspectionOperationRequest } from '@openshift-migration-advisor/agent-sdk';
2714
+
2715
+ async function example() {
2716
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2717
+ const api = new DefaultApi();
2718
+
2719
+ const body = {
2720
+ // StartInspectionRequest
2721
+ startInspectionRequest: ...,
2722
+ } satisfies StartInspectionOperationRequest;
2723
+
2724
+ try {
2725
+ const data = await api.startInspection(body);
2726
+ console.log(data);
2727
+ } catch (error) {
2728
+ console.error(error);
2729
+ }
2730
+ }
2731
+
2732
+ // Run the test
2733
+ example().catch(console.error);
2734
+ ```
2735
+
2736
+ ### Parameters
2737
+
2738
+
2739
+ | Name | Type | Description | Notes |
2740
+ |------------- | ------------- | ------------- | -------------|
2741
+ | **startInspectionRequest** | [StartInspectionRequest](StartInspectionRequest.md) | | |
2742
+
2743
+ ### Return type
2744
+
2745
+ [**InspectorStatus**](InspectorStatus.md)
2746
+
2747
+ ### Authorization
2748
+
2749
+ No authorization required
2750
+
2751
+ ### HTTP request headers
2752
+
2753
+ - **Content-Type**: `application/json`
2754
+ - **Accept**: `application/json`
2755
+
2756
+
2757
+ ### HTTP response details
2758
+ | Status code | Description | Response headers |
2759
+ |-------------|-------------|------------------|
2760
+ | **202** | Inspection started | - |
2761
+ | **400** | Invalid request | - |
2762
+ | **409** | Inspector already running | - |
2763
+ | **500** | Internal server error | - |
2764
+
2765
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2766
+
2767
+
2768
+ ## stopCollector
2769
+
2770
+ > stopCollector()
2771
+
2772
+ Stop collection
2773
+
2774
+ ### Example
2775
+
2776
+ ```ts
2777
+ import {
2778
+ Configuration,
2779
+ DefaultApi,
2780
+ } from '@openshift-migration-advisor/agent-sdk';
2781
+ import type { StopCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
2782
+
2783
+ async function example() {
2784
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2785
+ const api = new DefaultApi();
2786
+
2787
+ try {
2788
+ const data = await api.stopCollector();
2789
+ console.log(data);
2790
+ } catch (error) {
2791
+ console.error(error);
2792
+ }
2793
+ }
2794
+
2795
+ // Run the test
2796
+ example().catch(console.error);
2797
+ ```
2798
+
2799
+ ### Parameters
2800
+
2801
+ This endpoint does not need any parameter.
2802
+
2803
+ ### Return type
2804
+
2805
+ `void` (Empty response body)
2806
+
2807
+ ### Authorization
2808
+
2809
+ No authorization required
2810
+
2811
+ ### HTTP request headers
2812
+
2813
+ - **Content-Type**: Not defined
2814
+ - **Accept**: Not defined
2815
+
2816
+
2817
+ ### HTTP response details
2818
+ | Status code | Description | Response headers |
2819
+ |-------------|-------------|------------------|
2820
+ | **204** | Collection stopped | - |
2821
+ | **500** | Internal server error | - |
2822
+
2823
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2824
+
2825
+
2826
+ ## stopForecaster
2827
+
2828
+ > ForecasterStatus stopForecaster()
2829
+
2830
+ Cancel benchmark
2831
+
2832
+ Stops the running benchmark. Already-completed runs are preserved in the database.
2833
+
2834
+ ### Example
2835
+
2836
+ ```ts
2837
+ import {
2838
+ Configuration,
2839
+ DefaultApi,
2840
+ } from '@openshift-migration-advisor/agent-sdk';
2841
+ import type { StopForecasterRequest } from '@openshift-migration-advisor/agent-sdk';
2842
+
2843
+ async function example() {
2844
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2845
+ const api = new DefaultApi();
2846
+
2847
+ try {
2848
+ const data = await api.stopForecaster();
2849
+ console.log(data);
2850
+ } catch (error) {
2851
+ console.error(error);
2852
+ }
2853
+ }
2854
+
2855
+ // Run the test
2856
+ example().catch(console.error);
2857
+ ```
2858
+
2859
+ ### Parameters
2860
+
2861
+ This endpoint does not need any parameter.
2862
+
2863
+ ### Return type
2864
+
2865
+ [**ForecasterStatus**](ForecasterStatus.md)
2866
+
2867
+ ### Authorization
2868
+
2869
+ No authorization required
2870
+
2871
+ ### HTTP request headers
2872
+
2873
+ - **Content-Type**: Not defined
2874
+ - **Accept**: `application/json`
2875
+
2876
+
2877
+ ### HTTP response details
2878
+ | Status code | Description | Response headers |
2879
+ |-------------|-------------|------------------|
2880
+ | **202** | Benchmark canceled, service returned to ready | - |
2881
+ | **404** | No benchmark is running | - |
2882
+ | **500** | Internal server error | - |
2883
+
2884
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2885
+
2886
+
2887
+ ## stopForecasterPair
2888
+
2889
+ > StopForecasterPair202Response stopForecasterPair(name)
2890
+
2891
+ Cancel a single pair
2892
+
2893
+ Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
2894
+
2895
+ ### Example
2896
+
2897
+ ```ts
2898
+ import {
2899
+ Configuration,
2900
+ DefaultApi,
2901
+ } from '@openshift-migration-advisor/agent-sdk';
2902
+ import type { StopForecasterPairRequest } from '@openshift-migration-advisor/agent-sdk';
2903
+
2904
+ async function example() {
2905
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2906
+ const api = new DefaultApi();
2907
+
2908
+ const body = {
2909
+ // string | Pair name as specified in the start request
2910
+ name: name_example,
2911
+ } satisfies StopForecasterPairRequest;
2912
+
2913
+ try {
2914
+ const data = await api.stopForecasterPair(body);
2915
+ console.log(data);
2916
+ } catch (error) {
2917
+ console.error(error);
2918
+ }
2919
+ }
2920
+
2921
+ // Run the test
2922
+ example().catch(console.error);
2923
+ ```
2924
+
2925
+ ### Parameters
2926
+
2927
+
2928
+ | Name | Type | Description | Notes |
2929
+ |------------- | ------------- | ------------- | -------------|
2930
+ | **name** | `string` | Pair name as specified in the start request | [Defaults to `undefined`] |
2931
+
2932
+ ### Return type
2933
+
2934
+ [**StopForecasterPair202Response**](StopForecasterPair202Response.md)
2935
+
2936
+ ### Authorization
2937
+
2938
+ No authorization required
2939
+
2940
+ ### HTTP request headers
2941
+
2942
+ - **Content-Type**: Not defined
2943
+ - **Accept**: `application/json`
2944
+
2945
+
2946
+ ### HTTP response details
2947
+ | Status code | Description | Response headers |
2948
+ |-------------|-------------|------------------|
2949
+ | **202** | Pair canceled | - |
2950
+ | **404** | No benchmark running, or pair not found / already finished | - |
2951
+ | **500** | Internal server error | - |
2952
+
2953
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2954
+
2955
+
2956
+ ## stopInspection
2957
+
2958
+ > InspectorStatus stopInspection()
2959
+
2960
+ Stop inspector entirely
2961
+
2962
+ ### Example
2963
+
2964
+ ```ts
2965
+ import {
2966
+ Configuration,
2967
+ DefaultApi,
2968
+ } from '@openshift-migration-advisor/agent-sdk';
2969
+ import type { StopInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
2970
+
2971
+ async function example() {
2972
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2973
+ const api = new DefaultApi();
2974
+
2975
+ try {
2976
+ const data = await api.stopInspection();
2977
+ console.log(data);
2978
+ } catch (error) {
2979
+ console.error(error);
2980
+ }
2981
+ }
2982
+
2983
+ // Run the test
2984
+ example().catch(console.error);
2985
+ ```
2986
+
2987
+ ### Parameters
2988
+
2989
+ This endpoint does not need any parameter.
2990
+
2991
+ ### Return type
2992
+
2993
+ [**InspectorStatus**](InspectorStatus.md)
2994
+
2995
+ ### Authorization
2996
+
2997
+ No authorization required
2998
+
2999
+ ### HTTP request headers
3000
+
3001
+ - **Content-Type**: Not defined
3002
+ - **Accept**: `application/json`
3003
+
3004
+
3005
+ ### HTTP response details
3006
+ | Status code | Description | Response headers |
3007
+ |-------------|-------------|------------------|
3008
+ | **200** | VMs removed from queue | - |
3009
+ | **400** | Already in canceling state | - |
3010
+ | **404** | Inspector not running | - |
3011
+ | **500** | Internal server error | - |
3012
+
3013
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3014
+
3015
+
3016
+ ## triggerRightsizingCollection
3017
+
3018
+ > RightsizingReportSummary triggerRightsizingCollection(rightsizingCollectRequest)
3019
+
3020
+ Trigger rightsizing metrics collection
3021
+
3022
+ ### Example
3023
+
3024
+ ```ts
3025
+ import {
3026
+ Configuration,
3027
+ DefaultApi,
3028
+ } from '@openshift-migration-advisor/agent-sdk';
3029
+ import type { TriggerRightsizingCollectionRequest } from '@openshift-migration-advisor/agent-sdk';
3030
+
3031
+ async function example() {
3032
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
3033
+ const api = new DefaultApi();
3034
+
3035
+ const body = {
3036
+ // RightsizingCollectRequest
3037
+ rightsizingCollectRequest: ...,
3038
+ } satisfies TriggerRightsizingCollectionRequest;
3039
+
3040
+ try {
3041
+ const data = await api.triggerRightsizingCollection(body);
3042
+ console.log(data);
3043
+ } catch (error) {
3044
+ console.error(error);
3045
+ }
3046
+ }
3047
+
3048
+ // Run the test
3049
+ example().catch(console.error);
3050
+ ```
3051
+
3052
+ ### Parameters
3053
+
3054
+
3055
+ | Name | Type | Description | Notes |
3056
+ |------------- | ------------- | ------------- | -------------|
3057
+ | **rightsizingCollectRequest** | [RightsizingCollectRequest](RightsizingCollectRequest.md) | | |
3058
+
3059
+ ### Return type
3060
+
3061
+ [**RightsizingReportSummary**](RightsizingReportSummary.md)
3062
+
3063
+ ### Authorization
3064
+
3065
+ No authorization required
3066
+
3067
+ ### HTTP request headers
3068
+
3069
+ - **Content-Type**: `application/json`
3070
+ - **Accept**: `application/json`
3071
+
3072
+
3073
+ ### HTTP response details
3074
+ | Status code | Description | Response headers |
3075
+ |-------------|-------------|------------------|
3076
+ | **202** | Collection triggered; returns report | - |
3077
+ | **400** | Invalid request | - |
3078
+ | **500** | Internal server error | - |
3079
+
3080
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3081
+
3082
+
3083
+ ## updateGroup
3084
+
3085
+ > Group updateGroup(id, updateGroupRequest)
3086
+
3087
+ Update group
3088
+
3089
+ ### Example
3090
+
3091
+ ```ts
3092
+ import {
3093
+ Configuration,
3094
+ DefaultApi,
3095
+ } from '@openshift-migration-advisor/agent-sdk';
3096
+ import type { UpdateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
3097
+
3098
+ async function example() {
3099
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
3100
+ const api = new DefaultApi();
3101
+
3102
+ const body = {
3103
+ // string | Group ID
3104
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
3105
+ // UpdateGroupRequest
3106
+ updateGroupRequest: ...,
3107
+ } satisfies UpdateGroupOperationRequest;
3108
+
3109
+ try {
3110
+ const data = await api.updateGroup(body);
3111
+ console.log(data);
3112
+ } catch (error) {
3113
+ console.error(error);
3114
+ }
3115
+ }
3116
+
3117
+ // Run the test
3118
+ example().catch(console.error);
3119
+ ```
3120
+
3121
+ ### Parameters
3122
+
3123
+
3124
+ | Name | Type | Description | Notes |
3125
+ |------------- | ------------- | ------------- | -------------|
3126
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
3127
+ | **updateGroupRequest** | [UpdateGroupRequest](UpdateGroupRequest.md) | | |
3128
+
3129
+ ### Return type
3130
+
3131
+ [**Group**](Group.md)
3132
+
3133
+ ### Authorization
3134
+
3135
+ No authorization required
3136
+
3137
+ ### HTTP request headers
3138
+
3139
+ - **Content-Type**: `application/json`
3140
+ - **Accept**: `application/json`
3141
+
3142
+
3143
+ ### HTTP response details
3144
+ | Status code | Description | Response headers |
3145
+ |-------------|-------------|------------------|
3146
+ | **200** | Group updated | - |
3147
+ | **400** | Invalid request (e.g., invalid filter syntax) | - |
3148
+ | **404** | Group not found | - |
3149
+ | **500** | Internal server error | - |
3150
+
3151
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3152
+
3153
+
3154
+ ## updateLabelVMs
3155
+
3156
+ > updateLabelVMs(label, updateLabelVMsRequest)
3157
+
3158
+ Modify label VM membership (add/remove label to/from VMs)
3159
+
3160
+ ### Example
3161
+
3162
+ ```ts
3163
+ import {
3164
+ Configuration,
3165
+ DefaultApi,
3166
+ } from '@openshift-migration-advisor/agent-sdk';
3167
+ import type { UpdateLabelVMsOperationRequest } from '@openshift-migration-advisor/agent-sdk';
3168
+
3169
+ async function example() {
3170
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
3171
+ const api = new DefaultApi();
3172
+
3173
+ const body = {
3174
+ // string | The label to modify
3175
+ label: label_example,
3176
+ // UpdateLabelVMsRequest
3177
+ updateLabelVMsRequest: ...,
3178
+ } satisfies UpdateLabelVMsOperationRequest;
3179
+
3180
+ try {
3181
+ const data = await api.updateLabelVMs(body);
3182
+ console.log(data);
3183
+ } catch (error) {
3184
+ console.error(error);
3185
+ }
3186
+ }
3187
+
3188
+ // Run the test
3189
+ example().catch(console.error);
3190
+ ```
3191
+
3192
+ ### Parameters
3193
+
3194
+
3195
+ | Name | Type | Description | Notes |
3196
+ |------------- | ------------- | ------------- | -------------|
3197
+ | **label** | `string` | The label to modify | [Defaults to `undefined`] |
3198
+ | **updateLabelVMsRequest** | [UpdateLabelVMsRequest](UpdateLabelVMsRequest.md) | | |
3199
+
3200
+ ### Return type
3201
+
3202
+ `void` (Empty response body)
3203
+
3204
+ ### Authorization
3205
+
3206
+ No authorization required
3207
+
3208
+ ### HTTP request headers
3209
+
3210
+ - **Content-Type**: `application/json`
3211
+ - **Accept**: Not defined
3212
+
3213
+
3214
+ ### HTTP response details
3215
+ | Status code | Description | Response headers |
3216
+ |-------------|-------------|------------------|
3217
+ | **200** | Label operation completed successfully (all VMs updated atomically) | - |
3218
+ | **400** | Invalid request | - |
3219
+ | **404** | One or more VMs not found (no changes made) | - |
3220
+ | **500** | Internal server error | - |
3221
+
3222
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3223
+
3224
+
3225
+ ## updateVM
3226
+
3227
+ > updateVM(id, virtualMachineUpdateRequest)
3228
+
3229
+ Update VM properties
3230
+
3231
+ ### Example
3232
+
3233
+ ```ts
3234
+ import {
3235
+ Configuration,
3236
+ DefaultApi,
3237
+ } from '@openshift-migration-advisor/agent-sdk';
3238
+ import type { UpdateVMRequest } from '@openshift-migration-advisor/agent-sdk';
3239
+
3240
+ async function example() {
3241
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
3242
+ const api = new DefaultApi();
3243
+
3244
+ const body = {
3245
+ // string | VirtualMachine id
3246
+ id: id_example,
3247
+ // VirtualMachineUpdateRequest
3248
+ virtualMachineUpdateRequest: ...,
3249
+ } satisfies UpdateVMRequest;
3250
+
3251
+ try {
3252
+ const data = await api.updateVM(body);
3253
+ console.log(data);
3254
+ } catch (error) {
3255
+ console.error(error);
3256
+ }
3257
+ }
3258
+
3259
+ // Run the test
3260
+ example().catch(console.error);
3261
+ ```
3262
+
3263
+ ### Parameters
3264
+
3265
+
3266
+ | Name | Type | Description | Notes |
3267
+ |------------- | ------------- | ------------- | -------------|
3268
+ | **id** | `string` | VirtualMachine id | [Defaults to `undefined`] |
3269
+ | **virtualMachineUpdateRequest** | [VirtualMachineUpdateRequest](VirtualMachineUpdateRequest.md) | | |
3270
+
3271
+ ### Return type
3272
+
3273
+ `void` (Empty response body)
3274
+
3275
+ ### Authorization
3276
+
3277
+ No authorization required
3278
+
3279
+ ### HTTP request headers
3280
+
3281
+ - **Content-Type**: `application/json`
3282
+ - **Accept**: Not defined
3283
+
3284
+
3285
+ ### HTTP response details
3286
+ | Status code | Description | Response headers |
3287
+ |-------------|-------------|------------------|
3288
+ | **200** | VM updated successfully | - |
3289
+ | **400** | Invalid request | - |
3290
+ | **404** | VM not found | - |
3291
+ | **500** | Internal server error | - |
3292
+
3293
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3294
+
3295
+
3296
+ ## validateInspectorCredentials
3297
+
3298
+ > validateInspectorCredentials(vcenterCredentials)
3299
+
3300
+ Validate vCenter credentials for inspector
3301
+
3302
+ ### Example
3303
+
3304
+ ```ts
3305
+ import {
3306
+ Configuration,
3307
+ DefaultApi,
3308
+ } from '@openshift-migration-advisor/agent-sdk';
3309
+ import type { ValidateInspectorCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
3310
+
3311
+ async function example() {
3312
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
3313
+ const api = new DefaultApi();
3314
+
3315
+ const body = {
3316
+ // VcenterCredentials
3317
+ vcenterCredentials: ...,
3318
+ } satisfies ValidateInspectorCredentialsRequest;
3319
+
3320
+ try {
3321
+ const data = await api.validateInspectorCredentials(body);
3322
+ console.log(data);
3323
+ } catch (error) {
3324
+ console.error(error);
3325
+ }
3326
+ }
3327
+
3328
+ // Run the test
3329
+ example().catch(console.error);
3330
+ ```
3331
+
3332
+ ### Parameters
3333
+
3334
+
3335
+ | Name | Type | Description | Notes |
3336
+ |------------- | ------------- | ------------- | -------------|
3337
+ | **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
3338
+
3339
+ ### Return type
3340
+
3341
+ `void` (Empty response body)
3342
+
3343
+ ### Authorization
3344
+
3345
+ No authorization required
3346
+
3347
+ ### HTTP request headers
3348
+
3349
+ - **Content-Type**: `application/json`
3350
+ - **Accept**: Not defined
3351
+
3352
+
3353
+ ### HTTP response details
3354
+ | Status code | Description | Response headers |
3355
+ |-------------|-------------|------------------|
3356
+ | **200** | Credentials updated successfully | - |
3357
+ | **400** | Bad Credentials | - |
3358
+ | **500** | Internal server error | - |
3359
+
3360
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3361
+