rubrik-sdk-for-python icon indicating copy to clipboard operation
rubrik-sdk-for-python copied to clipboard

add hostnamefilter parameter to get_sql_db()

Open JanosPesti opened this issue 4 years ago • 0 comments

As far as I have experienced, the rubrik.get_sql_db(object_name=, availability_group=<avail_group>) would return all DBs with objname in the name which could be "DB1" and also "DB10" so I cannot specify a unique object.

Describe the solution you'd like

We would need either an object_id parameter, and/or change the object_name parameter to be specific and add a object_namefilter parameter for cases where we want to find all items with the search string in the name.

Describe alternatives you've considered What I did as a workaround was to get the result of the query into a variable and then iterate through the items and if the name equals my search string, assign that item to a new variable.

Additional context

Add any other context or screenshots about the feature request here. image

JanosPesti avatar Oct 20 '20 11:10 JanosPesti