You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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
These functions should be pretty basic, taking in as parameters anything the API method would take in, and just returning the result.
slcli search "query"
--advanced
which will just send the query to the advancedSearch api--types
will print out the result of getObjectTypesslcli vs list --search "query"
which should list all vsis that match that query. Might need a special search manager function for this.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.slcli hw list --search "query"
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.
The text was updated successfully, but these errors were encountered: