建立營運項。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
oos:CreateOpsItem |
create |
*OpsItem
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-hangzhou |
| Title |
string |
是 |
營運項標題。 |
ECS reboot is scheduled |
| Description |
string |
否 |
操作的描述資訊。 |
OpsItem |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-acfmxsn4m4****** |
| Tags |
object |
否 |
標籤。 |
{ "k1": "v1", "k2": "v2" } |
| ClientToken |
string |
否 |
等冪 Token。 |
123e56767-e89b-12d3-a456-426655440000 |
| Severity |
string |
是 |
嚴重程度。 枚舉值:
|
Medium |
| Source |
string |
是 |
來源業務。 |
/aliyun/ecs |
| Category |
string |
是 |
分類。 枚舉值:
|
Security |
| Priority |
integer |
否 |
優先順序。取值範圍 1-5,1 為最高優先順序。 枚舉值:
|
4 |
| Solutions |
string |
否 |
解決方案列表。 |
[{\n \"priority\":3,\n \"type\":\"SingleAZEcs\",\n \"url\":\"http://ecs.consle.aliyuncs.com\",\n \"description\":\"請建立不同可用性區域的ECS執行個體,並匯入到應用分組中\"\n}] |
| DedupString |
string |
否 |
去重字串。 |
ecs_instance_SystemMaintenance.Reboot |
| Resources |
string |
否 |
關聯資源 ARN 列表。 |
[\"acs:oos:cn-hangzhou:1563457855438522:application/test-33333/applicationgroup/default-cn-hangzhou-1\"] |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
DA4F08D4-DA54-5407-84B9-108C71D75B17 |
| OpsItem |
object |
營運項。 |
|
| Tags |
object |
標籤。 |
{"k1": "v1"} |
| UpdateDate |
string |
更新時間。 |
2023-03-24T03:55Z |
| Description |
string |
描述資訊。 |
OpsItem |
| OpsItemId |
string |
營運項 ID。 |
oi-dba9c6eec9254a4d87c1 |
| CreateDate |
string |
建立時間。 |
2023-03-24T03:55Z |
| Title |
string |
營運項標題。 |
ECS reboot is scheduled |
| Status |
string |
狀態。 |
Running |
| Severity |
string |
嚴重性層級。 |
Medium |
| Category |
string |
分類。 |
Security |
| Source |
string |
來源業務。 |
/aliyun/ecs |
| Priority |
integer |
優先順序。 |
2 |
| Solutions |
string |
解決方案列表。 |
[{\n \"priority\":3,\n \"type\":\"url\",\n \"url\":\"https://example.com\",\n \"description\":\"請對叢集設定跨可用性區域高可用。\"\n}] |
| Resources |
string |
關聯資源 ARN 列表。 |
[\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\"] |
| Attributes |
string |
營運項屬性資訊。 |
{\"regionId\":\"cn-zhangjiakou\",\"appId\":\"992BKO1X75GRQ4E8\",\"instanceId\":\"i-8vbcymxagqsyyyjppbr4\",\"instance_name\":\"cdae\"} |
| CreatedBy |
string |
營運項建立者。 |
root(130900000) |
| LastModifiedBy |
string |
營運項修改者。 |
root(130900000) |
| ResourceGroupId |
string |
資源群組 ID。 |
rg-acfmxsn4m4****** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "DA4F08D4-DA54-5407-84B9-108C71D75B17",
"OpsItem": {
"Tags": {
"k1": "v1"
},
"UpdateDate": "2023-03-24T03:55Z",
"Description": "OpsItem",
"OpsItemId": "oi-dba9c6eec9254a4d87c1",
"CreateDate": "2023-03-24T03:55Z",
"Title": "ECS reboot is scheduled",
"Status": "Running",
"Severity": "Medium",
"Category": "Security",
"Source": "/aliyun/ecs",
"Priority": 2,
"Solutions": "[{\\n \\\"priority\\\":3,\\n \\\"type\\\":\\\"url\\\",\\n \\\"url\\\":\\\"https://example.com\\\",\\n \\\"description\\\":\\\"請對叢集設定跨可用性區域高可用。\\\"\\n}]",
"Resources": "[\\\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\\\"]",
"Attributes": "{\\\"regionId\\\":\\\"cn-zhangjiakou\\\",\\\"appId\\\":\\\"992BKO1X75GRQ4E8\\\",\\\"instanceId\\\":\\\"i-8vbcymxagqsyyyjppbr4\\\",\\\"instance_name\\\":\\\"cdae\\\"}",
"CreatedBy": "root(130900000)\n",
"LastModifiedBy": "root(130900000)\n",
"ResourceGroupId": "rg-acfmxsn4m4******"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。