Announcement Banner

tchstnut

updated

4 years ago

T

tchstnut

1 Rookie

•

16 Posts

0

1351

January 30th, 2023 12:00

API and TreeDelete

I have been toying with creating an API call process for my lower teir support to create/delete shares.    I have all process going great, but can't for the life of me figure out the treedelete call and how to pass the path and parameters.   I have reviews the api descriptions but they are not the informative or maybe it is something I am missing:

 

Call 

POSTXXXX:8080/platform/13/job/jobs

Body:

??tried multiple different json parameters.  

 

Anyone have the parameters needed? 

 

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1133

    0

    Posted February 1st, 2023 19:00

    POST to https://IP:8080/platform/12/job/jobs
    
    
    {"paths": ["/ifs/cluser/data/test"],
     "type": "TreeDelete", 
     "allow_dup": true
     }
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1121

    0

    Posted February 2nd, 2023 08:00

     

    DELETE to https://IP:8080/platform/12/quota/quotas?path=/ifs/cluster/data/test&type=directory

     

  • tchstnut

    1 Rookie

    •

    16 Posts

    1127

    1

    Posted February 2nd, 2023 08:00

    Thanks I always over look the simple things:  FYI to remove the quota as well:

    {"paths": ["/ifs/cluser/data/test"],
     "type": "TreeDelete", 
     "allow_dup": true,
     "treedelete_params":{"delete_quotas":true}
     }

     

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1121

    0

    Posted February 2nd, 2023 08:00

    oh, I saw that posted an extra parameter ..nice, that's a good one.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1123

    0

    Posted February 2nd, 2023 08:00

    You want to know how to remove directory quotas with API?