このページで説明する手順により、virtual databasesおよびSSH tunnelsを管理することができます。
SYSADMIN_VDB.createVdb
このプロシージャは、仮想データベースを作成します:
SYSADMIN_VDB.createVdb("name" => 'string_name');;Example
CALL "SYSADMIN_VDB.createVdb"("name" => 'newVDB');;SYSADMIN_VDB.dropVdb
このプロシージャは、ID によって仮想データベースを削除します:
SYSADMIN_VDB.dropVdb("id" => biginteger_id);;削除する必要がある仮想データベースのID を表示するには、SYSADMIN_VDB.VirtualDatabasesテーブルを使用できます。
Example
CALL "SYSADMIN_VDB.dropVdb"("id" => 10);;SYSADMIN_VDB.generateCloudAgentApiKey
このプロシージャは、新しいCLOUD_AGENT_CLIENT_API_KEYオプション値を生成します。
SYSADMIN_VDB.generateCloudAgentApiKey(OUT newApiKey string RESULT)Example
CALL "SYSADMIN_VDB.generateCloudAgentApiKey"() ;;SYSADMIN_VDB.getCloudAgentConfiguration
本プロシージャは、接続されているすべてのエージェントインスタンスからすべての構成ファイルの内容を取得します。
SYSADMIN_VDB.getCloudAgentConfiguration(OUT clientId string NOT NULL, OUT file string NOT NULL, OUT configuration string)clientId は、エージェントインスタンスの起動時にランダムに割り当てられる UUID です。これは、エージェントの Configuration ディレクトリ内のclient_idファイルに保存されます。clientIdはインスタンスの一意な識別子として機能し、特に複数のエージェントがクラスタに配置されている環境では、他のインスタンスと区別することができます。
Example
SELECT * FROM SYSADMIN_VDB.getCloudAgentConfiguration() ;;SYSADMIN_VDB.getCloudAgentConnectionStatus
このプロシージャはdatasourceの値としてNULL が渡された場合に、特定のデータソースまたはサーバー全般に対するクラウドエージェントの接続状態を評価するために設計されています。
SYSADMIN_VDB.getCloudAgentConnectionStatus(IN datasource string, OUT connected boolean NOT NULL)Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
datasource | string |
| This parameter specifies the data source for which the connection status needs to be checked. |
Examples
SELECT * FROM "SYSADMIN_VDB.getCloudAgentConnectionStatus"() ;; SELECT * FROM "SYSADMIN_VDB.getCloudAgentConnectionStatus"( "datasource" => 'some_datasource') ;;SYSADMIN_VDB.getJavaProp
このプロシージャは、Translator 関連のクライアントシークレットを取得します:
SYSADMIN_VDB.getJavaProp(IN key1 string NOT NULL, OUT value1 string RESULT)Example
CALL "SYSADMIN_VDB.getJavaProp"("key1" => 'user.language');;SYSADMIN_VDB.setJavaProp
このプロシージャは、Translator 関連のクライアントシークレットを設定します:
SYSADMIN_VDB.setJavaProp(IN key1 string NOT NULL, IN value1 string)Example
CALL "SYSADMIN_VDB.setJavaProp"("key1" => 'user.language', "value1" => 'en');;SYSADMIN_VDB.createSSHTunnel
このプロシージャは、SSH トンネルを作成します。以下のパラメータを取ります:
To view the full table, click the expand button in its top right corner
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of an SSH tunnel |
| string |
| Host of a client's machine (default: localhost) |
| integer |
| Port of a client's machine |
| string |
| Host of a remote machine |
| integer |
| Port of a remote machine |
| string |
| Username and host used for connecting to a remote machine via SSH protocol (format: |
| integer |
| ID of a key-pair in the |
| integer |
| Port used by SSH server on a remote machine (default: |
| string |
| SSH comma-separated properties in CSV-like form: |
| string |
| Password used for simple authentication on the SSH server |
| string |
| Password phrase used in case of a secured private key and key authentication on the SSH server |
| string |
| Private key path or the private key itself as a string in case of key authentication on the SSH server |
| string |
| Possible values: |
| string |
| Host address of the proxy (if this setting is not set via |
| integer |
| Port used by the proxy (if this setting is not set via |
| string |
| User at the proxy (if this setting is not set via |
| string |
| Password for the proxy server (if this setting is not set via |
SYSADMIN_VDB.removeSSHTunnel
このプロシージャは、SSH Tunnel を削除します。以下のパラメータを取ります:
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of the SSH tunnel intended for removal |
SYSADMIN_VDB.importSSHTunnel
このプロシージャは、SSH トンネルをインポートまたはリフレッシュします。以下のパラメータを取ります:
To view the full table, click the expand button in its top right corner
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of an SSH tunnel |
| string |
| Host of a client's machine (default: localhost) |
| integer |
| Port of a client's machine |
| string |
| Host of a remote machine |
| integer |
| Port of a remote machine |
| string |
| Username and host used for connecting to a remote machine via SSH protocol (format: |
| string |
| Type of SSH port forwarding ( |
| integer |
| ID of a key-pair in the |
| integer |
| Port used by SSH Server on a remote machine (default: |
| string |
| SSH comma-separated properties in CSV-like form: |
| string |
| Encrypted password used for simple authentication on the SSH server |
| string |
| Encrypted password phrase used in case of secured private key and key authentication on the SSH server |
| string |
| Encrypted private key in case of key authentication on the SSH server |
| string |
| Possible values: |
| string |
| Address of the proxy (if this setting is not set via |
| string |
| Port used by proxy (if this setting is not set via |
| string |
| User at the proxy (if this setting is not set via |
| string |
| Encrypted password for the proxy server |
| string |
| SSH comma-separated properties in CSV-like form: |
| string |
| Password used for a simple authentication on the SSH server |
| string |
| Password phrase used in case of a secured private key and key authentication on the SSH server |
| string |
| Private key in case of key authentication on the SSH server |
| string |
| Password for the proxy server |
SYSADMIN_VDB.createSSHKeyPair
このプロシージャは、鍵ペアを作成します。以下のパラメータを取ります:
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of a key pair |
| string |
| Public key |
| integer |
| ID of the key pair |
SYSADMIN_VDB.renameSSHKeyPair
このプロシージャは、鍵ペアの名前を変更します。以下のパラメータを取ります:
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of a key pair |
| string |
| Public key |
| integer |
| ID of the key pair |
SYSADMIN_VDB.removeSSHKeyPair
このプロシージャは、鍵ペアを削除します。以下のパラメータを取ります:
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| integer |
| ID of the key pair |
SYSADMIN_VDB.importSSHKeyPair
このプロシージャは、鍵ペアを作成します。以下のパラメータを取ります:
Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| Unique name of a key pair |
| string |
| Public key |
| string |
| Private key |
| string |
| Encrypted private key |
| integer |
| ID of the key pair |
SYSADMIN_VDB.updateCloudAgentConfiguration
このプロシージャは、接続されているすべてのエージェントインスタンスにわたって、指定されたファイルに構成を作成または更新します。configurationパラメータがNULLまたは空の場合、指定された構成ファイルは削除されます。 設定エラー(無効なデータソース定義など)が発生した場合でも、SaaS URL と API キーが正しければ、エージェントはサーバーに接続します。
SYSADMIN_VDB.updateCloudAgentConfiguration(IN file string NOT NULL, IN configuration string)Parameter name | Parameter type | Mandatory | Description |
|---|---|---|---|
| string |
| The name of the cloud agent properties file to be created, updated, or deleted across all agents |
| string |
| Specifies the agent configuration to be written to the designated properties file. If the argument is set to |
Examples
--Update the configuration stored in "agent_A.properties" file of some cloud agent.CALL SYSADMIN_VDB.updateCloudAgentConfiguration ( file => 'agent_A.properties', configuration => 'dvsaas.ws.url=ws://localhost:8080/cloud-agentclient.api.key=<CLOUD_AGENT_API_KEY>');;--Delete the "agent_A.properties" configuration file.CALL SYSADMIN_VDB.updateCloudAgentConfiguration ( file => 'agent_A.properties');;