Skip to main content
This topic describes the API procedure to manage BMP export targets on Megaport Cloud Router (MCR) and Megaport NAT Gateway (NAT Gateway) services. export streams BGP session state and statistics from the MCR or NAT Gateway to an external BMP collector over a persistent TCP connection. Optionally, it also exports routing information (post-policy Adj-RIB-In for the IPv4 unicast and IPv6 unicast address families). Each MCR or NAT Gateway supports up to 3 BMP export targets. Before you begin, obtain a valid access token. For more information, see Creating an API Key.

MCR BMP export target endpoints

Each MCR BMP export target description must be unique on the service.

Creating a BMP export target

To create a BMP export target on an MCR, send a POST request with the target configuration. Endpoint
Path Parameters Request Body Example Request
Example Response

Getting a BMP export target

Retrieve a specific BMP export target by its ID. Endpoint
Path Parameters Example Request
Example Response

Updating a BMP export target

Update an existing BMP export target configuration. Endpoint
Path Parameters Request Body The request body uses the same fields as the create request.
The update request fully replaces the target’s configuration. Omitted optional fields revert to their default values, and omitting sourceIpAddress clears a previously set source address.
Example Request
Example Response

Deleting a BMP export target

Delete a specific BMP export target from an MCR.
A BMP export target can be deleted even if it is still in use by the MCR.
Endpoint
Path Parameters Example Request
Example Response

Listing BMP export targets

Retrieve all BMP export targets configured on an MCR. Endpoint
Path Parameters Example Request
Example Response

NAT Gateway BMP export target endpoints

Each NAT Gateway target’s description must be unique on the service.

Creating a BMP export target

To create a BMP export target on a NAT Gateway, send a POST request with the target configuration. Endpoint
Path Parameters Request Body Example Request
Example Response

Getting a BMP export target

Retrieve a specific BMP export target by its ID. Endpoint
Path Parameters Example Request
Example Response

Updating a BMP export target

Update an existing BMP export target configuration. Endpoint
Path Parameters Request Body The request body uses the same fields as the create request.
The update request fully replaces the target’s configuration. Omitted optional fields revert to their default values, and omitting sourceIpAddress clears a previously set source address.
Example Request
Example Response

Deleting a BMP export target

Delete a specific BMP export target from a NAT Gateway.
A BMP export target can be deleted even if it is still in use by the NAT Gateway.
Endpoint
Path Parameters Example Request
Example Response

Listing BMP export targets

Retrieve all BMP export targets configured on a NAT Gateway. Endpoint
Path Parameters Example Request
Example Response

Error responses

When a request fails, the API returns an error response with details about the issue.

Helpful references

Last modified on November 5, 2026