All Products
Search
Document Center

CloudOps Orchestration Service:CreateOpsItem

Last Updated:Oct 14, 2024

Creates an O\\\\\\\\\\&M Item.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
oos:CreateOpsItemcreate
  • OpsItem
    acs:oos:{#regionId}:{#accountId}:opsitem/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
TitlestringYes

The title of the O&M item.

ECS reboot is scheduled
DescriptionstringNo

The description of the operation.

OpsItem
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmxsn4m4******
TagsobjectNo

The tags.

{ "k1": "v1", "k2": "v2" }
ClientTokenstringNo

The client token that is used to ensure the idempotence of the request.

123e56767-e89b-12d3-a456-426655440000
SeveritystringYes

The severity level.

Valid values:

  • High

  • Low

  • Medium

  • Critical

Medium
SourcestringYes

The source business.

/aliyun/ecs
CategorystringYes

The category.

Valid values:

  • Availability

  • Performance

  • Security

  • Cost

  • Recovery

Security
PriorityintegerNo

The priority. Valid values: 1 to 5. 1 indicates the highest priority.

Enumeration Value:
  • 1: 1.
  • 2: 2.
  • 3: 3.
  • 4: 4.
  • 5: 5.
4
SolutionsstringNo

The solutions.

\[{\n \\"priority\\":3,\n \\"type\\":\\"SingleAZEcs\\",\n \\"url\\":\\"http://ecs.consle.aliyuncs.com\\",\n \\"description\\":\\"Create Elastic Compute Service (ECS) instances in different zones and import them to an application group.\\"\n}]
DedupStringstringNo

The string to be deduplicated.

ecs_instance_Sys
ResourcesstringNo

The Alibaba Cloud Resource Names (ARNs) of the associated resources.

[\"acs:oos:cn-hangzhou:1563457855438522:application/test-33333/applicationgroup/default-cn-hangzhou-1\"]

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

DA4F08D4-DA54-5407-84B9-108C71D75B17
OpsItemobject

The information about the O&M item.

Tagsobject

The tags of the O&M item.

{"k1": "v1"}
UpdateDatestring

The time when the O&M item was updated.

2023-03-24T03:55Z
Descriptionstring

The description of the O&M item.

OpsItem
OpsItemIdstring

The ID of the O&M item.

oi-dba9c6eec9254a4d87c1
CreateDatestring

The time when the O&M item was created.

2023-03-24T03:55Z
Titlestring

The title of the O&M item.

ECS reboot is scheduled
Statusstring

The state of the O&M item.

Running
Severitystring

The severity level of the O&M item.

Medium
Categorystring

The category of the O&M item.

Security
Sourcestring

The source business of the O&M item.

/aliyun/ecs
Priorityinteger

The priority of the O&M item.

2
Solutionsstring

The solutions.

\[{\n \\"priority\\":3,\n \\"type\\":\\"url\\",\n \\"url\\":\\"https://example..com\\",\n \\"description\\":\\"Specify a cross-zone high availability cluster. \\"\n}]
Resourcesstring

The ARNs of the associated resources.

[\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\"]
Attributesstring

The attributes of the O&M item.

{\"regionId\":\"cn-zhangjiakou\",\"appId\":\"992BKO1X75GRQ4E8\",\"instanceId\":\"i-8vbcymxagqsyyyjppbr4\",\"instance_name\":\"cdae\"}
CreatedBystring

The user who created the O&M item.

root(130900000)
LastModifiedBystring

The user who last modified the O&M item.

root(130900000)
ResourceGroupIdstring

The ID of the resource group.

rg-acfmxsn4m4******

Examples

Sample success responses

JSONformat

{
  "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\\\\\":\\\\\"Specify a cross-zone high availability cluster. \\\\\"\\n}]\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******"
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history