Creates an O&M item.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:CreateOpsItem |
create |
*OpsItem
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Title |
string |
Yes |
The title of the O&M item. |
ECS reboot is scheduled |
| Description |
string |
No |
The description of the O&M item. |
OpsItem |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmxsn4m4****** |
| Tags |
object |
No |
The tags. |
{ "k1": "v1", "k2": "v2" } |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. |
123e56767-e89b-12d3-a456-426655440000 |
| Severity |
string |
Yes |
The severity level. Valid values:
Valid values:
|
Medium |
| Source |
string |
Yes |
The source business. |
/aliyun/ecs |
| Category |
string |
Yes |
The category. Valid values:
Valid values:
|
Security |
| Priority |
integer |
No |
The priority. Valid values: 1 to 5. 1 indicates the highest priority. Valid values:
|
4 |
| Solutions |
string |
No |
The solutions. |
[{\n \"priority\":3,\n \"type\":\"SingleAZEcs\",\n \"url\":\"http://ecs.consle.aliyuncs.com\",\n \"description\":\"Create ECS instances in different zones and import them into the application group\"\n}] |
| DedupString |
string |
No |
The deduplication string. |
ecs_instance_SystemMaintenance.Reboot |
| Resources |
string |
No |
The Alibaba Cloud Resource Names (ARNs) of the associated resources. |
[\"acs:oos:cn-hangzhou:1563457855438522:application/test-33333/applicationgroup/default-cn-hangzhou-1\"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
DA4F08D4-DA54-5407-84B9-108C71D75B17 |
| OpsItem |
object |
The information about the O&M item. |
|
| Tags |
object |
The tags of the O&M item. |
{"k1": "v1"} |
| UpdateDate |
string |
The time when the O&M item was updated. |
2023-03-24T03:55Z |
| Description |
string |
The description of the O&M item. |
OpsItem |
| OpsItemId |
string |
The ID of the O&M item. |
oi-dba9c6eec9254a4d87c1 |
| CreateDate |
string |
The time when the O&M item was created. |
2023-03-24T03:55Z |
| Title |
string |
The title of the O&M item. |
ECS reboot is scheduled |
| Status |
string |
The status of the O&M item. |
Running |
| Severity |
string |
The severity level of the O&M item. |
Medium |
| Category |
string |
The category of the O&M item. |
Security |
| Source |
string |
The source business of the O&M item. |
/aliyun/ecs |
| Priority |
integer |
The priority of the O&M item. |
2 |
| Solutions |
string |
The solutions. |
[{\n \"priority\":3,\n \"type\":\"url\",\n \"url\":\"https://example.com\",\n \"description\":\"Set cross-zone high availability for the cluster.\"\n}] |
| Resources |
string |
The ARNs of the associated resources. |
[\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\"] |
| Attributes |
string |
The attributes of the O&M item. |
{\"regionId\":\"cn-zhangjiakou\",\"appId\":\"992BKO1X75GRQ4E8\",\"instanceId\":\"i-8vbcymxagqsyyyjppbr4\",\"instance_name\":\"cdae\"} |
| CreatedBy |
string |
The user who created the O&M item. |
root(130900000) |
| LastModifiedBy |
string |
The user who last modified the O&M item. |
root(130900000) |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmxsn4m4****** |
Examples
Success response
JSON format
{
"RequestId": "DA4F08D4-DA54-5407-84B9-108C71D75B17",
"OpsItem": {
"Tags": {
"k1": "v1"
},
"UpdateDate": "2023-03-24T03:55Z",
"Description": "OpsItem",
"OpsItemId": "oi-dba9c6eec9254a4d87c1",
"CreateDate": "2023-03-24T03:55Z",
"Title": "ECS reboot is scheduled",
"Status": "Running",
"Severity": "Medium",
"Category": "Security",
"Source": "/aliyun/ecs",
"Priority": 2,
"Solutions": "[{\\n \\\"priority\\\":3,\\n \\\"type\\\":\\\"url\\\",\\n \\\"url\\\":\\\"https://example.com\\\",\\n \\\"description\\\":\\\"Set cross-zone high availability for the cluster.\\\"\\n}]",
"Resources": "[\\\"acs:oos:cn-hangzhou:1563457855438522:application/dingTest/applicationgroup/fltest\\\"]",
"Attributes": "{\\\"regionId\\\":\\\"cn-zhangjiakou\\\",\\\"appId\\\":\\\"992BKO1X75GRQ4E8\\\",\\\"instanceId\\\":\\\"i-8vbcymxagqsyyyjppbr4\\\",\\\"instance_name\\\":\\\"cdae\\\"}",
"CreatedBy": "root(130900000)\n",
"LastModifiedBy": "root(130900000)\n",
"ResourceGroupId": "rg-acfmxsn4m4******"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.