修改營運項。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
oos:UpdateOpsItem |
update |
*OpsItem
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-hangzhou |
| Title |
string |
否 |
營運項標題。 |
Test |
| Description |
string |
否 |
營運項的描述。 |
test-update |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-acfmxsn4m4****** |
| Tags |
object |
否 |
標籤。 |
{ "k1": "v1", "k2": "v2" } |
| ClientToken |
string |
否 |
等冪 Token。 |
DASKJJLKADS-AHKLJHJSAKL-AJK |
| Severity |
string |
否 |
嚴重程度。 枚舉值:
|
Medium |
| Source |
string |
否 |
來源業務。 |
/aliyun/ecs |
| Category |
string |
否 |
分類。 枚舉值:
|
Security |
| Priority |
integer |
否 |
優先順序。 枚舉值:
|
2 |
| Solutions |
string |
否 |
解決方案列表。 |
[{\n \"priority\":3,\n \"type\":\"url\",\n \"url\":\"https://example.com\",\n \"description\":\"請對叢集設定跨可用性區域高可用。\"\n}] |
| DedupString |
string |
否 |
去重字串。 |
ecs_instance_SystemMaintenance.Reboot |
| Resources |
string |
否 |
關聯資源 ARN 列表。 |
[\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\"] |
| OpsItemId |
string |
否 |
營運項 ID,OpsItemId 和 Resources 二參數必須填一個。 |
oi-e2264dcf040c472598e9 |
| Status |
string |
否 |
狀態。 枚舉值:
|
Open |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
C996DECB-3D2B-5321-B359-BE7031B6399E |
| OpsItem |
object |
營運項 |
|
| Tags |
object |
標籤。 |
{ "k1": "v1", "k2": "v2" } |
| UpdateDate |
string |
更新時間。 |
2023-03-16T08:04Z |
| Description |
string |
描述。 |
test-update |
| OpsItemId |
string |
營運項 ID。 |
oi-e2264dcf040c472598e9 |
| CreateDate |
string |
建立時間。 |
2023-03-16T07:04Z |
| Title |
string |
營運項標題。 |
Test |
| Status |
string |
狀態。 |
Open |
| Severity |
string |
嚴重程度。 |
Medium |
| Category |
string |
分類。 |
Security |
| Source |
string |
來源業務。 |
/aliyun/ecs |
| Priority |
integer |
優先順序。 |
2 |
| Solutions |
array |
解決方案列表。 |
|
|
string |
解決方案。 |
[{\n \"priority\":2,\n \"type\":\"SlbNeedEcs\",\n \"url\":\"https://computenest.console.alibabacloud.com/app\",\n \"description\":\"請將SLB執行個體下所有的ECS執行個體匯入到應用分組中\"\n}] |
|
| Resources |
array |
關聯資源 ARN 列表。 |
|
|
string |
關聯資源 ARN。 |
[\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\"] |
|
| Attributes |
string |
營運項屬性資訊。 |
[{'Attribute': {'Weight': 100}, 'RealServer': 'uaejc8hnqzqz5valyh8dibolpvza48ik.yundunwaf5.com'}] |
| CreatedBy |
string |
營運項建立者。 |
root(130900000) |
| LastModifiedBy |
string |
營運項修改者。 |
root(130900000) |
| ResourceGroupId |
string |
資源群組 ID。 |
rg-acfmxsn4m4****** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "C996DECB-3D2B-5321-B359-BE7031B6399E",
"OpsItem": {
"Tags": {
"k1": "v1",
"k2": "v2"
},
"UpdateDate": "2023-03-16T08:04Z",
"Description": "test-update",
"OpsItemId": "oi-e2264dcf040c472598e9",
"CreateDate": "2023-03-16T07:04Z",
"Title": "Test",
"Status": "Open",
"Severity": "Medium",
"Category": "Security",
"Source": "/aliyun/ecs",
"Priority": 2,
"Solutions": [
"[{\\n \\\"priority\\\":2,\\n \\\"type\\\":\\\"SlbNeedEcs\\\",\\n \\\"url\\\":\\\"https://computenest.console.alibabacloud.com/app\\\",\\n \\\"description\\\":\\\"請將SLB執行個體下所有的ECS執行個體匯入到應用分組中\\\"\\n}]"
],
"Resources": [
"[\\\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\\\"]"
],
"Attributes": "[{'Attribute': {'Weight': 100}, 'RealServer': 'uaejc8hnqzqz5valyh8dibolpvza48ik.yundunwaf5.com'}]",
"CreatedBy": "root(130900000)\n",
"LastModifiedBy": "root(130900000)\n",
"ResourceGroupId": "rg-acfmxsn4m4******"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。