I have developed a script to create share and add an owner to it with full permissions.
My only issue is I need to do a check to see if the share exist already.
if someone request a share with the same name as one that exist already it does not throw an error , and my script will just add them to the share instead.
This command gives me the shares on workspace: "My Workspace"
$ ascli aoc admin workspace shared_folder %name:"My Workspace" list
╭───────┬────────────┬─────────┬─────────┬──────────────────┬──────────────────────────────────────╮
│ id │ node_name │ node_id │ file_id │ file.path │ tags.aspera.files.workspace.share_as │
╞═══════╪════════════╪═════════╪═════════╪══════════════════╪══════════════════════════════════════╡
│ 198 │ My Node │ 8669 │ 2465 │ /My Share │ │
│ 785 │ My Node │ 8669 │ 9 │ /EMEA_SE_WS │ │
╰───────┴────────────┴─────────┴─────────┴──────────────────┴──────────────────────────────────────╯
This is the output, but I need the folders under /My Share/Shares.
I have developed a script to create share and add an owner to it with full permissions.
My only issue is I need to do a check to see if the share exist already.
if someone request a share with the same name as one that exist already it does not throw an error , and my script will just add them to the share instead.
This command gives me the shares on workspace: "My Workspace"
This is the output, but I need the folders under
/My Share/Shares.