redis-di add-context

添加新上下文

用法

Usage: redis-di add-context [OPTIONS] CONTEXT_NAME

选项

  • context_name (必需)

    • 类型: STRING
    • 默认值: none
    • 用法: context-name
  • loglevel:

    • 类型: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
    • 默认值: info
    • 用法: --loglevel -log-level
  • cluster_host (必需)

    • 类型: STRING
    • 默认值: none
    • 用法: --cluster-host

    Redis Enterprise 集群的主机/IP(如果是 k8s,则为服务名称)

  • cluster_api_port (必需)

    • 类型: <IntRange 1000<=x<=65535>
    • 默认值: 9443
    • 用法: --cluster-api-port

    Redis Enterprise 集群的 API 端口

  • cluster_user (必需)

    • 类型: STRING
    • 默认值: none
    • 用法: --cluster-user

    具有数据库成员、集群成员或集群管理员角色的 Redis Enterprise 集群用户名

  • rdi_host (必需)

    • 类型: STRING
    • 默认值: none
    • 用法: --rdi-host

    Write-behind 数据库的主机/IP

  • rdi_port (必需)

    • 类型: <IntRange 1000<=x<=65535>
    • 默认值: none
    • 用法: --rdi-port

    Write-behind 数据库的端口

  • rdi_key:

    • 类型: STRING
    • 默认值: none
    • 用法: --rdi-key

    用于身份验证的私钥文件

  • rdi_cert:

    • 类型: STRING
    • 默认值: none
    • 用法: --rdi-cert

    用于身份验证的客户端证书文件

  • rdi_cacert:

    • 类型: STRING
    • 默认值: none
    • 用法: --rdi-cacert

    用于验证的 CA 证书文件

  • help:

    • 类型: BOOL
    • 默认值: false
    • 用法: --help

    显示此消息并退出。

CLI 帮助

Usage: redis-di add-context [OPTIONS] CONTEXT_NAME

  Adds a new context

Options:
  -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]
                                  [default: INFO]
  --cluster-host TEXT             Host/IP of Redis Enterprise Cluster (service
                                  name in case of k8s)  [required]
  --cluster-api-port INTEGER RANGE
                                  API Port of Redis Enterprise Cluster
                                  [default: 9443; 1000<=x<=65535; required]
  --cluster-user TEXT             Redis Enterprise Cluster username with
                                  either DB Member, Cluster Member or Cluster
                                  Admin roles  [required]
  --rdi-host TEXT                 Host/IP of Write-behind Database  [required]
  --rdi-port INTEGER RANGE        Port of Write-behind Database  [1000<=x<=65535;
                                  required]
  --rdi-key TEXT                  Private key file to authenticate with
  --rdi-cert TEXT                 Client certificate file to authenticate with
  --rdi-cacert TEXT               CA certificate file to verify with
  --help                          Show this message and exit.
评价此页面
返回顶部 ↑