Updates an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:UpdateApplication |
update |
*Application
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Set this to cn-hangzhou. |
cn-hangzhou |
| Name |
string |
Yes |
The application name. |
My-Application |
| Description |
string |
No |
The new description of the application. |
test application |
| Tags |
object |
No |
The tags. |
{"k1":"v1","k2":"v2"} |
| AlarmConfig |
object |
No |
The alert configurations for the application. |
|
| ContactGroups |
array |
No |
The alert contact groups. |
|
|
string |
No |
The alert contact group name. |
Cloud account alert contact |
|
| TemplateIds |
array |
No |
The alert templates. |
|
|
string |
No |
The alert template ID. For information about how to query alert template IDs, see DescribeMetricRuleTemplateList. |
d8d1153c517f4971a37350ba8c021c26 |
|
| HealthCheckUrl |
string |
No |
The health check URL of the application. |
/healthcheck/tcp50122 |
| DeleteAlarmRulesBeforeUpdate |
boolean |
No |
Specifies whether to delete existing alert rules before applying the alert template. Default: false. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F1F00F41-D24C-5377-831B-C97F739CE1AB |
| Application |
object |
The application details. |
|
| Description |
string |
The description of the application. |
test application |
| UpdatedDate |
string |
The time when the application was updated. |
2021-09-07T10:17:46Z |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxsn4m***** |
| CreatedDate |
string |
The time when the application was created. |
2021-09-07T09:17:46Z |
| Tags |
object |
The tags. |
{"k1":"v1","k2":"v2"} |
| Name |
string |
The application name. |
My-Application |
Examples
Success response
JSON format
{
"RequestId": "F1F00F41-D24C-5377-831B-C97F739CE1AB",
"Application": {
"Description": "test application",
"UpdatedDate": "2021-09-07T10:17:46Z",
"ResourceGroupId": "rg-acfmxsn4m*****",
"CreatedDate": "2021-09-07T09:17:46Z",
"Tags": {
"k1": "v1",
"k2": "v2"
},
"Name": "My-Application"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.