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

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