All Products
Search
Document Center

CloudOps Orchestration Service:UpdateOpsItem

Last Updated:Oct 14, 2024

Modifies 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:UpdateOpsItemupdate
  • OpsItem
    acs:oos:{#regionId}:{#accountId}:opsitem/{#OpsItemId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
TitlestringYes

The title of the O&M item.

Test
DescriptionstringNo

The description of the O&M item.

test-update
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.

DASKJJLKADS-AHKLJHJSAKL-AJK
SeveritystringNo

The severity level.

Medium
SourcestringNo

The source business.

/aliyun/ecs
CategorystringNo

The category.

Security
PriorityintegerNo

The priority.

2
SolutionsstringNo

The solutions.

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

The string to be deduplicated.

ecs_instance_SystemMaintenance.Reboot
ResourcesstringNo

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

[\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\"]
OpsItemIdstringNo

The ID of the O&M item.

oi-e2264dcf040c472598e9
StatusstringNo

The status.

Open

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

C996DECB-3D2B-5321-B359-BE7031B6399E
OpsItemobject

The information about the O&M item.

Tagsobject

The tags.

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

The time when the O&M item was updated.

2023-03-16T08:04Z
Descriptionstring

The description.

test-update
OpsItemIdstring

The ID of the O&M item.

oi-e2264dcf040c472598e9
CreateDatestring

The time when the O&M item was created.

2023-03-16T07:04Z
Titlestring

The title of the O&M item.

Test
Statusstring

The status.

Open
Severitystring

The severity level.

Medium
Categorystring

The category.

Security
Sourcestring

The source business.

/aliyun/ecs
Priorityinteger

The priority.

2
Solutionsarray

The solutions.

solutionstring

The solution.

\[{\n \\"priority\\":2,\n \\"type\\":\\"SlbNeedEcs\\",\n \\"url\\":\\"https://computenest.console.aliyun.com/app\\",\n \\"description\\":\\"Import all Elastic Compute Service (ECS) instances that are associated with a Server Load Balancer (SLB) instance to an application group.\\"\n}]
Resourcesarray

The ARNs of the associated resources.

resourcestring

The ARN of the associated resource.

[\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\"]
Attributesstring

The attributes of the O&M item.

[{'Attribute': {'Weight': 100}, 'RealServer': 'uaejc8hnqzqz5valyh8dibolpvza48ik.yundunwaf5.com'}]
CreatedBystring

The user who created the patch baseline.

root(130900000)
LastModifiedBystring

The user who modified the O&M item.

root(130900000)
ResourceGroupIdstring

The ID of the resource group.

rg-acfmxsn4m4******

Examples

Sample success responses

JSONformat

{
  "RequestId": "C996DECB-3D2B-5321-B359-BE7031B6399E",
  "OpsItem": {
    "Tags": {
      "k1": "v1",
      "k2": "v2"
    },
    "UpdateDate": "2023-03-16T08:04Z",
    "Description": "test-update",
    "OpsItemId": "oi-e2264dcf040c472598e9",
    "CreateDate": "2023-03-16T07:04Z",
    "Title": "Test",
    "Status": "Open",
    "Severity": "Medium",
    "Category": "Security",
    "Source": "/aliyun/ecs",
    "Priority": 2,
    "Solutions": [
      "\\[{\\n \\\\\"priority\\\\\":2,\\n \\\\\"type\\\\\":\\\\\"SlbNeedEcs\\\\\",\\n \\\\\"url\\\\\":\\\\\"https://computenest.console.aliyun.com/app\\\\\",\\n \\\\\"description\\\\\":\\\\\"Import all Elastic Compute Service (ECS) instances that are associated with a Server Load Balancer (SLB) instance to an application group.\\\\\"\\n}]\n"
    ],
    "Resources": [
      "[\\\"arn:acs:ecs:cn-heyuan:1139354755361920:instance/i-f8z928h7aqotd3o65032\\\"]"
    ],
    "Attributes": "[{'Attribute': {'Weight': 100}, 'RealServer': 'uaejc8hnqzqz5valyh8dibolpvza48ik.yundunwaf5.com'}]",
    "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