Queries OpsItems.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:ListOpsItems |
list |
*OpsItem
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries per page. Valid values: 10 to 100. Default value: 50. |
50 |
| NextToken |
string |
No |
The pagination token that is used to retrieve a new page of results. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
| Filter |
array<object> |
No |
The filter rules for components. |
|
|
object |
No |
|||
| Name |
string |
No |
The name of the filter parameter. |
Status |
| Operator |
string |
No |
The comparison operator for the component property query value. |
Equal |
| Value |
array |
No |
The list of filter values. |
|
|
string |
No |
The filter parameter value. |
Open |
|
| Tags |
object |
No |
The tags. |
{"k1": "v1", "k2": "v2"} |
| ResourceTags |
object |
No |
The resource tag information. |
{ "k1": "v1", "k2": "v2" } |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmzmhzoaad5oq |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| MaxResults |
integer |
The number of entries per page. |
50 |
| NextToken |
string |
The pagination token for the next page. |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC6KPDUL0FIIb |
| OpsItems |
array<object> |
The list of OpsItems. |
|
|
array<object> |
|||
| Category |
string |
The category. |
Security |
| CreateDate |
string |
The creation time in ISO 8601 format. The time is displayed in UTC. |
2023-07-09T10:01Z |
| OpsItemId |
string |
The OpsItem ID. |
oi-d52b08695e2b46ae8413 |
| Priority |
integer |
The priority. |
1 |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmzmhzoaad5oq |
| Resources |
array |
The list of associated resource ARNs. |
|
|
string |
The associated resource ARN. |
[\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv4\",\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv3\"] |
|
| Severity |
string |
The severity level. |
Medium |
| Source |
string |
The source service. |
/aliyun/ecs |
| Status |
string |
The status. |
Open |
| Tags |
object |
The tags. |
{"k1":"v1"} |
| Title |
string |
The OpsItem title. |
Test |
| UpdateDate |
string |
The update time in ISO 8601 format. The time is displayed in UTC. |
2023-07-09T10:01Z |
| RequestId |
string |
The request ID. |
113DD533-389C-5F83-9C69-F64D5BAB10B2 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
Examples
Success response
JSON format
{
"MaxResults": 50,
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC6KPDUL0FIIb",
"OpsItems": [
{
"Category": "Security",
"CreateDate": "2023-07-09T10:01Z",
"OpsItemId": "oi-d52b08695e2b46ae8413",
"Priority": 1,
"ResourceGroupId": "rg-acfmzmhzoaad5oq",
"Resources": [
"[\\\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv4\\\",\\\"arn:acs:ecs:cn-beijing:1770150251620858:instance/i-2zef6yild47noprhuzv3\\\"]"
],
"Severity": "Medium",
"Source": "/aliyun/ecs",
"Status": "Open",
"Tags": {
"k1": "v1"
},
"Title": "Test",
"UpdateDate": "2023-07-09T10:01Z"
}
],
"RequestId": "113DD533-389C-5F83-9C69-F64D5BAB10B2",
"TotalCount": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.