全部產品
Search
文件中心

CloudOps Orchestration Service:CreateOpsItem

更新時間:Sep 10, 2026

建立維運項目。

調試

您可以在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\"]

否

負責人識別碼,格式為 type:id。

user:123456789

否

計畫完成時間,ISO 8601 格式。

2026-09-01T00:00:00Z

否

進度百分比,取值範圍 0-100。

50

否

預計工作時長(小時)。

8.0

否

實際花費工作時長(小時)。

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": "[{\\n    \\\"priority\\\":3,\\n    \\\"type\\\":\\\"url\\\",\\n    \\\"url\\\":\\\"https://example.com\\\",\\n    \\\"description\\\":\\\"請對叢集設定跨可用區高可用。\\\"\\n}]",
    "Source": "/aliyun/ecs",
    "Status": "Running",
    "Tags": {
      "k1": "v1"
    },
    "Title": "ECS reboot is scheduled",
    "UpdateDate": "2023-03-24T03:55Z"
  },
  "RequestId": "DA4F08D4-DA54-5407-84B9-108C71D75B17"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。