This section explains how to use the qq portal_modify_hub command.

Description

Modify the spoke hosts and type of a hub portal

Usage

qq portal_modify_hub [-h] -i ID [-j] [-n] [--type {read-write,read-only,paused}] [-m SPOKE_HOSTS | -a SPOKE_ADDRESS] [-p SPOKE_PORT]

Flags

Flag Name Required Description
-i Yes Hub portal ID
-j No Pretty-print JSON
-n No Show the file IDs of portal roots instead of their paths.
--type No Change the type of the portal. A read-write spoke serves reads and writes, a read-only spoke serves reads, and a paused spoke refuses all client operations. Setting read-only or paused drains the spoke first; the portal reports Quiescing or Pausing until the drain finishes.
-m No The IP addresses and TCP ports of the remote cluster. Use a comma-delimited list to specify multiple hosts. Use colon as a separator after each IP address to provide custom TCP port (3713 is used by default). Ports specified this way override other --port arguments. Put brackets around an IPv6 address, such as [2001:db8::1] or [2001:db8::1]:4000. Use a dash to specify a range of IPv4 addresses that share their first three octets, such as 10.220.1.70-73 or 10.220.1.70-10.220.1.73. A port applies to the whole range.
-a No The IP address of a node in the remote cluster
-p No The TCP port for portal activity on the remote cluster. The default port 3713 is used if this field is not provided.