RabbitMQ secrets engine (API)
Last updated
Last updated
This is the API documentation for the Vault RabbitMQ secrets engine. For general information about the usage and operation of the RabbitMQ secrets engine, please see the RabbitMQ documentation.
This documentation assumes the RabbitMQ secrets engine is enabled at the /rabbitmq
path in Vault. Since it is possible to enable secrets engines at any location, please update your API calls accordingly.
This endpoint configures the connection string used to communicate with RabbitMQ.
Method | Path |
---|---|
connection_uri
(string: <required>)
– Specifies the RabbitMQ connection URI.
username
(string: <required>)
– Specifies the RabbitMQ management administrator username.
password
(string: <required>)
– Specifies the RabbitMQ management administrator password.
verify_connection
(bool: true)
– Specifies whether to verify connection URI, username, and password.
password_policy
(string: "")
- Specifies a password policy to use when creating dynamic credentials. Defaults to generating an alphanumeric password if not set.
username_template
(string)
- Template describing how dynamic usernames are generated.
This endpoint configures the lease settings for generated credentials.
ttl
(int: 0)
– Specifies the lease ttl provided in seconds.
max_ttl
(int: 0)
– Specifies the maximum ttl provided in seconds.
This endpoint creates or updates the role definition.
name
(string: <required>)
– Specifies the name of the role to create. This is specified as part of the URL.
tags
(string: "")
– Specifies a comma-separated RabbitMQ management tags.
vhosts
(string: "")
– Specifies a map of virtual hosts to permissions.
vhost_topics
(string: "")
– Specifies a map of virtual hosts and exchanges to topic permissions. This option requires RabbitMQ 3.7.0 or later.
This endpoint queries the role definition.
name
(string: <required>)
– Specifies the name of the role to read. This is specified as part of the URL.
This endpoint deletes the role definition.
name
(string: <required>)
– Specifies the name of the role to delete. This is specified as part of the URL.
This endpoint generates a new set of dynamic credentials based on the named role.
name
(string: <required>)
– Specifies the name of the role to create credentials against. This is specified as part of the URL.
Method | Path |
---|---|
Method | Path |
---|---|
Method | Path |
---|---|
Method | Path |
---|---|
Method | Path |
---|---|
POST
/rabbitmq/config/connection
POST
/rabbitmq/config/lease
POST
/rabbitmq/roles/:name
GET
/rabbitmq/roles/:name
DELETE
/rabbitmq/roles/:name
GET
/rabbitmq/creds/:name