All Products
Search
Document Center

CloudOps Orchestration Service:ListOpsItems

Last Updated:Oct 14, 2024

Queries O\\\&M items.

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

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
MaxResultsintegerNo

The number of entries to return on each page. Valid values: 10 to 100. Default value: 50.

50
NextTokenstringNo

The token that is used to retrieve the next page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB
Filterarray<object>No

The filter rules for the component.

objectNo
ValuearrayNo

The parameter values of the filter.

stringNo

The parameter value of the filter.

Open
OperatorstringNo

The comparison operator that is used to filter property values.

Equal
NamestringNo

The parameter name of the filter.

Status
TagsobjectNo

The tags.

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

The information about resource tags.

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

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The pagination token that can be used in the next request to retrieve a new page of results.

gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC6KPDUL0FIIb
RequestIdstring

The request ID.

113DD533-389C-5F83-9C69-F64D5BAB10B2
MaxResultsinteger

The number of entries returned on each page.

50
OpsItemsarray<object>

The list of O&M items.

OpsItemobject
OpsItemIdstring

The ID of the O&M item.

oi-d52b08695e2b46ae8413
CreateDatestring

The time when the O&M item was created.

2023-07-09T10:01Z
UpdateDatestring

The time when the O&M item was updated.

2023-07-09T10:01Z
Titlestring

The title of the O&M item.

Test
Statusstring

The status of the O&M item.

Open
Severitystring

The severity level.

Medium
Categorystring

The category.

Security
Sourcestring

The source business.

/aliyun/ecs
Priorityinteger

The priority.

1
Tagsobject

The tags.

{"k1":"v1"}
Resourcesarray

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

Resourcestring

The ARN of the associated resource.

[\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv4\",\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv3\"]
TotalCountinteger

The total number of entries returned.

1

Examples

Sample success responses

JSONformat

{
  "NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC6KPDUL0FIIb",
  "RequestId": "113DD533-389C-5F83-9C69-F64D5BAB10B2",
  "MaxResults": 50,
  "OpsItems": [
    {
      "OpsItemId": "oi-d52b08695e2b46ae8413",
      "CreateDate": "2023-07-09T10:01Z",
      "UpdateDate": "2023-07-09T10:01Z",
      "Title": "Test",
      "Status": "Open",
      "Severity": "Medium",
      "Category": "Security",
      "Source": "/aliyun/ecs",
      "Priority": 1,
      "Tags": {
        "k1": "v1"
      },
      "Resources": [
        "[\\\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv4\\\",\\\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv3\\\"]"
      ]
    }
  ],
  "TotalCount": 1
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history