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

add hostnamefilter parameter to get_sql_db() #257

Open
JanosPesti opened this issue Oct 20, 2020 · 0 comments
Open

add hostnamefilter parameter to get_sql_db() #257

JanosPesti opened this issue Oct 20, 2020 · 0 comments

Comments

@JanosPesti
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant