All Products
Search
Document Center

CloudOps Orchestration Service:GetOpsItem

Last Updated:Oct 14, 2024

Queries the details of 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:GetOpsItemget
  • OpsItem
    acs:oos:{#regionId}:{#accountId}:opsitem/{#OpsItemId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
OpsItemIdstringYes

The O&M item ID.

oi-d52b08695e2b46ae8413

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

8BED4C16-BD30-5E27-94D4-7EBCCECF70C1
OpsItemobject

The information about the O&M item.

OpsItemIdstring

The O&M item ID.

oi-d52b08695e2b46ae8413
CreateDatestring

The time when the O&M item was created.

2023-04-10T06:15Z
UpdateDatestring

The time when the O&M item was updated.

2023-04-10T06:15Z
Titlestring

The title of the O&M item.

test
Statusstring

The status of the O&M item.

Open
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/appManager
Priorityinteger

The priority of the O&M item.

1
Tagsobject

The tags attached to the O&M item.

{"K1":"V1"}
Solutionsarray<object>

The solutions to the O&M item.

Solutionobject

The solution.

Resourcesarray

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

Resourcestring

The ARN of the associated resource.

[\"arn:acs:ecs:cn-hangzhou:1770150251620858:instance/i-bp12tnoea6nwofva06e8\"]
DedupStringstring

The duplicated string.

ecs_instance_SystemMaintenance.Reboot
ResourceGroupIdstring

The ID of the resource group.

rg-aekzxkofnlxtn2i
Descriptionstring

The description.

test-update
CreateBystring

The user who created the O&M item.

root(130900000)
LastModifiedBystring

The user who last modified the O&M item.

modifiedBy
Attributesobject

The information about the attributes of the O&M item.

Examples

Sample success responses

JSONformat

{
  "RequestId": "8BED4C16-BD30-5E27-94D4-7EBCCECF70C1",
  "OpsItem": {
    "OpsItemId": "oi-d52b08695e2b46ae8413\n",
    "CreateDate": "2023-04-10T06:15Z",
    "UpdateDate": "2023-04-10T06:15Z\n",
    "Title": "test",
    "Status": "Open",
    "Severity": "Medium",
    "Category": "Security",
    "Source": "/aliyun/appManager",
    "Priority": 1,
    "Tags": {
      "K1": "V1"
    },
    "Solutions": [
      {
        "test": "test",
        "test2": 1
      }
    ],
    "Resources": [
      "[\\\"arn:acs:ecs:cn-hangzhou:1770150251620858:instance/i-bp12tnoea6nwofva06e8\\\"]"
    ],
    "DedupString": "ecs_instance_SystemMaintenance.Reboot",
    "ResourceGroupId": "rg-aekzxkofnlxtn2i",
    "Description": "test-update",
    "CreateBy": "root(130900000)\n",
    "LastModifiedBy": "modifiedBy",
    "Attributes": {
      "test": "test",
      "test2": 1
    }
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-12-27The response structure of the API has changedView Change Details