@ornncompute/cli 1.0.368 → 1.0.370
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
|
@@ -801,6 +801,13 @@ function nodeResourcePath(id) {
|
|
|
801
801
|
function markNodeClean(request, id, body) {
|
|
802
802
|
return request(`${nodeResourcePath(id)}/mark-clean`, { method: "POST", body });
|
|
803
803
|
}
|
|
804
|
+
function changeManagedNodeFirewall(request, nodeId, body, signal) {
|
|
805
|
+
return request(`${nodeResourcePath(nodeId)}/managed-firewall`, {
|
|
806
|
+
method: "POST",
|
|
807
|
+
body,
|
|
808
|
+
...signal ? { signal } : {}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
804
811
|
function getNode(request, id, signal) {
|
|
805
812
|
return request(nodeResourcePath(id), {
|
|
806
813
|
method: "GET",
|
|
@@ -1214,6 +1221,7 @@ export {
|
|
|
1214
1221
|
assignNode,
|
|
1215
1222
|
cancelDriveUpload,
|
|
1216
1223
|
cancelEnrollmentRun,
|
|
1224
|
+
changeManagedNodeFirewall,
|
|
1217
1225
|
checkExternalVmStatus,
|
|
1218
1226
|
clearDriveContents,
|
|
1219
1227
|
closeDirectVmPort,
|