差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_reference:02_annex_externalapi [2024/09/08 13:59] – [set add_module_in_conf] junichi | ja:documentation:pandorafms:technical_reference:02_annex_externalapi [2024/11/09 23:22] (現在) – [get special_days] junichi | ||
---|---|---|---|
行 755: | 行 755: | ||
== get agent_module_name_last_value_alias == | == get agent_module_name_last_value_alias == | ||
- | >= 7.0NG | + | <WRAP center round box 90%> |
- | モジュールの最新の値を返します。このモジュールは、パラメータ id で渡されるエージェントの別名と、パラメータ id2 で渡されるモジュール名でフィルタされます。other | + | This feature also works in Command Center (Metaconsole). |
- | 書式: | + | </ |
- | * op=get (必須) | + | <WRAP center round box 90%> |
- | * op2=agent_module_name_last_value_alias (必須) | + | |
- | * id=<英数字>(必須) エージェント名。 | + | |
- | * id2=< | + | |
- | * other=< | + | |
- | * エラーコードは次の通りです: | + | |
- | * ' | + | |
- | * ' | + | |
- | **例** | + | この機能はコマンドセンター (メタコンソール) でも動作します。 |
- | < | + | </WRAP> |
- | http://127.0.0.1/ | + | |
+ | Returns the last value of a module, which is selected by alias of the agent passed by the '' | ||
+ | |||
+ | モジュールの最新の値を返します。このモジュールは、パラメータ '' | ||
+ | |||
+ | [[#ks2|Call syntax]]: | ||
+ | |||
+ | [[# | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | - error_message : Returns error in a text message. | ||
+ | - error_value< | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | - error_message: | ||
+ | - error_value< | ||
+ | |||
+ | **Example (see [[# | ||
+ | |||
+ | **例 ([[# | ||
+ | |||
+ | <code bash> | ||
+ | …/ | ||
</ | </ | ||
行 1708: | 行 1735: | ||
== get special_days == | == get special_days == | ||
- | >= 5.1 | + | Returns a list with special days. It allows to specify a field separator, being these: |
- | 特別日一覧を返します。 | + | 特別日のリストを返します。次のデータを表示するためのフィールド区切り文字を指定できます: |
- | 書式: | + | - Numerical ID of the special day. |
+ | - Numerical ID of the calendar to which this special day belongs. | ||
+ | - Numerical ID of the group to which the special day belongs. | ||
+ | - Date of the special day in the format '' | ||
+ | - Numeric ID of the same day of the week configured for that special day. | ||
+ | - Description of the special day. | ||
- | | + | |
- | | + | |
- | | + | |
+ | - 特別日の日付 (形式は '' | ||
+ | - その特別日に設定されている同じ曜日の数値 ID。 | ||
+ | - 特別日の説明。 | ||
- | **例** | + | [[#ks2|Call syntax]]: |
- | < | + | [[# |
- | http://127.0.0.1/ | + | |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | **Example (see [[#ks2|call syntax]]): | ||
+ | |||
+ | **例 ([[# | ||
+ | |||
+ | <code bash> | ||
+ | …/ | ||
</ | </ | ||
行 5912: | 行 5961: | ||
== set delete_module_in_conf == | == set delete_module_in_conf == | ||
- | |||
- | >= 5.0 (エンタープライズ版のみ) | ||
ローカルモジュールの設定を削除します。 | ローカルモジュールの設定を削除します。 | ||
行 5934: | 行 5981: | ||
== set update_module_in_conf == | == set update_module_in_conf == | ||
- | |||
- | >= 5.0 (エンタープライズ版のみ) | ||
ローカルモジュールの設定を更新します。 | ローカルモジュールの設定を更新します。 | ||
行 5980: | 行 6025: | ||
<WRAP center round tip 50%> | <WRAP center round tip 50%> | ||
- | This feature also works in Metaconsole. | + | This feature also works in Command Center (Metaconsole). |
</ | </ | ||
行 5986: | 行 6031: | ||
<WRAP center round tip 50%> | <WRAP center round tip 50%> | ||
- | この機能は、Metaconsole | + | この機能は、コマンドセンター(メタコンソール)でも使えます。 |
</ | </ | ||
- | [[: | + | [[#ks2|Call syntax]]: |
- | [[: | + | [[#ks2|書式]]: |
* '' | * '' | ||
行 6034: | 行 6079: | ||
* < tags > (string type). | * < tags > (string type). | ||
* < custom_data> | * < custom_data> | ||
- | * < server_id > (//only for Metaconsole// | + | * < server_id > (//only for Command Center (Metaconsole)//) The id of the child node. |
- | * < | + | * < |
* '' | * '' | ||
行 6077: | 行 6122: | ||
* < タグ > (文字列) | * < タグ > (文字列) | ||
* < カスタムデータ > **base64 でエンコードした JSON 形式でなければいけません** | * < カスタムデータ > **base64 でエンコードした JSON 形式でなければいけません** | ||
- | * < サーバ ID > (// | + | * < サーバ ID > (//コマンドセンター(メタコンソール)のみ//) 子ノードの ID です。 |
- | * <extra ID> (英数字) | + | * <extra ID> (英数字、[[ja: |
- | **Example (** **[[: | + | **Example (** **[[#ks2|see call syntax]]****): ** |
- | **例** ([[: | + | **例** ([[#ks2|書式]]を参照): |
The event to be created has the following custom JSON data: | The event to be created has the following custom JSON data: | ||
行 6107: | 行 6152: | ||
イベントにコメントを追加します。 | イベントにコメントを追加します。 | ||
- | <WRAP center round tip 60%> これはメタコンソールでも利用できます。 </ | + | <WRAP center round tip 90%> |
+ | |||
+ | This feature also works in Command Center (Metaconsole). | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 90%> | ||
+ | |||
+ | この機能はコマンドセンター (メタコンソール) でも動作します。 | ||
+ | |||
+ | </ | ||
書式: | 書式: | ||
- | * op=set (必須) | + | * '' |
- | * op2=create_event | + | * '' |
- | * other=<連続パラメータ> (必須) 次の順番でイベントデータを指定します: | + | * '' |
- | * <コメント> (必須) | + | * '' |
+ | * < comment | ||
+ | * < separator > (// | ||
+ | * < id_node > (// | ||
+ | * '' | ||
- | <WRAP center round tip 60%> メタコンソールで利用するには、" | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < コメント > (必須、文字列) | ||
+ | * < セパレータ> | ||
+ | * < ノードID > (// | ||
+ | * '' | ||
- | **例** | + | <WRAP center round tip 90%> |
- | | + | **Command Center (Metaconsole) usage**: |
- | < | + | |
+ | * NG 762 version an earlier: After the comment and the separator you must enter the parameter '' | ||
+ | * NG 766 version and later: After the comment and the separator you must enter the numerical identifier of the node. | ||
+ | |||
+ | This node identifier can be obtained by accessing the [[: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 90%> | ||
+ | |||
+ | **コマンドセンター (メタコンソール) の使用法**: | ||
+ | |||
+ | * NG 762 バージョン以前: | ||
+ | * NG 766 バージョン以降: | ||
+ | |||
+ | このノード識別子は、[[: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Examples ([[#ks2|see call syntax]])** | ||
+ | * Node (event id is '' | ||
+ | |||
+ | **例 ([[# | ||
+ | * ノード (イベント ID は '' | ||
+ | |||
+ | < | ||
+ | ../ | ||
- | http:// | ||
</ | </ | ||
- | * メタコンソール | + | * Command Center (Metaconsole) (**NG 766 and later**, the event identifier is '' |
- | < | + | |
+ | * コマンドセンター (メタコンソール) (**NG 766 以降**、イベント識別子は '' | ||
+ | |||
+ | < | ||
+ | ../ | ||
- | http:// | ||
</ | </ | ||
行 6138: | 行 6236: | ||
API を通してイベントを更新します。 | API を通してイベントを更新します。 | ||
- | <WRAP center round tip 60%> この機能は、メタコンソールでも利用できます。 </ | + | <WRAP center round tip 90%> |
+ | |||
+ | This feature can be also used in the Command Center (Metaconsole). | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 90%> | ||
+ | |||
+ | この機能はコマンドセンター (メタコンソール) でも使用できます。 | ||
+ | |||
+ | </ | ||
書式: | 書式: | ||
行 6208: | 行 6316: | ||
</ | </ | ||
- | * メタコンソール: | + | * Command Center (Metaconsole): |
+ | |||
+ | * コマンドセンター(メタコンソール): | ||
< | < | ||
行 6597: | 行 6707: | ||
http:// | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_edit == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Edit a planned stop. | ||
+ | |||
+ | 計画停止を編集します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | * < | ||
+ | * <date from> | ||
+ | * <date to> | ||
+ | * <time from> | ||
+ | * <time to> | ||
+ | * <id group> | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * <stop type> | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * <月> | ||
+ | * <火> | ||
+ | * <水> | ||
+ | * <木> | ||
+ | * <金> | ||
+ | * <土> | ||
+ | * <日> | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | |||
+ | The date format must be YYYYY/MM/DD (year/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | |||
+ | この呼び出しが正しく機能するには、日付形式が YYYY/MM/DD (年/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_add_agents == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Add Agents to the planned stop. | ||
+ | |||
+ | 計画停止にエージェントを追加します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_delete_agents == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Removes Agents (and the Modules of those agents) from the planned shutdown. | ||
+ | |||
+ | 計画停止からエージェント (およびそれらのエージェントのモジュール) を削除します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | |||
+ | http:// | ||
</ | </ | ||
行 6795: | 行 7041: | ||
>= 7 | >= 7 | ||
- | ライセンスキーをメタコンソールへ追加し、ノードへ同期します。 | + | It adds license key to the Command Center (Metaconsole) and performs the synchronization with nodes. |
+ | |||
+ | ライセンスキーをコマンドセンター(メタコンソール)へ追加し、ノードへ同期します。 | ||
* op=set | * op=set | ||
行 7497: | 行 7745: | ||
書式: | 書式: | ||
+ | |||
+ | * op=set (required) | ||
+ | * op2=disabled_and_standby (required) | ||
+ | * id=< | ||
+ | * id2=<id del nodo> (required in the Command Center (Metaconsole), | ||
+ | * other=< | ||
* op=set (必須) | * op=set (必須) | ||
* op2=disabled_and_standby (必須) | * op2=disabled_and_standby (必須) | ||
- | * id=< | + | * id=< |
- | * id2=< | + | * id2=< |
* other=< | * other=< | ||
行 8255: | 行 8509: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
行 8260: | 行 8515: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
**Example (see [[# | **Example (see [[# | ||
行 8269: | 行 8525: | ||
</ | </ | ||
+ | Example for a node in **Command Center**: | ||
+ | |||
+ | **コマンドセンター** のノードの例: | ||
+ | |||
+ | <code bash> | ||
+ | …/ | ||
+ | </ | ||
==== 例 ==== | ==== 例 ==== |