Do you have OneFS API tips or questions that you'd like to share with the OneFS community? If so, you've come to the right place! This thread is an open forum for discussing the OneFS API, and how best to use it. You can share your tips or questions in the comments below.
If you script against the OneFS API, you don't have to worry about scripts breaking across OneFS versions. In fact, Isilon recommends scripting against the OneFS API, whenever possible, instead of relying on the CLI to automate cluster tasks.
My powershell functions and scripts are still using the CLI to gather or set information. So far I've not found anything I can't accomplish from the command line and it has the advantage of keeping my command knowledge fresh. The command output between different versions has caused minor changes to my code but this is only minor.
One feature, CLI or API, I would find helpful is the ability to create multiple shares with a single command. The CLI allows for the collection of the configuration with a single command but to upload the same configuration would need to be completed with multiple commands, e.g. share creation and then setting the ACL for the share. A usage example would be to configure a test (VM) cluster to match a production environment before testing other scripts.
If you know how to get the information you want on the Isilon cluster CLI using an 'isi ...' command you can insert '--debug' into the CLI command after the 'isi' portion and it will show you both the API "path" it used to get the information and also the response in json format.
We can see the API GET call that was issued and the json response. Note that the response includes far more information than the CLI actually displays as a result.
Which version of OneFS are you using? This has the commands for deleting shares, but I don’t see any mention of multiple shares with one command. https://dell.to/3GqV9lq
surely the previous suggestion of using --debug to determine the required API calls from the cli calls used to gather the information required applies ?
I am trying to automate S3 in isilon so that application team can create/modify buckets from there end. API is enabled and user has full privileges, still getting below error when trying to run S3 API:
Caelier
2 Posts
3215
0
Posted August 21st, 2015 06:00
My powershell functions and scripts are still using the CLI to gather or set information. So far I've not found anything I can't accomplish from the command line and it has the advantage of keeping my command knowledge fresh. The command output between different versions has caused minor changes to my code but this is only minor.
One feature, CLI or API, I would find helpful is the ability to create multiple shares with a single command. The CLI allows for the collection of the configuration with a single command but to upload the same configuration would need to be completed with multiple commands, e.g. share creation and then setting the ACL for the share. A usage example would be to configure a test (VM) cluster to match a production environment before testing other scripts.