@ornncompute/cli 1.0.366 → 1.0.368
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/package.json
CHANGED
|
@@ -729,6 +729,12 @@ function deleteReservationSshKey(request, reservationId, keyId) {
|
|
|
729
729
|
return request(`/v1/orchestrator/nodes/reservations/${encodeURIComponent(reservationId)}/ssh-keys/${encodeURIComponent(keyId)}`, { method: "DELETE" });
|
|
730
730
|
}
|
|
731
731
|
var reservationEventsPath = "/v1/orchestrator/reservations/ws";
|
|
732
|
+
function getReservationAccess(request, reservationId, signal) {
|
|
733
|
+
return request(`/v1/orchestrator/reservations/${encodeURIComponent(reservationId)}/access`, {
|
|
734
|
+
method: "GET",
|
|
735
|
+
...signal ? { signal } : {}
|
|
736
|
+
});
|
|
737
|
+
}
|
|
732
738
|
|
|
733
739
|
// ../../packages/api-client/dist/orchestrator/node-sanitize.js
|
|
734
740
|
function sanitizePath(nodeId, jobId) {
|
|
@@ -760,6 +766,15 @@ function listSanitizeJobs(request, filter, signal) {
|
|
|
760
766
|
}
|
|
761
767
|
|
|
762
768
|
// ../../packages/api-client/dist/orchestrator/nodes.js
|
|
769
|
+
function listDirectVmPorts(request, nodeId, reservationId, signal) {
|
|
770
|
+
return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports?reservation_id=${encodeURIComponent(reservationId)}`, { method: "GET", ...signal ? { signal } : {} });
|
|
771
|
+
}
|
|
772
|
+
function openDirectVmPort(request, nodeId, reservationId, body) {
|
|
773
|
+
return request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports?reservation_id=${encodeURIComponent(reservationId)}`, { method: "POST", body });
|
|
774
|
+
}
|
|
775
|
+
async function closeDirectVmPort(request, nodeId, reservationId, port) {
|
|
776
|
+
await request(`/v1/orchestrator/nodes/${encodeURIComponent(nodeId)}/ports/${encodeURIComponent(port)}?reservation_id=${encodeURIComponent(reservationId)}`, { method: "DELETE" });
|
|
777
|
+
}
|
|
763
778
|
function nodeQuery(query) {
|
|
764
779
|
const params = new URLSearchParams();
|
|
765
780
|
for (const [key, value] of Object.entries(query)) {
|
|
@@ -1201,6 +1216,7 @@ export {
|
|
|
1201
1216
|
cancelEnrollmentRun,
|
|
1202
1217
|
checkExternalVmStatus,
|
|
1203
1218
|
clearDriveContents,
|
|
1219
|
+
closeDirectVmPort,
|
|
1204
1220
|
closeShellSession,
|
|
1205
1221
|
closeVirtualMachinePort,
|
|
1206
1222
|
completeDiskUpload,
|
|
@@ -1276,6 +1292,7 @@ export {
|
|
|
1276
1292
|
getNodeVirtualMachineCapacity,
|
|
1277
1293
|
getOrganizationStorageUsage,
|
|
1278
1294
|
getRegistryUsage,
|
|
1295
|
+
getReservationAccess,
|
|
1279
1296
|
getReservationAccessSwitch,
|
|
1280
1297
|
getReservationVirtualMachine,
|
|
1281
1298
|
getSoftwareCatalog,
|
|
@@ -1297,6 +1314,7 @@ export {
|
|
|
1297
1314
|
listCatalogImages,
|
|
1298
1315
|
listControllers,
|
|
1299
1316
|
listControlplanes,
|
|
1317
|
+
listDirectVmPorts,
|
|
1300
1318
|
listDiskBuildWorkers,
|
|
1301
1319
|
listDisks,
|
|
1302
1320
|
listDriveContents,
|
|
@@ -1341,6 +1359,7 @@ export {
|
|
|
1341
1359
|
localityGeolocatePath,
|
|
1342
1360
|
markNodeClean,
|
|
1343
1361
|
networksSubscriptionPath,
|
|
1362
|
+
openDirectVmPort,
|
|
1344
1363
|
openVirtualMachinePort,
|
|
1345
1364
|
patchSupplierConnectionConfig,
|
|
1346
1365
|
postDiskObject,
|