CreateOpsItem - 创建运维项

更新时间:
复制 MD 格式

创建运维项。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

oos:CreateOpsItem

create

*OpsItem

acs:oos:{#regionId}:{#accountId}:opsitem/*

  • oos:TLSVersion

请求参数

名称

类型

必填

描述

示例值

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

严重程度。

枚举值:

  • High :

  • Low :

  • Medium :

  • Critical :

    严重

Medium

Source

string

来源业务。

/aliyun/ecs

Category

string

分类。

枚举值:

  • Availability :

    可用性

  • Performance :

    性能

  • Security :

    安全

  • Cost :

    成本

  • Recovery :

    备份恢复

Security

Priority

integer

优先级。取值范围 1-5,1 为最高优先级。

枚举值:

  • 1 :

    1

  • 2 :

    2

  • 3 :

    3

  • 4 :

    4

  • 5 :

    5

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"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情