Anypoint MQ Admin

(4 reviews)

home

The Anypoint MQ Admin API provides API access to Anypoint MQ administrative functionality. This API allows you to perform the following actions:

  • Browse queues and message exchanges
  • Create queues and message exchanges
  • Manage bindings for message exchanges
  • Manage cross region fallback configuration for standard queues

Getting Started

Before using this API, you should be familiar with the following:

Use this API in conjunction with the following APIs:

To access this MQ Admin API, you must first authenticate and obtain a token by using Anypoint Access Management. Typically you would use your Anypoint Platform user credentials to obtain the access token, and then you would use the obtained token to call the MQ Admin API. See examples of this authentication at the Anypoint Access Management link above.

Example MQ Admin API Calls

The following example shows how to retrieve a list of all destinations (queues and exchanges) in an environment. Notice the following variables in the API call:

  • The Authorization header includes the bearer token obtained from Anypoint Access Management.
  • ORG_ID is the ID of the business group where your queue resides
  • ENV_ID is the ID of the environment where your queue resides
  • REGION_ID is the region where your queue resides (i.e. us-east-1)
Request:

curl -X GET \
-H 'Authorization: Bearer xxxxxxxx-xxxx-xxxxxx-xxxx-xxxxxxxxxxx' \
'https://anypoint.mulesoft.com/mq/admin/api/v1/organizations/${ORG_ID}/environments/${ENV_ID}/regions/${REGION_ID}/destinations'

Response:

[
  {
    "encrypted": true,
    "type": "queue",
    "queueId": "orders-received",
    "fifo": false,
    "defaultTtl": 604800000,
    "defaultLockTtl": 120000,
    "isFallback": false,
    "fallbackConfig" : {
      "enabled" : true,
      "linkedQueueName" : "orders-received_fb",
      "linkedQueueRegion" : "<fallback region>"
    }
  },
  {
    "encrypted": true,
    "type": "queue",
    "queueId": "orders-processed",
    "fifo": false,
    "defaultTtl": 604800000,
    "defaultLockTtl": 120000
  }
]

Support

Support for this API is provided through the Anypoint Platform Support portal.


Reviews

DU
Deleted UserAug 23, 2022, 10:01 AM
Validation not described
The API covers the main resources and operations, but it does not say (for example) what happens if you try to delete a queue when it contains messages. This would be very useful information for an admin trying to create scripts.
DU
Deleted UserOct 27, 2020, 1:46 PM
Wrong URL
Team, please note that the endpoint URL is wrong... dev.mulesoft.com does not work. The correct URL is "https://anypoint.mulesoft.com..."
DU
Deleted UserMar 19, 2020, 1:52 PM
Extremely helpful portal
Was able to figure out how to leverage this API and stats to create DLQ monitors. My only issue is the response objects are only examples, lack proper documentation/clearly defined RAML datatypes would be helpful.
DU
Deleted UserJan 4, 2019, 10:14 AM
APIs are good but the UI isn't
The left side of the browser to expand the resources further down doesn't really help. The name of the resource is not visible completely.