From 63bc2460d9b1ecde73125efb1717cc62459bb1bf Mon Sep 17 00:00:00 2001 From: DMRobertson Date: Tue, 25 Jan 2022 16:12:22 +0000 Subject: deploy: 6a72c910f180ee8b4bd78223775af48492769472 --- .../usage/administration/admin_api/federation.html | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'develop/usage/administration/admin_api/federation.html') diff --git a/develop/usage/administration/admin_api/federation.html b/develop/usage/administration/admin_api/federation.html index 87aace72db..db48793600 100644 --- a/develop/usage/administration/admin_api/federation.html +++ b/develop/usage/administration/admin_api/federation.html @@ -280,6 +280,57 @@ to this destination, or null if this information has not been track

Response

The response fields are the same like in the destinations array in List of destinations response.

+

Destination rooms

+

This API gets the rooms that federate with a specific remote server.

+

The API is:

+
GET /_synapse/admin/v1/federation/destinations/<destination>/rooms
+
+

A response body like the following is returned:

+
{
+   "rooms":[
+      {
+         "room_id": "!OGEhHVWSdvArJzumhm:matrix.org",
+         "stream_ordering": 8326
+      },
+      {
+         "room_id": "!xYvNcQPhnkrdUmYczI:matrix.org",
+         "stream_ordering": 93534
+      }
+   ],
+   "total": 2
+}
+
+

To paginate, check for next_token and if present, call the endpoint again +with from set to the value of next_token. This will return a new page.

+

If the endpoint does not return a next_token then there are no more destinations +to paginate through.

+

Parameters

+

The following parameters should be set in the URL:

+ +

The following query parameters are available:

+ +

Response

+

The following fields are returned in the JSON response body:

+

Reset connection timeout

Synapse makes federation requests to other homeservers. If a federation request fails, Synapse will mark the destination homeserver as offline, preventing any future requests -- cgit 1.5.1