Creates 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:CreateApplication |
create |
*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. |
MyApplication |
| Description |
string |
No |
The description to add to the application. |
application |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxsn4m****** |
| Tags |
object |
No |
The tags. |
{"k1":"v1","k2":"v2"} |
| ClientToken |
string |
No |
The idempotence token. |
TF-CreateApplication-1647587475-84104b89-eba5-47a8-b2fd-807b8b7d |
| AlarmConfig |
object |
No |
The alert configuration of the application. |
|
| ContactGroups |
array |
No |
The alert contact groups. |
|
|
string |
No |
The name of the alert contact group. |
Alert contact group name |
|
| TemplateIds |
array |
No |
The alert template group. |
|
|
string |
No |
The alert template ID. For information about how to obtain the alert template ID, see DescribeMetricRuleTemplateList. |
6c7372e9e237463bb9efcb1acd91358d |
|
| HealthCheckUrl |
string |
No |
The health check URL. |
/healthcheck/tcp50122 |
| ServiceId |
string |
No |
The Compute Nest service ID that corresponds to the application template. |
service-79538e30e44541b699d8 |
| ApplicationSource |
string |
No |
The application source. |
{"Platform":"github","Owner":"githubUser","RepoName":"githubUser/repoName"} |
| DeploymentType |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
274917E8-8E74-5928-A82F-4940F52F7ACB |
| Application |
object |
The application information. |
|
| Tags |
object |
The tags. |
{"k1":"v1","k2":"v2"} |
|
string |
The tags. |
{"k1":"v1","k2":"v2"} |
|
| Name |
string |
The application name. |
Myapplication |
| UpdateDate |
string |
The update time. |
2021-09-07T09:17:46Z |
| Description |
string |
The description. |
application |
| CreateDate |
string |
The creation time. |
2021-09-07T09:17:46Z |
| DeploymentType |
string |
Examples
Success response
JSON format
{
"RequestId": "274917E8-8E74-5928-A82F-4940F52F7ACB",
"Application": {
"Tags": {
"key": "{\"k1\":\"v1\",\"k2\":\"v2\"}"
},
"Name": "Myapplication",
"UpdateDate": "2021-09-07T09:17:46Z",
"Description": "application",
"CreateDate": "2021-09-07T09:17:46Z",
"DeploymentType": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.