younifyd
Menu

Get network topology

Get network topology

GET/network

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get network topology action (under Experimental features).
  3. Fill in the fields below, then reference the result from later steps as {{getNetworkTopology.response.data}}.

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One of/http://localhost:7700__custom__Default "/"

baseUrlCustomstring
forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{getNetworkTopology.response.data.<field>}}.

remotesobject | null

Map of remote instance names to their configurations - Pass `null` as a value for a remote to remove it from the configuration. - Removing a remote will also remove it from all shards. - Remotes that don't appear in this list will be unmodified by the network call.

shardsobject | null

Map of shard names to their configurations. - Pass `null` as a value for a shard to remove it from the configuration. - Shards that don't appear in this list will be unmodified by the network call.

previousShardsobject | null

Previous shard configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

selfstring | null

Name of this instance in the network

leaderstring | null

Name of the leader instance in the network

previousRemotesobject | null

Previous remote configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

json
{
  "remotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  },
  "shards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "previousShards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "self": "ms-00",
  "leader": "ms-00",
  "previousRemotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  }
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.