指定されたインスタンスにエージェントをインストールします。
操作説明
エージェントをインストールするこの操作の呼び出しは非同期です。この操作を呼び出すと、task_id が返されます。この ID を使用して GetAgentTask 操作を呼び出し、タスク実行のステータスを照会できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
sysom:InstallAgent |
none |
*すべてのリソース。
|
なし | なし |
リクエスト構文
POST /api/v1/am/agent/install_agent HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| body |
object |
任意 |
リクエストボディ。 |
|
| agent_id |
string |
必須 |
インストールするコンポーネントの ID。 |
74a86327-3170-412c-8e67-da3389ec56a9 |
| agent_version |
string |
必須 |
インストールするコンポーネントのバージョン。 |
3.4.0-1 |
| install_type |
string |
必須 |
インストールタイプ。有効な値:
|
InstallAndUpgrade |
| instances |
array<object> |
必須 |
コンポーネントをインストールするインスタンスのリスト。 |
|
|
object |
必須 |
インスタンス情報。 |
||
| instance |
string |
必須 |
インスタンスの ID。 |
i-wz9b9vucz1iubsz8sjqo |
| region |
string |
必須 |
リージョンの ID。 |
cn-hangzhou |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエストの ID。エンドツーエンドの診断に使用できます。 |
1D8887FC-4BDB-5A1C-AB19-135C29A9E481 |
| code |
string |
状態コード。
|
Success |
| data |
object |
応答データ。 |
|
| task_id |
string |
タスクの ID。 このタスク ID を使用して GetAgentTask 操作を呼び出し、タスク実行のステータスを照会できます。 |
26b3cd97389c43dcad6bc4901c36fcec |
| message |
string |
エラーメッセージ。
|
"" |
例
成功レスポンス
JSONJSON
{
"RequestId": "1D8887FC-4BDB-5A1C-AB19-135C29A9E481",
"code": "Success",
"data": {
"task_id": "26b3cd97389c43dcad6bc4901c36fcec"
},
"message": "\"\""
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | SysomOpenAPI.AgentNotExists | Agent not exists. | |
| 400 | SysomOpenAPI.AgentTaskNotFound | Agent task not found. | |
| 400 | SysomOpenAPI.AgentVersionNotExists | Agent version not exists. | |
| 400 | SysomOpenAPI.InstanceNotExists | Instance not exists. | |
| 400 | SysomOpenAPI.InvalidParameter | Invalid parameters passed when calling the interface. | |
| 400 | SysomOpenAPI.MissingParameter | Missing parameters. | |
| 400 | SysomOpenAPI.NoAgentInstalled | No SysOM Agent version available. | |
| 400 | SysomOpenAPI.NotAuthorizedInstance | Instance not authorized. | |
| 400 | SysomOpenAPI.NotOwnInstance | Not own current instance. | |
| 400 | SysomOpenAPI.NotOwnTask | Diagnosis result does not belong to the current account. | |
| 400 | SysomOpenAPI.NotSupportedAgentVersion | Unsupported sysom agent version. | |
| 400 | SysomOpenAPI.ServerError | Server error, please correct the code according to the error message. | |
| 400 | SysomOpenAPI.ServiceRoleNotExists | Service role does not exist, please init the sysom service first. | |
| 400 | SysomOpenAPI.RegionNotSupport | Region not supported. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。