@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-b4cc95d9b3d0
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.
- package/.openapi-generator/FILES +16 -0
- package/README.md +20 -4
- package/dist/apis/DefaultApi.d.ts +338 -41
- package/dist/apis/DefaultApi.js +374 -46
- package/dist/esm/apis/DefaultApi.d.ts +338 -41
- package/dist/esm/apis/DefaultApi.js +374 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +624 -86
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +713 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +8 -0
package/docs/DefaultApi.md
CHANGED
|
@@ -7,7 +7,9 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
7
7
|
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
8
8
|
| [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
|
|
9
9
|
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
|
|
10
|
+
| [**deleteLabelGlobally**](DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs |
|
|
10
11
|
| [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
|
|
12
|
+
| [**getClusterUtilization**](DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID |
|
|
11
13
|
| [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
|
|
12
14
|
| [**getForecasterDatastores**](DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores |
|
|
13
15
|
| [**getForecasterRuns**](DefaultApi.md#getforecasterruns) | **GET** /forecaster/runs | List benchmark runs |
|
|
@@ -18,17 +20,20 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
18
20
|
| [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
|
|
19
21
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
20
22
|
| [**getLatestRightsizingClusters**](DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report |
|
|
21
|
-
| [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{
|
|
23
|
+
| [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics |
|
|
24
|
+
| [**getRightsizingReportCluster**](DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report |
|
|
22
25
|
| [**getRightsizingReportClusters**](DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report |
|
|
23
26
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
27
|
+
| [**getVMLabels**](DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs |
|
|
24
28
|
| [**getVMUtilization**](DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM |
|
|
25
29
|
| [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
|
|
30
|
+
| [**getVMsFilterOptions**](DefaultApi.md#getvmsfilteroptions) | **GET** /vms/filter-options | Get distinct filter option values for VMs |
|
|
26
31
|
| [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
|
|
27
32
|
| [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
|
|
33
|
+
| [**listRightsizingReportClusters**](DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report |
|
|
28
34
|
| [**listRightsizingReports**](DefaultApi.md#listrightsizingreports) | **GET** /rightsizing | List all rightsizing reports |
|
|
29
35
|
| [**postForecasterPairCapabilities**](DefaultApi.md#postforecasterpaircapabilities) | **POST** /forecaster/capabilities | Compute pair capabilities |
|
|
30
36
|
| [**putForecasterCredentials**](DefaultApi.md#putforecastercredentials) | **PUT** /forecaster/credentials | Verify vCenter credentials and permissions |
|
|
31
|
-
| [**putInspectorCredentials**](DefaultApi.md#putinspectorcredentials) | **PUT** /inspector/credentials | Set or replace inspector credentials |
|
|
32
37
|
| [**putInspectorVddk**](DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball |
|
|
33
38
|
| [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue |
|
|
34
39
|
| [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
|
|
@@ -41,6 +46,9 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
41
46
|
| [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely |
|
|
42
47
|
| [**triggerRightsizingCollection**](DefaultApi.md#triggerrightsizingcollection) | **POST** /rightsizing | Trigger rightsizing metrics collection |
|
|
43
48
|
| [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
|
|
49
|
+
| [**updateLabelVMs**](DefaultApi.md#updatelabelvmsoperation) | **PATCH** /vms/labels/{label} | Modify label VM membership (add/remove label to/from VMs) |
|
|
50
|
+
| [**updateVM**](DefaultApi.md#updatevm) | **PATCH** /vms/{id} | Update VM properties |
|
|
51
|
+
| [**validateInspectorCredentials**](DefaultApi.md#validateinspectorcredentials) | **POST** /inspector/credentials | Validate vCenter credentials for inspector |
|
|
44
52
|
|
|
45
53
|
|
|
46
54
|
|
|
@@ -245,6 +253,73 @@ No authorization required
|
|
|
245
253
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
246
254
|
|
|
247
255
|
|
|
256
|
+
## deleteLabelGlobally
|
|
257
|
+
|
|
258
|
+
> DeleteLabelGloballyResponse deleteLabelGlobally(label)
|
|
259
|
+
|
|
260
|
+
Delete label from all VMs
|
|
261
|
+
|
|
262
|
+
### Example
|
|
263
|
+
|
|
264
|
+
```ts
|
|
265
|
+
import {
|
|
266
|
+
Configuration,
|
|
267
|
+
DefaultApi,
|
|
268
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
269
|
+
import type { DeleteLabelGloballyRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
270
|
+
|
|
271
|
+
async function example() {
|
|
272
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
273
|
+
const api = new DefaultApi();
|
|
274
|
+
|
|
275
|
+
const body = {
|
|
276
|
+
// string | The label to remove from all VMs
|
|
277
|
+
label: label_example,
|
|
278
|
+
} satisfies DeleteLabelGloballyRequest;
|
|
279
|
+
|
|
280
|
+
try {
|
|
281
|
+
const data = await api.deleteLabelGlobally(body);
|
|
282
|
+
console.log(data);
|
|
283
|
+
} catch (error) {
|
|
284
|
+
console.error(error);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Run the test
|
|
289
|
+
example().catch(console.error);
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
| Name | Type | Description | Notes |
|
|
296
|
+
|------------- | ------------- | ------------- | -------------|
|
|
297
|
+
| **label** | `string` | The label to remove from all VMs | [Defaults to `undefined`] |
|
|
298
|
+
|
|
299
|
+
### Return type
|
|
300
|
+
|
|
301
|
+
[**DeleteLabelGloballyResponse**](DeleteLabelGloballyResponse.md)
|
|
302
|
+
|
|
303
|
+
### Authorization
|
|
304
|
+
|
|
305
|
+
No authorization required
|
|
306
|
+
|
|
307
|
+
### HTTP request headers
|
|
308
|
+
|
|
309
|
+
- **Content-Type**: Not defined
|
|
310
|
+
- **Accept**: `application/json`
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### HTTP response details
|
|
314
|
+
| Status code | Description | Response headers |
|
|
315
|
+
|-------------|-------------|------------------|
|
|
316
|
+
| **200** | Label removed globally | - |
|
|
317
|
+
| **400** | Invalid label parameter | - |
|
|
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
|
+
|
|
248
323
|
## getAgentStatus
|
|
249
324
|
|
|
250
325
|
> AgentStatus getAgentStatus()
|
|
@@ -303,6 +378,74 @@ No authorization required
|
|
|
303
378
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
304
379
|
|
|
305
380
|
|
|
381
|
+
## getClusterUtilization
|
|
382
|
+
|
|
383
|
+
> RightsizingClusterResponse getClusterUtilization(clusterId)
|
|
384
|
+
|
|
385
|
+
Get latest cluster utilization by cluster ID
|
|
386
|
+
|
|
387
|
+
### Example
|
|
388
|
+
|
|
389
|
+
```ts
|
|
390
|
+
import {
|
|
391
|
+
Configuration,
|
|
392
|
+
DefaultApi,
|
|
393
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
394
|
+
import type { GetClusterUtilizationRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
395
|
+
|
|
396
|
+
async function example() {
|
|
397
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
398
|
+
const api = new DefaultApi();
|
|
399
|
+
|
|
400
|
+
const body = {
|
|
401
|
+
// string | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
402
|
+
clusterId: clusterId_example,
|
|
403
|
+
} satisfies GetClusterUtilizationRequest;
|
|
404
|
+
|
|
405
|
+
try {
|
|
406
|
+
const data = await api.getClusterUtilization(body);
|
|
407
|
+
console.log(data);
|
|
408
|
+
} catch (error) {
|
|
409
|
+
console.error(error);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Run the test
|
|
414
|
+
example().catch(console.error);
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### Parameters
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
| Name | Type | Description | Notes |
|
|
421
|
+
|------------- | ------------- | ------------- | -------------|
|
|
422
|
+
| **clusterId** | `string` | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\") | [Defaults to `undefined`] |
|
|
423
|
+
|
|
424
|
+
### Return type
|
|
425
|
+
|
|
426
|
+
[**RightsizingClusterResponse**](RightsizingClusterResponse.md)
|
|
427
|
+
|
|
428
|
+
### Authorization
|
|
429
|
+
|
|
430
|
+
No authorization required
|
|
431
|
+
|
|
432
|
+
### HTTP request headers
|
|
433
|
+
|
|
434
|
+
- **Content-Type**: Not defined
|
|
435
|
+
- **Accept**: `application/json`
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
### HTTP response details
|
|
439
|
+
| Status code | Description | Response headers |
|
|
440
|
+
|-------------|-------------|------------------|
|
|
441
|
+
| **200** | Cluster utilization data from the latest completed rightsizing report | - |
|
|
442
|
+
| **400** | Invalid cluster_id format | - |
|
|
443
|
+
| **404** | No completed rightsizing report found, or cluster not found in report | - |
|
|
444
|
+
| **500** | Internal server error | - |
|
|
445
|
+
|
|
446
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
447
|
+
|
|
448
|
+
|
|
306
449
|
## getCollectorStatus
|
|
307
450
|
|
|
308
451
|
> CollectorStatus getCollectorStatus()
|
|
@@ -703,7 +846,7 @@ No authorization required
|
|
|
703
846
|
|
|
704
847
|
## getInspectorStatus
|
|
705
848
|
|
|
706
|
-
> InspectorStatus getInspectorStatus(includeVddk
|
|
849
|
+
> InspectorStatus getInspectorStatus(includeVddk)
|
|
707
850
|
|
|
708
851
|
Get inspector status
|
|
709
852
|
|
|
@@ -723,8 +866,6 @@ async function example() {
|
|
|
723
866
|
const body = {
|
|
724
867
|
// boolean | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. (optional)
|
|
725
868
|
includeVddk: true,
|
|
726
|
-
// boolean | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. (optional)
|
|
727
|
-
includeCredentials: true,
|
|
728
869
|
} satisfies GetInspectorStatusRequest;
|
|
729
870
|
|
|
730
871
|
try {
|
|
@@ -745,7 +886,6 @@ example().catch(console.error);
|
|
|
745
886
|
| Name | Type | Description | Notes |
|
|
746
887
|
|------------- | ------------- | ------------- | -------------|
|
|
747
888
|
| **includeVddk** | `boolean` | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. | [Optional] [Defaults to `false`] |
|
|
748
|
-
| **includeCredentials** | `boolean` | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. | [Optional] [Defaults to `false`] |
|
|
749
889
|
|
|
750
890
|
### Return type
|
|
751
891
|
|
|
@@ -968,7 +1108,7 @@ No authorization required
|
|
|
968
1108
|
|
|
969
1109
|
## getRightsizingReport
|
|
970
1110
|
|
|
971
|
-
> RightsizingReport getRightsizingReport(
|
|
1111
|
+
> RightsizingReport getRightsizingReport(reportId)
|
|
972
1112
|
|
|
973
1113
|
Get a specific rightsizing report with full VM metrics
|
|
974
1114
|
|
|
@@ -987,7 +1127,7 @@ async function example() {
|
|
|
987
1127
|
|
|
988
1128
|
const body = {
|
|
989
1129
|
// string | Report UUID
|
|
990
|
-
|
|
1130
|
+
reportId: reportId_example,
|
|
991
1131
|
} satisfies GetRightsizingReportRequest;
|
|
992
1132
|
|
|
993
1133
|
try {
|
|
@@ -1007,7 +1147,7 @@ example().catch(console.error);
|
|
|
1007
1147
|
|
|
1008
1148
|
| Name | Type | Description | Notes |
|
|
1009
1149
|
|------------- | ------------- | ------------- | -------------|
|
|
1010
|
-
| **
|
|
1150
|
+
| **reportId** | `string` | Report UUID | [Defaults to `undefined`] |
|
|
1011
1151
|
|
|
1012
1152
|
### Return type
|
|
1013
1153
|
|
|
@@ -1033,6 +1173,76 @@ No authorization required
|
|
|
1033
1173
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1034
1174
|
|
|
1035
1175
|
|
|
1176
|
+
## getRightsizingReportCluster
|
|
1177
|
+
|
|
1178
|
+
> RightsizingClusterResponse getRightsizingReportCluster(reportId, clusterId)
|
|
1179
|
+
|
|
1180
|
+
Get utilization for a specific cluster from a specific report
|
|
1181
|
+
|
|
1182
|
+
### Example
|
|
1183
|
+
|
|
1184
|
+
```ts
|
|
1185
|
+
import {
|
|
1186
|
+
Configuration,
|
|
1187
|
+
DefaultApi,
|
|
1188
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
1189
|
+
import type { GetRightsizingReportClusterRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1190
|
+
|
|
1191
|
+
async function example() {
|
|
1192
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1193
|
+
const api = new DefaultApi();
|
|
1194
|
+
|
|
1195
|
+
const body = {
|
|
1196
|
+
// string | Rightsizing report UUID
|
|
1197
|
+
reportId: reportId_example,
|
|
1198
|
+
// string | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
1199
|
+
clusterId: clusterId_example,
|
|
1200
|
+
} satisfies GetRightsizingReportClusterRequest;
|
|
1201
|
+
|
|
1202
|
+
try {
|
|
1203
|
+
const data = await api.getRightsizingReportCluster(body);
|
|
1204
|
+
console.log(data);
|
|
1205
|
+
} catch (error) {
|
|
1206
|
+
console.error(error);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// Run the test
|
|
1211
|
+
example().catch(console.error);
|
|
1212
|
+
```
|
|
1213
|
+
|
|
1214
|
+
### Parameters
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
| Name | Type | Description | Notes |
|
|
1218
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1219
|
+
| **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
|
|
1220
|
+
| **clusterId** | `string` | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\") | [Defaults to `undefined`] |
|
|
1221
|
+
|
|
1222
|
+
### Return type
|
|
1223
|
+
|
|
1224
|
+
[**RightsizingClusterResponse**](RightsizingClusterResponse.md)
|
|
1225
|
+
|
|
1226
|
+
### Authorization
|
|
1227
|
+
|
|
1228
|
+
No authorization required
|
|
1229
|
+
|
|
1230
|
+
### HTTP request headers
|
|
1231
|
+
|
|
1232
|
+
- **Content-Type**: Not defined
|
|
1233
|
+
- **Accept**: `application/json`
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
### HTTP response details
|
|
1237
|
+
| Status code | Description | Response headers |
|
|
1238
|
+
|-------------|-------------|------------------|
|
|
1239
|
+
| **200** | Cluster utilization data | - |
|
|
1240
|
+
| **404** | Report not found, or cluster not found in report | - |
|
|
1241
|
+
| **500** | Internal server error | - |
|
|
1242
|
+
|
|
1243
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1244
|
+
|
|
1245
|
+
|
|
1036
1246
|
## getRightsizingReportClusters
|
|
1037
1247
|
|
|
1038
1248
|
> RightsizingClusterListResponse getRightsizingReportClusters(reportId, byExpression)
|
|
@@ -1170,6 +1380,64 @@ No authorization required
|
|
|
1170
1380
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1171
1381
|
|
|
1172
1382
|
|
|
1383
|
+
## getVMLabels
|
|
1384
|
+
|
|
1385
|
+
> VMLabelsResponse getVMLabels()
|
|
1386
|
+
|
|
1387
|
+
Get all distinct labels in use across VMs
|
|
1388
|
+
|
|
1389
|
+
### Example
|
|
1390
|
+
|
|
1391
|
+
```ts
|
|
1392
|
+
import {
|
|
1393
|
+
Configuration,
|
|
1394
|
+
DefaultApi,
|
|
1395
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
1396
|
+
import type { GetVMLabelsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1397
|
+
|
|
1398
|
+
async function example() {
|
|
1399
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1400
|
+
const api = new DefaultApi();
|
|
1401
|
+
|
|
1402
|
+
try {
|
|
1403
|
+
const data = await api.getVMLabels();
|
|
1404
|
+
console.log(data);
|
|
1405
|
+
} catch (error) {
|
|
1406
|
+
console.error(error);
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
// Run the test
|
|
1411
|
+
example().catch(console.error);
|
|
1412
|
+
```
|
|
1413
|
+
|
|
1414
|
+
### Parameters
|
|
1415
|
+
|
|
1416
|
+
This endpoint does not need any parameter.
|
|
1417
|
+
|
|
1418
|
+
### Return type
|
|
1419
|
+
|
|
1420
|
+
[**VMLabelsResponse**](VMLabelsResponse.md)
|
|
1421
|
+
|
|
1422
|
+
### Authorization
|
|
1423
|
+
|
|
1424
|
+
No authorization required
|
|
1425
|
+
|
|
1426
|
+
### HTTP request headers
|
|
1427
|
+
|
|
1428
|
+
- **Content-Type**: Not defined
|
|
1429
|
+
- **Accept**: `application/json`
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
### HTTP response details
|
|
1433
|
+
| Status code | Description | Response headers |
|
|
1434
|
+
|-------------|-------------|------------------|
|
|
1435
|
+
| **200** | List of distinct labels | - |
|
|
1436
|
+
| **500** | Internal server error | - |
|
|
1437
|
+
|
|
1438
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1439
|
+
|
|
1440
|
+
|
|
1173
1441
|
## getVMUtilization
|
|
1174
1442
|
|
|
1175
1443
|
> VmUtilizationDetails getVMUtilization(id)
|
|
@@ -1313,11 +1581,11 @@ No authorization required
|
|
|
1313
1581
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1314
1582
|
|
|
1315
1583
|
|
|
1316
|
-
##
|
|
1584
|
+
## getVMsFilterOptions
|
|
1317
1585
|
|
|
1318
|
-
>
|
|
1586
|
+
> VMFilterOptionsResponse getVMsFilterOptions()
|
|
1319
1587
|
|
|
1320
|
-
Get
|
|
1588
|
+
Get distinct filter option values for VMs
|
|
1321
1589
|
|
|
1322
1590
|
### Example
|
|
1323
1591
|
|
|
@@ -1326,14 +1594,14 @@ import {
|
|
|
1326
1594
|
Configuration,
|
|
1327
1595
|
DefaultApi,
|
|
1328
1596
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1329
|
-
import type {
|
|
1597
|
+
import type { GetVMsFilterOptionsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1330
1598
|
|
|
1331
1599
|
async function example() {
|
|
1332
1600
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1333
1601
|
const api = new DefaultApi();
|
|
1334
1602
|
|
|
1335
1603
|
try {
|
|
1336
|
-
const data = await api.
|
|
1604
|
+
const data = await api.getVMsFilterOptions();
|
|
1337
1605
|
console.log(data);
|
|
1338
1606
|
} catch (error) {
|
|
1339
1607
|
console.error(error);
|
|
@@ -1350,7 +1618,7 @@ This endpoint does not need any parameter.
|
|
|
1350
1618
|
|
|
1351
1619
|
### Return type
|
|
1352
1620
|
|
|
1353
|
-
[**
|
|
1621
|
+
[**VMFilterOptionsResponse**](VMFilterOptionsResponse.md)
|
|
1354
1622
|
|
|
1355
1623
|
### Authorization
|
|
1356
1624
|
|
|
@@ -1365,16 +1633,17 @@ No authorization required
|
|
|
1365
1633
|
### HTTP response details
|
|
1366
1634
|
| Status code | Description | Response headers |
|
|
1367
1635
|
|-------------|-------------|------------------|
|
|
1368
|
-
| **200** |
|
|
1636
|
+
| **200** | Filter options | - |
|
|
1637
|
+
| **500** | Internal server error | - |
|
|
1369
1638
|
|
|
1370
1639
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1371
1640
|
|
|
1372
1641
|
|
|
1373
|
-
##
|
|
1642
|
+
## getVersion
|
|
1374
1643
|
|
|
1375
|
-
>
|
|
1644
|
+
> VersionInfo getVersion()
|
|
1376
1645
|
|
|
1377
|
-
|
|
1646
|
+
Get agent version information
|
|
1378
1647
|
|
|
1379
1648
|
### Example
|
|
1380
1649
|
|
|
@@ -1383,23 +1652,14 @@ import {
|
|
|
1383
1652
|
Configuration,
|
|
1384
1653
|
DefaultApi,
|
|
1385
1654
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1386
|
-
import type {
|
|
1655
|
+
import type { GetVersionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1387
1656
|
|
|
1388
1657
|
async function example() {
|
|
1389
1658
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1390
1659
|
const api = new DefaultApi();
|
|
1391
1660
|
|
|
1392
|
-
const body = {
|
|
1393
|
-
// string | Filter groups by name (case-insensitive substring match) (optional)
|
|
1394
|
-
byName: byName_example,
|
|
1395
|
-
// number | Page number (1-indexed) (optional)
|
|
1396
|
-
page: 56,
|
|
1397
|
-
// number | Number of groups per page (optional)
|
|
1398
|
-
pageSize: 56,
|
|
1399
|
-
} satisfies ListGroupsRequest;
|
|
1400
|
-
|
|
1401
1661
|
try {
|
|
1402
|
-
const data = await api.
|
|
1662
|
+
const data = await api.getVersion();
|
|
1403
1663
|
console.log(data);
|
|
1404
1664
|
} catch (error) {
|
|
1405
1665
|
console.error(error);
|
|
@@ -1412,16 +1672,11 @@ example().catch(console.error);
|
|
|
1412
1672
|
|
|
1413
1673
|
### Parameters
|
|
1414
1674
|
|
|
1415
|
-
|
|
1416
|
-
| Name | Type | Description | Notes |
|
|
1417
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1418
|
-
| **byName** | `string` | Filter groups by name (case-insensitive substring match) | [Optional] [Defaults to `undefined`] |
|
|
1419
|
-
| **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
|
|
1420
|
-
| **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
|
|
1675
|
+
This endpoint does not need any parameter.
|
|
1421
1676
|
|
|
1422
1677
|
### Return type
|
|
1423
1678
|
|
|
1424
|
-
[**
|
|
1679
|
+
[**VersionInfo**](VersionInfo.md)
|
|
1425
1680
|
|
|
1426
1681
|
### Authorization
|
|
1427
1682
|
|
|
@@ -1436,18 +1691,16 @@ No authorization required
|
|
|
1436
1691
|
### HTTP response details
|
|
1437
1692
|
| Status code | Description | Response headers |
|
|
1438
1693
|
|-------------|-------------|------------------|
|
|
1439
|
-
| **200** |
|
|
1440
|
-
| **400** | Invalid filter expression | - |
|
|
1441
|
-
| **500** | Internal server error | - |
|
|
1694
|
+
| **200** | Version information | - |
|
|
1442
1695
|
|
|
1443
1696
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1444
1697
|
|
|
1445
1698
|
|
|
1446
|
-
##
|
|
1699
|
+
## listGroups
|
|
1447
1700
|
|
|
1448
|
-
>
|
|
1701
|
+
> GroupListResponse listGroups(byName, page, pageSize)
|
|
1449
1702
|
|
|
1450
|
-
List all
|
|
1703
|
+
List all groups
|
|
1451
1704
|
|
|
1452
1705
|
### Example
|
|
1453
1706
|
|
|
@@ -1456,14 +1709,23 @@ import {
|
|
|
1456
1709
|
Configuration,
|
|
1457
1710
|
DefaultApi,
|
|
1458
1711
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1459
|
-
import type {
|
|
1712
|
+
import type { ListGroupsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1460
1713
|
|
|
1461
1714
|
async function example() {
|
|
1462
1715
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1463
1716
|
const api = new DefaultApi();
|
|
1464
1717
|
|
|
1718
|
+
const body = {
|
|
1719
|
+
// string | Filter groups by name (case-insensitive substring match) (optional)
|
|
1720
|
+
byName: byName_example,
|
|
1721
|
+
// number | Page number (1-indexed) (optional)
|
|
1722
|
+
page: 56,
|
|
1723
|
+
// number | Number of groups per page (optional)
|
|
1724
|
+
pageSize: 56,
|
|
1725
|
+
} satisfies ListGroupsRequest;
|
|
1726
|
+
|
|
1465
1727
|
try {
|
|
1466
|
-
const data = await api.
|
|
1728
|
+
const data = await api.listGroups(body);
|
|
1467
1729
|
console.log(data);
|
|
1468
1730
|
} catch (error) {
|
|
1469
1731
|
console.error(error);
|
|
@@ -1476,11 +1738,16 @@ example().catch(console.error);
|
|
|
1476
1738
|
|
|
1477
1739
|
### Parameters
|
|
1478
1740
|
|
|
1479
|
-
|
|
1741
|
+
|
|
1742
|
+
| Name | Type | Description | Notes |
|
|
1743
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1744
|
+
| **byName** | `string` | Filter groups by name (case-insensitive substring match) | [Optional] [Defaults to `undefined`] |
|
|
1745
|
+
| **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
|
|
1746
|
+
| **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
|
|
1480
1747
|
|
|
1481
1748
|
### Return type
|
|
1482
1749
|
|
|
1483
|
-
[**
|
|
1750
|
+
[**GroupListResponse**](GroupListResponse.md)
|
|
1484
1751
|
|
|
1485
1752
|
### Authorization
|
|
1486
1753
|
|
|
@@ -1495,19 +1762,18 @@ No authorization required
|
|
|
1495
1762
|
### HTTP response details
|
|
1496
1763
|
| Status code | Description | Response headers |
|
|
1497
1764
|
|-------------|-------------|------------------|
|
|
1498
|
-
| **200** | List of
|
|
1765
|
+
| **200** | List of groups | - |
|
|
1766
|
+
| **400** | Invalid filter expression | - |
|
|
1499
1767
|
| **500** | Internal server error | - |
|
|
1500
1768
|
|
|
1501
1769
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1502
1770
|
|
|
1503
1771
|
|
|
1504
|
-
##
|
|
1505
|
-
|
|
1506
|
-
> Array<PairCapability> postForecasterPairCapabilities(pairCapabilityRequest)
|
|
1772
|
+
## listRightsizingReportClusters
|
|
1507
1773
|
|
|
1508
|
-
|
|
1774
|
+
> RightsizingClusterListResponse listRightsizingReportClusters(reportId, byExpression)
|
|
1509
1775
|
|
|
1510
|
-
|
|
1776
|
+
Get cluster-level utilization aggregates for a specific report
|
|
1511
1777
|
|
|
1512
1778
|
### Example
|
|
1513
1779
|
|
|
@@ -1516,19 +1782,21 @@ import {
|
|
|
1516
1782
|
Configuration,
|
|
1517
1783
|
DefaultApi,
|
|
1518
1784
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1519
|
-
import type {
|
|
1785
|
+
import type { ListRightsizingReportClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1520
1786
|
|
|
1521
1787
|
async function example() {
|
|
1522
1788
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1523
1789
|
const api = new DefaultApi();
|
|
1524
1790
|
|
|
1525
1791
|
const body = {
|
|
1526
|
-
//
|
|
1527
|
-
|
|
1528
|
-
|
|
1792
|
+
// string | Rightsizing report UUID
|
|
1793
|
+
reportId: reportId_example,
|
|
1794
|
+
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1795
|
+
byExpression: byExpression_example,
|
|
1796
|
+
} satisfies ListRightsizingReportClustersRequest;
|
|
1529
1797
|
|
|
1530
1798
|
try {
|
|
1531
|
-
const data = await api.
|
|
1799
|
+
const data = await api.listRightsizingReportClusters(body);
|
|
1532
1800
|
console.log(data);
|
|
1533
1801
|
} catch (error) {
|
|
1534
1802
|
console.error(error);
|
|
@@ -1544,11 +1812,12 @@ example().catch(console.error);
|
|
|
1544
1812
|
|
|
1545
1813
|
| Name | Type | Description | Notes |
|
|
1546
1814
|
|------------- | ------------- | ------------- | -------------|
|
|
1547
|
-
| **
|
|
1815
|
+
| **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
|
|
1816
|
+
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1548
1817
|
|
|
1549
1818
|
### Return type
|
|
1550
1819
|
|
|
1551
|
-
[**
|
|
1820
|
+
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1552
1821
|
|
|
1553
1822
|
### Authorization
|
|
1554
1823
|
|
|
@@ -1556,27 +1825,85 @@ No authorization required
|
|
|
1556
1825
|
|
|
1557
1826
|
### HTTP request headers
|
|
1558
1827
|
|
|
1559
|
-
- **Content-Type**:
|
|
1828
|
+
- **Content-Type**: Not defined
|
|
1560
1829
|
- **Accept**: `application/json`
|
|
1561
1830
|
|
|
1562
1831
|
|
|
1563
1832
|
### HTTP response details
|
|
1564
1833
|
| Status code | Description | Response headers |
|
|
1565
1834
|
|-------------|-------------|------------------|
|
|
1566
|
-
| **200** |
|
|
1567
|
-
| **
|
|
1835
|
+
| **200** | Cluster utilization aggregates | - |
|
|
1836
|
+
| **404** | Report not found | - |
|
|
1568
1837
|
| **500** | Internal server error | - |
|
|
1569
1838
|
|
|
1570
1839
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1571
1840
|
|
|
1572
1841
|
|
|
1573
|
-
##
|
|
1842
|
+
## listRightsizingReports
|
|
1574
1843
|
|
|
1575
|
-
>
|
|
1844
|
+
> RightsizingReportListResponse listRightsizingReports()
|
|
1576
1845
|
|
|
1577
|
-
|
|
1846
|
+
List all rightsizing reports
|
|
1578
1847
|
|
|
1579
|
-
|
|
1848
|
+
### Example
|
|
1849
|
+
|
|
1850
|
+
```ts
|
|
1851
|
+
import {
|
|
1852
|
+
Configuration,
|
|
1853
|
+
DefaultApi,
|
|
1854
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
1855
|
+
import type { ListRightsizingReportsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1856
|
+
|
|
1857
|
+
async function example() {
|
|
1858
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1859
|
+
const api = new DefaultApi();
|
|
1860
|
+
|
|
1861
|
+
try {
|
|
1862
|
+
const data = await api.listRightsizingReports();
|
|
1863
|
+
console.log(data);
|
|
1864
|
+
} catch (error) {
|
|
1865
|
+
console.error(error);
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
// Run the test
|
|
1870
|
+
example().catch(console.error);
|
|
1871
|
+
```
|
|
1872
|
+
|
|
1873
|
+
### Parameters
|
|
1874
|
+
|
|
1875
|
+
This endpoint does not need any parameter.
|
|
1876
|
+
|
|
1877
|
+
### Return type
|
|
1878
|
+
|
|
1879
|
+
[**RightsizingReportListResponse**](RightsizingReportListResponse.md)
|
|
1880
|
+
|
|
1881
|
+
### Authorization
|
|
1882
|
+
|
|
1883
|
+
No authorization required
|
|
1884
|
+
|
|
1885
|
+
### HTTP request headers
|
|
1886
|
+
|
|
1887
|
+
- **Content-Type**: Not defined
|
|
1888
|
+
- **Accept**: `application/json`
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
### HTTP response details
|
|
1892
|
+
| Status code | Description | Response headers |
|
|
1893
|
+
|-------------|-------------|------------------|
|
|
1894
|
+
| **200** | List of rightsizing reports | - |
|
|
1895
|
+
| **500** | Internal server error | - |
|
|
1896
|
+
|
|
1897
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
## postForecasterPairCapabilities
|
|
1901
|
+
|
|
1902
|
+
> Array<PairCapability> postForecasterPairCapabilities(pairCapabilityRequest)
|
|
1903
|
+
|
|
1904
|
+
Compute pair capabilities
|
|
1905
|
+
|
|
1906
|
+
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.
|
|
1580
1907
|
|
|
1581
1908
|
### Example
|
|
1582
1909
|
|
|
@@ -1585,19 +1912,19 @@ import {
|
|
|
1585
1912
|
Configuration,
|
|
1586
1913
|
DefaultApi,
|
|
1587
1914
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1588
|
-
import type {
|
|
1915
|
+
import type { PostForecasterPairCapabilitiesRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1589
1916
|
|
|
1590
1917
|
async function example() {
|
|
1591
1918
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1592
1919
|
const api = new DefaultApi();
|
|
1593
1920
|
|
|
1594
1921
|
const body = {
|
|
1595
|
-
//
|
|
1596
|
-
|
|
1597
|
-
} satisfies
|
|
1922
|
+
// PairCapabilityRequest
|
|
1923
|
+
pairCapabilityRequest: ...,
|
|
1924
|
+
} satisfies PostForecasterPairCapabilitiesRequest;
|
|
1598
1925
|
|
|
1599
1926
|
try {
|
|
1600
|
-
const data = await api.
|
|
1927
|
+
const data = await api.postForecasterPairCapabilities(body);
|
|
1601
1928
|
console.log(data);
|
|
1602
1929
|
} catch (error) {
|
|
1603
1930
|
console.error(error);
|
|
@@ -1613,11 +1940,11 @@ example().catch(console.error);
|
|
|
1613
1940
|
|
|
1614
1941
|
| Name | Type | Description | Notes |
|
|
1615
1942
|
|------------- | ------------- | ------------- | -------------|
|
|
1616
|
-
| **
|
|
1943
|
+
| **pairCapabilityRequest** | [PairCapabilityRequest](PairCapabilityRequest.md) | | |
|
|
1617
1944
|
|
|
1618
1945
|
### Return type
|
|
1619
1946
|
|
|
1620
|
-
|
|
1947
|
+
[**Array<PairCapability>**](PairCapability.md)
|
|
1621
1948
|
|
|
1622
1949
|
### Authorization
|
|
1623
1950
|
|
|
@@ -1632,19 +1959,20 @@ No authorization required
|
|
|
1632
1959
|
### HTTP response details
|
|
1633
1960
|
| Status code | Description | Response headers |
|
|
1634
1961
|
|-------------|-------------|------------------|
|
|
1635
|
-
| **200** |
|
|
1636
|
-
| **400** |
|
|
1637
|
-
| **403** | Authentication succeeded but user lacks required privileges | - |
|
|
1962
|
+
| **200** | Capabilities per pair | - |
|
|
1963
|
+
| **400** | Datastore not found | - |
|
|
1638
1964
|
| **500** | Internal server error | - |
|
|
1639
1965
|
|
|
1640
1966
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1641
1967
|
|
|
1642
1968
|
|
|
1643
|
-
##
|
|
1969
|
+
## putForecasterCredentials
|
|
1970
|
+
|
|
1971
|
+
> putForecasterCredentials(vcenterCredentials)
|
|
1644
1972
|
|
|
1645
|
-
|
|
1973
|
+
Verify vCenter credentials and permissions
|
|
1646
1974
|
|
|
1647
|
-
|
|
1975
|
+
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.
|
|
1648
1976
|
|
|
1649
1977
|
### Example
|
|
1650
1978
|
|
|
@@ -1653,7 +1981,7 @@ import {
|
|
|
1653
1981
|
Configuration,
|
|
1654
1982
|
DefaultApi,
|
|
1655
1983
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1656
|
-
import type {
|
|
1984
|
+
import type { PutForecasterCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1657
1985
|
|
|
1658
1986
|
async function example() {
|
|
1659
1987
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
@@ -1662,10 +1990,10 @@ async function example() {
|
|
|
1662
1990
|
const body = {
|
|
1663
1991
|
// VcenterCredentials
|
|
1664
1992
|
vcenterCredentials: ...,
|
|
1665
|
-
} satisfies
|
|
1993
|
+
} satisfies PutForecasterCredentialsRequest;
|
|
1666
1994
|
|
|
1667
1995
|
try {
|
|
1668
|
-
const data = await api.
|
|
1996
|
+
const data = await api.putForecasterCredentials(body);
|
|
1669
1997
|
console.log(data);
|
|
1670
1998
|
} catch (error) {
|
|
1671
1999
|
console.error(error);
|
|
@@ -1694,14 +2022,15 @@ No authorization required
|
|
|
1694
2022
|
### HTTP request headers
|
|
1695
2023
|
|
|
1696
2024
|
- **Content-Type**: `application/json`
|
|
1697
|
-
- **Accept**:
|
|
2025
|
+
- **Accept**: `application/json`
|
|
1698
2026
|
|
|
1699
2027
|
|
|
1700
2028
|
### HTTP response details
|
|
1701
2029
|
| Status code | Description | Response headers |
|
|
1702
2030
|
|-------------|-------------|------------------|
|
|
1703
|
-
| **200** | Credentials
|
|
1704
|
-
| **400** |
|
|
2031
|
+
| **200** | Credentials valid and all required privileges are granted | - |
|
|
2032
|
+
| **400** | Invalid credentials or unreachable vCenter | - |
|
|
2033
|
+
| **403** | Authentication succeeded but user lacks required privileges | - |
|
|
1705
2034
|
| **500** | Internal server error | - |
|
|
1706
2035
|
|
|
1707
2036
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -2503,3 +2832,212 @@ No authorization required
|
|
|
2503
2832
|
|
|
2504
2833
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2505
2834
|
|
|
2835
|
+
|
|
2836
|
+
## updateLabelVMs
|
|
2837
|
+
|
|
2838
|
+
> updateLabelVMs(label, updateLabelVMsRequest)
|
|
2839
|
+
|
|
2840
|
+
Modify label VM membership (add/remove label to/from VMs)
|
|
2841
|
+
|
|
2842
|
+
### Example
|
|
2843
|
+
|
|
2844
|
+
```ts
|
|
2845
|
+
import {
|
|
2846
|
+
Configuration,
|
|
2847
|
+
DefaultApi,
|
|
2848
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
2849
|
+
import type { UpdateLabelVMsOperationRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
2850
|
+
|
|
2851
|
+
async function example() {
|
|
2852
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
2853
|
+
const api = new DefaultApi();
|
|
2854
|
+
|
|
2855
|
+
const body = {
|
|
2856
|
+
// string | The label to modify
|
|
2857
|
+
label: label_example,
|
|
2858
|
+
// UpdateLabelVMsRequest
|
|
2859
|
+
updateLabelVMsRequest: ...,
|
|
2860
|
+
} satisfies UpdateLabelVMsOperationRequest;
|
|
2861
|
+
|
|
2862
|
+
try {
|
|
2863
|
+
const data = await api.updateLabelVMs(body);
|
|
2864
|
+
console.log(data);
|
|
2865
|
+
} catch (error) {
|
|
2866
|
+
console.error(error);
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
// Run the test
|
|
2871
|
+
example().catch(console.error);
|
|
2872
|
+
```
|
|
2873
|
+
|
|
2874
|
+
### Parameters
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
| Name | Type | Description | Notes |
|
|
2878
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2879
|
+
| **label** | `string` | The label to modify | [Defaults to `undefined`] |
|
|
2880
|
+
| **updateLabelVMsRequest** | [UpdateLabelVMsRequest](UpdateLabelVMsRequest.md) | | |
|
|
2881
|
+
|
|
2882
|
+
### Return type
|
|
2883
|
+
|
|
2884
|
+
`void` (Empty response body)
|
|
2885
|
+
|
|
2886
|
+
### Authorization
|
|
2887
|
+
|
|
2888
|
+
No authorization required
|
|
2889
|
+
|
|
2890
|
+
### HTTP request headers
|
|
2891
|
+
|
|
2892
|
+
- **Content-Type**: `application/json`
|
|
2893
|
+
- **Accept**: Not defined
|
|
2894
|
+
|
|
2895
|
+
|
|
2896
|
+
### HTTP response details
|
|
2897
|
+
| Status code | Description | Response headers |
|
|
2898
|
+
|-------------|-------------|------------------|
|
|
2899
|
+
| **200** | Label operation completed successfully (all VMs updated atomically) | - |
|
|
2900
|
+
| **400** | Invalid request | - |
|
|
2901
|
+
| **404** | One or more VMs not found (no changes made) | - |
|
|
2902
|
+
| **500** | Internal server error | - |
|
|
2903
|
+
|
|
2904
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
## updateVM
|
|
2908
|
+
|
|
2909
|
+
> updateVM(id, virtualMachineUpdateRequest)
|
|
2910
|
+
|
|
2911
|
+
Update VM properties
|
|
2912
|
+
|
|
2913
|
+
### Example
|
|
2914
|
+
|
|
2915
|
+
```ts
|
|
2916
|
+
import {
|
|
2917
|
+
Configuration,
|
|
2918
|
+
DefaultApi,
|
|
2919
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
2920
|
+
import type { UpdateVMRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
2921
|
+
|
|
2922
|
+
async function example() {
|
|
2923
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
2924
|
+
const api = new DefaultApi();
|
|
2925
|
+
|
|
2926
|
+
const body = {
|
|
2927
|
+
// string | VirtualMachine id
|
|
2928
|
+
id: id_example,
|
|
2929
|
+
// VirtualMachineUpdateRequest
|
|
2930
|
+
virtualMachineUpdateRequest: ...,
|
|
2931
|
+
} satisfies UpdateVMRequest;
|
|
2932
|
+
|
|
2933
|
+
try {
|
|
2934
|
+
const data = await api.updateVM(body);
|
|
2935
|
+
console.log(data);
|
|
2936
|
+
} catch (error) {
|
|
2937
|
+
console.error(error);
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
// Run the test
|
|
2942
|
+
example().catch(console.error);
|
|
2943
|
+
```
|
|
2944
|
+
|
|
2945
|
+
### Parameters
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
| Name | Type | Description | Notes |
|
|
2949
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2950
|
+
| **id** | `string` | VirtualMachine id | [Defaults to `undefined`] |
|
|
2951
|
+
| **virtualMachineUpdateRequest** | [VirtualMachineUpdateRequest](VirtualMachineUpdateRequest.md) | | |
|
|
2952
|
+
|
|
2953
|
+
### Return type
|
|
2954
|
+
|
|
2955
|
+
`void` (Empty response body)
|
|
2956
|
+
|
|
2957
|
+
### Authorization
|
|
2958
|
+
|
|
2959
|
+
No authorization required
|
|
2960
|
+
|
|
2961
|
+
### HTTP request headers
|
|
2962
|
+
|
|
2963
|
+
- **Content-Type**: `application/json`
|
|
2964
|
+
- **Accept**: Not defined
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
### HTTP response details
|
|
2968
|
+
| Status code | Description | Response headers |
|
|
2969
|
+
|-------------|-------------|------------------|
|
|
2970
|
+
| **200** | VM updated successfully | - |
|
|
2971
|
+
| **400** | Invalid request | - |
|
|
2972
|
+
| **404** | VM not found | - |
|
|
2973
|
+
| **500** | Internal server error | - |
|
|
2974
|
+
|
|
2975
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
## validateInspectorCredentials
|
|
2979
|
+
|
|
2980
|
+
> validateInspectorCredentials(vcenterCredentials)
|
|
2981
|
+
|
|
2982
|
+
Validate vCenter credentials for inspector
|
|
2983
|
+
|
|
2984
|
+
### Example
|
|
2985
|
+
|
|
2986
|
+
```ts
|
|
2987
|
+
import {
|
|
2988
|
+
Configuration,
|
|
2989
|
+
DefaultApi,
|
|
2990
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
2991
|
+
import type { ValidateInspectorCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
2992
|
+
|
|
2993
|
+
async function example() {
|
|
2994
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
2995
|
+
const api = new DefaultApi();
|
|
2996
|
+
|
|
2997
|
+
const body = {
|
|
2998
|
+
// VcenterCredentials
|
|
2999
|
+
vcenterCredentials: ...,
|
|
3000
|
+
} satisfies ValidateInspectorCredentialsRequest;
|
|
3001
|
+
|
|
3002
|
+
try {
|
|
3003
|
+
const data = await api.validateInspectorCredentials(body);
|
|
3004
|
+
console.log(data);
|
|
3005
|
+
} catch (error) {
|
|
3006
|
+
console.error(error);
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
// Run the test
|
|
3011
|
+
example().catch(console.error);
|
|
3012
|
+
```
|
|
3013
|
+
|
|
3014
|
+
### Parameters
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
| Name | Type | Description | Notes |
|
|
3018
|
+
|------------- | ------------- | ------------- | -------------|
|
|
3019
|
+
| **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
|
|
3020
|
+
|
|
3021
|
+
### Return type
|
|
3022
|
+
|
|
3023
|
+
`void` (Empty response body)
|
|
3024
|
+
|
|
3025
|
+
### Authorization
|
|
3026
|
+
|
|
3027
|
+
No authorization required
|
|
3028
|
+
|
|
3029
|
+
### HTTP request headers
|
|
3030
|
+
|
|
3031
|
+
- **Content-Type**: `application/json`
|
|
3032
|
+
- **Accept**: Not defined
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
### HTTP response details
|
|
3036
|
+
| Status code | Description | Response headers |
|
|
3037
|
+
|-------------|-------------|------------------|
|
|
3038
|
+
| **200** | Credentials updated successfully | - |
|
|
3039
|
+
| **400** | Bad Credentials | - |
|
|
3040
|
+
| **500** | Internal server error | - |
|
|
3041
|
+
|
|
3042
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
3043
|
+
|