全部產品
Search
文件中心

CloudOps Orchestration Service:CreateOpsItem - 建立營運項

更新時間:Dec 21, 2025

建立營運項。

調試

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

解決方案列表。

[{\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******"
  }
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情