Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

16 Posts

1202

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? 

 

1 Rookie

 • 

20.4K Posts

February 1st, 2023 19:00

POST to https://IP:8080/platform/12/job/jobs


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

1 Rookie

 • 

20.4K Posts

February 2nd, 2023 08:00

 

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

 

1 Rookie

 • 

16 Posts

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}
 }

 

1 Rookie

 • 

20.4K Posts

February 2nd, 2023 08:00

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

1 Rookie

 • 

20.4K Posts

February 2nd, 2023 08:00

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

No Events found!

Top