创建运维项。
调试
您可以在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 |
否 |
解决方案列表。 |
[{"priority":3,"type":"SingleAZEcs","url":"http://ecs.console.aliyuncs.com","description":"Create ECS instances in different zones and import to app group"}] |
| DedupString |
string |
否 |
去重字符串。 |
ecs_instance_SystemMaintenance.Reboot |
| Resources |
string |
否 |
关联资源 ARN 列表。 |
[\"acs:oos:cn-hangzhou:1563457855438522:application/test-33333/applicationgroup/default-cn-hangzhou-1\"] |
| AssigneeId |
string |
否 |
负责人标识,格式为 type:id |
user:123456789 |
| PlannedFinishTime |
string |
否 |
计划完成时间,ISO 8601 格式 |
2026-09-01T00:00:00Z |
| Progress |
integer |
否 |
进度百分比,取值范围 0-100 |
50 |
| EstimatedEffortHours |
number |
否 |
预计工作时长(小时) |
8.0 |
| ActualEffortHours |
number |
否 |
实际花费工作时长(小时) |
6.5 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| OpsItem |
object |
运维项。 |
|
| ActualEffortHours |
number |
实际花费工作时长(小时) |
6.5 |
| ActualFinishTime |
string |
实际完成时间 |
2026-08-30T18:00:00Z |
| AssigneeId |
string |
负责人标识 |
user:123456789 |
| Attributes |
string |
运维项属性信息。 |
{\"regionId\":\"cn-zhangjiakou\",\"appId\":\"992BKO1X75GRQ4E8\",\"instanceId\":\"i-8vbcymxagqsyyyjppbr4\",\"instance_name\":\"cdae\"} |
| Category |
string |
分类。 |
Security |
| CreateDate |
string |
创建时间。 |
2023-03-24T03:55Z |
| CreatedBy |
string |
运维项创建者。 |
root(130900000) |
| Description |
string |
描述信息。 |
OpsItem |
| EstimatedEffortHours |
number |
预计工作时长(小时) |
8.0 |
| LastModifiedBy |
string |
运维项修改者。 |
root(130900000) |
| OpsItemId |
string |
运维项 ID。 |
oi-dba9c6eec9254a4d87c1 |
| PlannedFinishTime |
string |
计划完成时间 |
2026-09-01T00:00:00Z |
| Priority |
integer |
优先级。 |
2 |
| Progress |
integer |
进度百分比,取值范围 0-100 |
50 |
| ResourceGroupId |
string |
资源组 ID。 |
rg-acfmxsn4m4****** |
| Resources |
string |
关联资源 ARN 列表。 |
[\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\"] |
| Severity |
string |
严重性级别。 |
Medium |
| Solutions |
string |
解决方案列表。 |
[{"priority":3,"type":"url","url":"https://example.com","description":"Configure cross-zone high availability for the cluster."}] |
| Source |
string |
来源业务。 |
/aliyun/ecs |
| Status |
string |
状态。 |
Running |
| Tags |
object |
标签。 |
{"k1": "v1"} |
| Title |
string |
运维项标题。 |
ECS reboot is scheduled |
| UpdateDate |
string |
更新时间。 |
2023-03-24T03:55Z |
| RequestId |
string |
请求 ID。 |
DA4F08D4-DA54-5407-84B9-108C71D75B17 |
示例
正常返回示例
JSON格式
{
"OpsItem": {
"ActualEffortHours": 6.5,
"ActualFinishTime": "2026-08-30T18:00:00Z",
"AssigneeId": "user:123456789",
"Attributes": "{\\\"regionId\\\":\\\"cn-zhangjiakou\\\",\\\"appId\\\":\\\"992BKO1X75GRQ4E8\\\",\\\"instanceId\\\":\\\"i-8vbcymxagqsyyyjppbr4\\\",\\\"instance_name\\\":\\\"cdae\\\"}",
"Category": "Security",
"CreateDate": "2023-03-24T03:55Z",
"CreatedBy": "root(130900000)\n",
"Description": "OpsItem",
"EstimatedEffortHours": 8,
"LastModifiedBy": "root(130900000)\n",
"OpsItemId": "oi-dba9c6eec9254a4d87c1",
"PlannedFinishTime": "2026-09-01T00:00:00Z",
"Priority": 2,
"Progress": 50,
"ResourceGroupId": "rg-acfmxsn4m4******",
"Resources": "[\\\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\\\"]",
"Severity": "Medium",
"Solutions": "[{\"priority\":3,\"type\":\"url\",\"url\":\"https://example.com\",\"description\":\"Configure cross-zone high availability for the cluster.\"}]",
"Source": "/aliyun/ecs",
"Status": "Running",
"Tags": {
"k1": "v1"
},
"Title": "ECS reboot is scheduled",
"UpdateDate": "2023-03-24T03:55Z"
},
"RequestId": "DA4F08D4-DA54-5407-84B9-108C71D75B17"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。