mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 14:10:44 +08:00
Add UME-managed NE sync and batch account tools.
Sync UME inventory into managed NE with source-aware dedupe and cleanup, add one-click account updates for selected or tagged NEs, and expose the new managed NE actions in the web UI while keeping bulk bastion flows compatible with optional target passwords. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
775989cad4
commit
572b0cfd9d
11 changed files with 480 additions and 19 deletions
|
|
@ -239,6 +239,20 @@ export const batchApplyHopManagedNe = (
|
|||
},
|
||||
) => apiPost<{ ok: boolean; updated: number }>("/v1/managed-ne/batch-hop", { ids, hop });
|
||||
|
||||
export const batchApplyAccountManagedNe = (
|
||||
ids: string[],
|
||||
account: {
|
||||
username?: string;
|
||||
password?: string;
|
||||
},
|
||||
) => apiPost<{ ok: boolean; updated: number }>("/v1/managed-ne/batch-account", { ids, account });
|
||||
|
||||
export const syncUmeManagedNe = () =>
|
||||
apiPost<{ inserted: number; updated: number; deleted: number; total_inventory: number }>("/v1/managed-ne/ume-sync", {});
|
||||
|
||||
export const deleteUmeManagedNe = () =>
|
||||
apiDelete<{ deleted: number }>("/v1/managed-ne/ume-sync");
|
||||
|
||||
export const managedNeImportTemplateUrl = (format: "xlsx" | "csv" = "xlsx") =>
|
||||
`/v1/managed-ne/import/template?format=${format}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue