Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Features #1815

Open
9 of 12 tasks
allmightyspiff opened this issue Jan 6, 2023 · 0 comments
Open
9 of 12 tasks

Search Features #1815

allmightyspiff opened this issue Jan 6, 2023 · 0 comments
Assignees

Comments

@allmightyspiff
Copy link
Member

allmightyspiff commented Jan 6, 2023

I'd like to add the ability to use the SoftLayer_Search service basically all over the place, or at least for the Datatypes supported by it.

Each of these should have their own issue opened to track their completion. This issue will stand in for the whole feature.

TODO

  • Add a Search manager base class.
    These functions should be pretty basic, taking in as parameters anything the API method would take in, and just returning the result.
  • Add a search CLI function slcli search "query"
    • Help message should have the url for the search API docs and the SLDN search article along with a few examples
    • Option for --advanced which will just send the query to the advancedSearch api
    • Option for --types will print out the result of getObjectTypes
  • A search option for slcli vs list --search "query" which should list all vsis that match that query. Might need a special search manager function for this.
  • A search option for slcli vs detail. My thought is that if the input isn't a number, or we get a 404 error, try a search query just in case. If there is more than 1 result, should print them all out.
  • A search option for slcli hw list --search "query"
  • A search option for slcli hw detail. (same as vs basically)

For now this feature will only cover this list of things, but there are other search objects we can add as well.

  • SoftLayer_Ticket
  • SoftLayer_Network_Vlan_Firewall
  • SoftLayer_Network_Vlan
  • SoftLayer_Network_Subnet_IpAddress
  • SoftLayer_Network_Application_Delivery_Controller
  • SoftLayer_Virtual_DedicatedHost
  • SoftLayer_Event_Log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants