Endpoint

/v2/portal/hubs/{id}

GET

Retrieve the relationship status and configuration for the specified hub portal.

Parameters

Name Description Required
id Portal ID Yes

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "v2_portal_hub",
  "type": "object",
  "properties": {
    "id": {
      "description": "Hub portal ID",
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "PORTAL_READ_ONLY",
        "PORTAL_READ_WRITE",
        "PORTAL_PAUSED",
        "PORTAL_SUSPENDED"
      ],
      "description": "Type of the portal: read-write, read-only, paused or suspended. A paused or suspended spoke refuses all client operations. A suspended spoke can go offline without affecting client operations on the hub. A suspended hub accumulates changes to replay when the relationship is resumed.:\n * `PORTAL_PAUSED` - PORTAL_PAUSED,\n * `PORTAL_READ_ONLY` - PORTAL_READ_ONLY,\n * `PORTAL_READ_WRITE` - PORTAL_READ_WRITE,\n * `PORTAL_SUSPENDED` - PORTAL_SUSPENDED"
    },
    "state": {
      "type": "string",
      "enum": [
        "PENDING",
        "ACCEPTED",
        "QUIESCING",
        "PAUSING",
        "SUSPENDING",
        "DELETING"
      ],
      "description": "State of the portal:\n * `ACCEPTED` - A portal that is in an active relationship.,\n * `DELETING` - A portal in the process of synchronizing outstanding changes before deletion.,\n * `PAUSING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes paused.,\n * `PENDING` - A portal not yet in an active relationship.,\n * `QUIESCING` - A portal synchronizing outstanding changes before it becomes read-only.,\n * `SUSPENDING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes suspended."
    },
    "status": {
      "type": "string",
      "enum": [
        "INACTIVE",
        "ACTIVE",
        "DEGRADED",
        "DISCONNECTED"
      ],
      "description": "Status of the portal:\n * `ACTIVE` - A fully connected portal ready for use.,\n * `DEGRADED` - A portal whose quorum is missing a cluster other than this relationship's peer.,\n * `DISCONNECTED` - A portal whose quorum is missing this relationship's own peer.,\n * `INACTIVE` - A portal that is not ready for use, or whose peer takes no part in the portal quorum."
    },
    "spoke_hosts": {
      "type": "array",
      "items": {
        "description": "IP addresses and TCP ports of nodes in the remote cluster",
        "type": "object",
        "properties": {
          "address": {
            "description": "address",
            "type": "string"
          },
          "port": {
            "description": "port",
            "type": "number"
          }
        }
      }
    },
    "spoke_cluster_uuid": {
      "description": "UUID of the cluster with the spoke portal",
      "type": "string"
    },
    "spoke_cluster_name": {
      "description": "Name of the cluster with the spoke portal",
      "type": "string"
    },
    "filesystem_uuid": {
      "description": "UUID of the filesystem shared with the spoke portal",
      "type": "string"
    },
    "pending_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are pending authorization",
        "type": "string"
      }
    },
    "authorized_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are authorized for access",
        "type": "string"
      }
    }
  }
}

DELETE

Delete the specified hub portal from the current cluster.

Parameters

Name Description Required
id Portal ID Yes
force No

Response

Codes

Code Description
202 Return value on success

PATCH

Change the spoke hosts or the type of the specified hub portal. The portal must be accepted. Moving a portal down the order read-write, read-only, paused, suspended drains the spoke first, and the portal reports QUIESCING, PAUSING or SUSPENDING until the drain finishes. Moving it up takes effect at once.

Parameters

Name Description Required
id Portal ID Yes
If-Match ETag for expected version No

Request

Schema

{
  "description": "v2_portal_hub_patch",
  "type": "object",
  "properties": {
    "id": {
      "description": "Hub portal ID",
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "PORTAL_READ_ONLY",
        "PORTAL_READ_WRITE",
        "PORTAL_PAUSED",
        "PORTAL_SUSPENDED"
      ],
      "description": "Type of the portal: read-write, read-only, paused or suspended. A paused or suspended spoke refuses all client operations. A suspended spoke can go offline without affecting client operations on the hub. A suspended hub accumulates changes to replay when the relationship is resumed.:\n * `PORTAL_PAUSED` - PORTAL_PAUSED,\n * `PORTAL_READ_ONLY` - PORTAL_READ_ONLY,\n * `PORTAL_READ_WRITE` - PORTAL_READ_WRITE,\n * `PORTAL_SUSPENDED` - PORTAL_SUSPENDED"
    },
    "state": {
      "type": "string",
      "enum": [
        "PENDING",
        "ACCEPTED",
        "QUIESCING",
        "PAUSING",
        "SUSPENDING",
        "DELETING"
      ],
      "description": "State of the portal:\n * `ACCEPTED` - A portal that is in an active relationship.,\n * `DELETING` - A portal in the process of synchronizing outstanding changes before deletion.,\n * `PAUSING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes paused.,\n * `PENDING` - A portal not yet in an active relationship.,\n * `QUIESCING` - A portal synchronizing outstanding changes before it becomes read-only.,\n * `SUSPENDING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes suspended."
    },
    "status": {
      "type": "string",
      "enum": [
        "INACTIVE",
        "ACTIVE",
        "DEGRADED",
        "DISCONNECTED"
      ],
      "description": "Status of the portal:\n * `ACTIVE` - A fully connected portal ready for use.,\n * `DEGRADED` - A portal whose quorum is missing a cluster other than this relationship's peer.,\n * `DISCONNECTED` - A portal whose quorum is missing this relationship's own peer.,\n * `INACTIVE` - A portal that is not ready for use, or whose peer takes no part in the portal quorum."
    },
    "spoke_hosts": {
      "type": "array",
      "items": {
        "description": "IP addresses and TCP ports of nodes in the remote cluster",
        "type": "object",
        "properties": {
          "address": {
            "description": "address",
            "type": "string"
          },
          "port": {
            "description": "port",
            "type": "number"
          }
        }
      }
    },
    "spoke_cluster_uuid": {
      "description": "UUID of the cluster with the spoke portal",
      "type": "string"
    },
    "spoke_cluster_name": {
      "description": "Name of the cluster with the spoke portal",
      "type": "string"
    },
    "filesystem_uuid": {
      "description": "UUID of the filesystem shared with the spoke portal",
      "type": "string"
    },
    "pending_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are pending authorization",
        "type": "string"
      }
    },
    "authorized_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are authorized for access",
        "type": "string"
      }
    }
  }
}

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "v2_portal_hub",
  "type": "object",
  "properties": {
    "id": {
      "description": "Hub portal ID",
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "PORTAL_READ_ONLY",
        "PORTAL_READ_WRITE",
        "PORTAL_PAUSED",
        "PORTAL_SUSPENDED"
      ],
      "description": "Type of the portal: read-write, read-only, paused or suspended. A paused or suspended spoke refuses all client operations. A suspended spoke can go offline without affecting client operations on the hub. A suspended hub accumulates changes to replay when the relationship is resumed.:\n * `PORTAL_PAUSED` - PORTAL_PAUSED,\n * `PORTAL_READ_ONLY` - PORTAL_READ_ONLY,\n * `PORTAL_READ_WRITE` - PORTAL_READ_WRITE,\n * `PORTAL_SUSPENDED` - PORTAL_SUSPENDED"
    },
    "state": {
      "type": "string",
      "enum": [
        "PENDING",
        "ACCEPTED",
        "QUIESCING",
        "PAUSING",
        "SUSPENDING",
        "DELETING"
      ],
      "description": "State of the portal:\n * `ACCEPTED` - A portal that is in an active relationship.,\n * `DELETING` - A portal in the process of synchronizing outstanding changes before deletion.,\n * `PAUSING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes paused.,\n * `PENDING` - A portal not yet in an active relationship.,\n * `QUIESCING` - A portal synchronizing outstanding changes before it becomes read-only.,\n * `SUSPENDING` - A portal closing spoke client state and synchronizing outstanding changes before it becomes suspended."
    },
    "status": {
      "type": "string",
      "enum": [
        "INACTIVE",
        "ACTIVE",
        "DEGRADED",
        "DISCONNECTED"
      ],
      "description": "Status of the portal:\n * `ACTIVE` - A fully connected portal ready for use.,\n * `DEGRADED` - A portal whose quorum is missing a cluster other than this relationship's peer.,\n * `DISCONNECTED` - A portal whose quorum is missing this relationship's own peer.,\n * `INACTIVE` - A portal that is not ready for use, or whose peer takes no part in the portal quorum."
    },
    "spoke_hosts": {
      "type": "array",
      "items": {
        "description": "IP addresses and TCP ports of nodes in the remote cluster",
        "type": "object",
        "properties": {
          "address": {
            "description": "address",
            "type": "string"
          },
          "port": {
            "description": "port",
            "type": "number"
          }
        }
      }
    },
    "spoke_cluster_uuid": {
      "description": "UUID of the cluster with the spoke portal",
      "type": "string"
    },
    "spoke_cluster_name": {
      "description": "Name of the cluster with the spoke portal",
      "type": "string"
    },
    "filesystem_uuid": {
      "description": "UUID of the filesystem shared with the spoke portal",
      "type": "string"
    },
    "pending_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are pending authorization",
        "type": "string"
      }
    },
    "authorized_roots": {
      "type": "array",
      "items": {
        "description": "Set of hub root directories that are authorized for access",
        "type": "string"
      }
    }
  }
}