調用CreateInstanceOpsTask建立一個營運任務。
介面說明
介面說明
營運任務支援以下兩種:
coredump:開啟 coredump 後,在容器異常終止時,系統會產生 core 檔案,以便您分析異常,找出問題原因。更多資訊,請參見開啟 coredump。
tcpdump:開啟 tcpdump 後,系統將抓取網路資料包,以便您分析報文,定位網路問題。更多資訊,請參見開啟 tcpdump。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eci:CreateInstanceOpsTask |
create |
*全部資源
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
| ContainerGroupId |
string |
是 |
ECI 執行個體 ID。 |
eci-bp1dvysdafbh00t7**** |
| OpsType |
string |
是 |
營運任務類型。取值範圍:
|
coredump |
| OpsValue |
string |
是 |
營運任務參數。根據 OpsType 的取值,可設定相應參數。
|
enable |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
89945DD3-9072-47D0-A318-353284CFC7B |
| Result |
string |
營運任務執行結果。 |
Enable Success |
樣本
正常返回樣本
JSON格式
{
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B",
"Result": "Enable Success"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Coredump.RefrshIntervalTooShort | The time interval since last setting too short, please try again later. | |
| 400 | Ops.TypeNotSupport | %s | |
| 400 | Coredump.RegionNotSupport | %s | |
| 400 | CorePattern.UpdateFail | Update coredump settings fail, please try again later | |
| 400 | Coredump.InvalidCorePatternType | %s | |
| 400 | InvalidCorePatternValue | %s | |
| 400 | InvalidInstanceId.NotFound | The specified instanceId does not exist | |
| 400 | Ops.InstanceNotSupport | %s | |
| 400 | Ops.IntervalTooShort | The time interval since last setting too short, please try again later. | |
| 400 | Ops.RegionNotSupport | %s | |
| 400 | Ops.OpsValueInvalid | Ops value check failed, please confirm by ops type and try again later. | |
| 400 | Ops.ExecuteTaskFail | %s | |
| 400 | Tcpdump.InvalidValue | %s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。