Skip to content

Commit

Permalink
Merge pull request #626 from JJCella/rabbitmq-vhost-topics
Browse files Browse the repository at this point in the history
Add rabbitmq vhost_topics parameter
  • Loading branch information
jeffwecan committed Aug 25, 2020
2 parents de06e55 + 156994b commit 183051f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hvac/api/secrets_engines/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def configure_lease(self, ttl, max_ttl, mount_point=DEFAULT_MOUNT_POINT):
json=params,
)

def create_role(self, name, tags="", vhosts="", mount_point=DEFAULT_MOUNT_POINT):
def create_role(self, name, tags="", vhosts="", vhost_topics="", mount_point=DEFAULT_MOUNT_POINT):
"""This endpoint creates or updates the role definition.
:param name: Specifies the name of the role to create.
Expand All @@ -76,6 +76,8 @@ def create_role(self, name, tags="", vhosts="", mount_point=DEFAULT_MOUNT_POINT)
:type tags: str | unicode
:param vhosts: pecifies a map of virtual hosts to permissions.
:type vhosts: str | unicode
:param vhost_topics: Specifies a map of virtual hosts and exchanges to topic permissions.
:type vhost_topics: str | unicode
:param mount_point: Specifies the place where the secrets engine will be accessible (default: rabbitmq).
:type mount_point: str | unicode
:return: The JSON response of the request.
Expand All @@ -85,6 +87,7 @@ def create_role(self, name, tags="", vhosts="", mount_point=DEFAULT_MOUNT_POINT)
params = {
"tags": tags,
"vhosts": vhosts,
"vhost_topics": vhost_topics
}
return self._adapter.post(
url=api_path,
Expand Down

0 comments on commit 183051f

Please sign in to comment.