Creates an application.
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. Set to cn-hangzhou. |
cn-hangzhou |
| Name |
string |
Yes |
The application name. |
MyApplication |
| Description |
string |
No |
The application description. |
application |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxsn4m****** |
| Tags |
object |
No |
The tags. |
{"k1":"v1","k2":"v2"} |
| ClientToken |
string |
No |
The client token for ensuring request idempotence. |
TF-CreateApplication-1647587475-84104b89-eba5-47a8-b2fd-807b8b7d |
| AlarmConfig |
object |
No |
The alert configurations for the application. |
|
| ContactGroups |
array |
No |
The alert contact groups. |
|
|
string |
No |
The alert contact group name. |
Alert contact group name |
|
| TemplateIds |
array |
No |
The alert templates. |
|
|
string |
No |
The alert template ID. To obtain the alert template ID, call DescribeMetricRuleTemplateList. |
6c7372e9e237463bb9efcb1acd91358d |
|
| HealthCheckUrl |
string |
No |
The application health check URL. |
/healthcheck/tcp50122 |
| ServiceId |
string |
No |
The Compute Nest service ID for the application template. |
service-79538e30e44541b699d8 |
| 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. |
274917E8-8E74-5928-A82F-4940F52F7ACB |
| Application |
object |
The information about the application. |
|
| Tags |
object |
The tags. |
{"k1":"v1","k2":"v2"} |
|
string |
The tags. |
{"k1":"v1","k2":"v2"} |
|
| Name |
string |
The application name. |
Myapplication |
| UpdateDate |
string |
The time when the application was updated. |
2021-09-07T09:17:46Z |
| Description |
string |
The application description. |
application |
| CreateDate |
string |
The creation time of the application. |
2021-09-07T09:17:46Z |
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"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.