Updates an application. The service region for application management supports only Hangzhou. Use the Hangzhou endpoint.
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. Only cn-hangzhou is supported. |
cn-hangzhou |
| Name |
string |
Yes |
The application name. |
My-Application |
| Description |
string |
No |
The description to update for the application. |
test application |
| Tags |
object |
No |
The tags. |
{"k1":"v1","k2":"v2"} |
| AlarmConfig |
object |
No |
The alert configuration for the application. |
|
| ContactGroups |
array |
No |
The alert contact groups. |
|
|
string |
No |
The name of the alert contact group. |
Cloud account alert contact |
|
| TemplateIds |
array |
No |
The alert template group. |
|
|
string |
No |
The alert template ID. For information about how to obtain an alert template ID, 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 value: false. |
false |
| ApplicationSource |
string |
No |
The application source. |
{"Platform":"github","Owner":"githubUser","RepoName":"githubUser/repoName"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F1F00F41-D24C-5377-831B-C97F739CE1AB |
| Application |
object |
The application information. |
|
| Description |
string |
The application description. |
test application |
| UpdatedDate |
string |
The update time, in ISO 8601 format, in UTC. |
2021-09-07T10:17:46Z |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxsn4m***** |
| CreatedDate |
string |
The creation time, in ISO 8601 format, in UTC. |
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.