Skip to content

add hostnamefilter parameter to get_sql_db() #257

@JanosPesti

Description

@JanosPesti

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions