Generates an O\\\&M item.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GenerateOpsItem |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Data |
string |
Yes |
The source system data. |
/aliyun/ecs |
| DataSource |
string |
No |
The data source system. |
/aliyun/eventbridge/event |
| ConfigurationId |
string |
No |
The configuration ID of the O&M item. |
oic-ae4f******2c682e3 |
| ClientToken |
string |
No |
The token that is used to ensure the idempotency. |
123e4567-e89b-12d3-a456-42665544**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
DA4F08D4-DA54-5407-84B9-108C71D75B17 |
| OpsItemIds |
array |
The O&M item list. |
|
|
string |
The O&M item. |
{ 'OpsItemId': 'oi-4423b****1f477fb862', 'CreateDate': '2024-12-25T07:15:09Z', 'UpdateDate': '2024-12-25T07:15:09Z', 'Title': 'ECS instance i-wz****bmem8 cpu usage has exceeded limit', 'Status': 'Open', 'Severity': 'Critical', 'Category': 'Availability', 'Source': '/aliyun/ecs', 'Priority': 1, 'Tags': {}, 'ResourceGroupId': 'sg-xxx', 'Solutions': [{ 'priority': 1, 'type': 'oosTemplate', 'templateName': 'ACS-ECS-BulkyRestartInstances', 'parameters': { 'regionId': 'cn-hangzhou', 'targets': { 'Type': 'ResourceIds', 'ResourceIds': ['i-wz****bmem8'], 'RegionId': 'cn-hangzhou' } }, 'description': 'immediately restartECSinstance' }], 'Resources': ['acs:ecs:cn-hangzhou:13****371:instance/i-wz****bmem8'], 'Attributes': { 'config_id': 'oic-019****c4684ba42', 'rule_name': 'ecs_instance_cpu_exceed_90_ut2_cn-hangzhou' }, 'CreatedBy': 'customer:13****371:root', 'LastModifiedBy': 'customer:13****371:root', 'Description': 'ECS instance i-wz****bmem8 has high cpu usage, check your service status' } |
Examples
Success response
JSON format
{
"RequestId": "DA4F08D4-DA54-5407-84B9-108C71D75B17",
"OpsItemIds": [
"{\n\t'OpsItemId': 'oi-4423b****1f477fb862',\n\t'CreateDate': '2024-12-25T07:15:09Z',\n\t'UpdateDate': '2024-12-25T07:15:09Z',\n\t'Title': 'ECS instance i-wz****bmem8 cpu usage has exceeded limit',\n\t'Status': 'Open',\n\t'Severity': 'Critical',\n\t'Category': 'Availability',\n\t'Source': '/aliyun/ecs',\n\t'Priority': 1,\n\t'Tags': {},\n\t'ResourceGroupId': 'sg-xxx',\n\t'Solutions': [{\n\t\t'priority': 1,\n\t\t'type': 'oosTemplate',\n\t\t'templateName': 'ACS-ECS-BulkyRestartInstances',\n\t\t'parameters': {\n\t\t\t'regionId': 'cn-hangzhou',\n\t\t\t'targets': {\n\t\t\t\t'Type': 'ResourceIds',\n\t\t\t\t'ResourceIds': ['i-wz****bmem8'],\n\t\t\t\t'RegionId': 'cn-hangzhou'\n\t\t\t}\n\t\t},\n\t\t'description': 'immediately restartECSinstance'\n\t}],\n\t'Resources': ['acs:ecs:cn-hangzhou:13****371:instance/i-wz****bmem8'],\n\t'Attributes': {\n\t\t'config_id': 'oic-019****c4684ba42',\n\t\t'rule_name': 'ecs_instance_cpu_exceed_90_ut2_cn-hangzhou'\n\t},\n\t'CreatedBy': 'customer:13****371:root',\n\t'LastModifiedBy': 'customer:13****371:root',\n\t'Description': 'ECS instance i-wz****bmem8 has high cpu usage, check your service status'\n}"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.