両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
ja:documentation:pandorafms:command_center:03_installation [2024/07/26 08:55] – [一般設定] junichi | ja:documentation:pandorafms:command_center:03_installation [2024/11/16 07:50] (現在) – [関係ルール] junichi |
---|
* **プロキシパスワード(Proxy password)** | * **プロキシパスワード(Proxy password)** |
</WRAP> | </WRAP> |
| |
| ==== 関係ルール ==== |
| |
| To activate this functionality, the <wrap :en>**Enable API agent**</wrap> token must be enabled at [[##general_settings|General settings]]. |
| |
| この機能を有効にするには、[[#一般設定|一般設定]] で <wrap :en>**API エージェントを有効にする(Enalbe API agent)**</wrap> トークンを有効にする必要があります。 |
| |
| Through the <wrap :en>**Setup → Metasetup → Relations rules**</wrap>{{wiki:icon_rules.png?nolink&21x21}} menu it is possible to access this utility. It allows to quickly retrieve information about certain special devices via an API (different from the main API). |
| |
| <wrap :ja>**セットアップ(Setup) → メタセットアップ(Metasetup) → 関係ルール(Relations rules)**</wrap>{{wiki:icon_rules.png?nolink&21x21}} メニューから、このユーティリティにアクセスできます。これにより、API (メイン API とは異なる) を介して、特定の特殊デバイスに関する情報をすばやく取得できます。 |
| |
| {{ :wiki:pfms-metaconsole-setup-metasetup-relations_rules-insert_relation.png }} |
| |
| In the <wrap :en>**Relationships**</wrap> box you must choose a <wrap :en>**Type**</wrap>, (drop-down list: <wrap :en>**Ip Gateway**</wrap> or <wrap :en>**IMEI**</wrap>) and assign a relationship value which will be used in the API query. This query will return the <wrap :en>**Node address**</wrap> that you have selected, either one of the **Command Center** (Metaconsole) nodes or a custom node via <wrap :en>**Custom**</wrap>. Once the three fields described above have been set, click on the <wrap :en>**Insert relation**</wrap> button to save the new relation. |
| |
| <wrap :ja>**関係(Relationships)**</wrap> ボックスで、<wrap :ja>**タイプ(Type)**</wrap> (ドロップダウンリスト: <wrap :ja>**IP ゲートウェイ(Ip Gateway)**</wrap> または <wrap :en>**IMEI**</wrap>) を選択し、API クエリで使用される関係値を割り当てる必要があります。このクエリは、選択した <wrap :ja>**ノードアドレス(Node address)**</wrap> (**コマンドセンター** (メタコンソール) ノードの 1 つ、または <wrap :ja>**カスタム(Custom)**</wrap> 経由のカスタムノードのいずれか) を返します。上記の 3 つのフィールドを設定したら、<wrap :ja>**関係の挿入(Insert relation)**</wrap> ボタンをクリックして新しい関係を保存します。 |
| |
| To load a list of relations you must prepare a file in CSV format with the following order: |
| |
| 関係のリストを読み込むには、次の順序で CSV 形式のファイルを準備する必要があります。 |
| |
| ''imei,<rule>,<node>'' or ''gateway,<rule>,<node>'' . |
| |
| ''imei,<rule>,<node>'' または ''gateway,<rule>,<node>'' . |
| |
| Illustrative values: ''gateway,4,192.168.80.37'' . |
| |
| 値の例: ''gateway,4,192.168.80.37'' 。 |
| |
| The saved relationships will be displayed at the bottom and can be filtered by type, value or node address. You can also delete relationships one by one or select several or all of them with the corresponding checkbox and then pressing the <wrap :en="">**Delete**</wrap> button to mass delete. |
| |
| 保存された関係は下部に表示され、タイプ、値、またはノードアドレスでフィルタリングできます。関係を 1 つずつ削除することも、対応するチェックボックスで複数またはすべてを選択してから <wrap :ja="">**削除(Delete)**</wrap> ボタンを押して一括削除することもできます。 |
| |
| Relationship queries will be returned in JSON format. In Mozilla Firefox web browser for ''gateway=1'': |
| |
| 関係クエリは JSON 形式で返されます。Mozilla Firefox Web ブラウザで ''gateway=1'' の場合: |
| |
| {{ :wiki:pfms-metaconsole-setup-metasetup-relations_rules-sample_query_1.png }} |
| |
| In Mozilla Firefox web browser for ''imei=2'': |
| |
| Mozilla Firefox Web ブラウザで ''imei=2'' の場合: |
| |
| {{ :wiki:pfms-metaconsole-setup-metasetup-relations_rules-sample_query_2.png }} |
| |
| By the <wrap :en>**Node Address Default**</wrap> button you can configure to return a preset response **when there is no relation rule established or when no relation rule is found that matches the request made. **This response can be either the IP address of one of the Metaconsole nodes //or a custom message by selecting the option// <wrap :en>**Custom**</wrap>: |
| |
| <wrap :ja>**ノードアドレスデフォルト(Node Address Default)**</wrap> ボタンを使用すると、**関係ルールが確立されていない場合、または行われた要求に一致する関係ルールが見つからない場合に、事前設定された応答を返すように設定できます。**この応答は、メタコンソールノードの 1 つの IP アドレス、またはオプション <wrap :ja>**カスタム(Custom)**</wrap> を選択してカスタムメッセージにすることができます。 |
| |
| {{ :wiki:pfms-metaconsole-setup-metasetup-relations_rules-node_address_default-2.png }} |
| |
==== 通知 ==== | ==== 通知 ==== |