此内容没有您所选择的语言版本。
Chapter 3. Commands
3.1. Connecting to RHSC 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
3.1.1. Connect to RHSC via connect 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
connect
command connects to Red Hat Storage Console Application as follows:
connect [options]
# connect [options]
Option | Required | Description |
---|---|---|
--ca-file | Yes, unless --insecure is used. | The certificate authority file to connect via SSL. |
--cert-file | No | The certificate file to connect via SSL. |
--filter | No | Enable filtering based on user permissions. |
--insecure | Yes, but only if no certificate authority is provided. | Allow the CLI to connect via SSL without certification. Use this option with caution, as it may allow man-in-the-middle (MITM) attackers to spoof the identity of the server. |
--key-file | No | The key file to connect via SSL. |
--password | Yes | The password for the user attempting access to the Red Hat Storage Console Application. |
--port | No | The port number to connect to the REST API, if not specified as part of the --url . |
--session-timeout | No | The timeout period for the session. |
--timeout | - | The timeout period for connection. |
--url | Yes | The URL to the Red Hat Storage Console's REST API. This takes the form of https://[server]/api . |
--user | Yes | The user name and directory service domain of the user attempting access to the Red Hat Storage Console Application. This takes the form of [username]@[domain]. |
Example 3.1. Example for connect
Note
Use the
--insecure
option to connect without certification. However, this is not recommended because it allows man-in-the-middle (MITM) attackers to spoof the server's identity.
3.1.2. Disconnect from RHSC Using disconnect 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
disconnect
command disconnects from Red Hat Storage Console Application as follows:
disconnect
# disconnect
Example 3.2. Example for disconnect