Creates an application group. 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:CreateApplicationGroup |
create |
*ApplicationGroup
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Currently, only cn-hangzhou is supported. |
cn-hangzhou |
| Description |
string |
No |
The description of the application group. |
ApplicationGroup |
| DeployRegionId |
string |
Yes |
The deployment region ID, which is the region ID where the resource resides. |
cn-hangzhou |
| ImportTagKey |
string |
No |
The tag key. You must specify both the tag key (ImportTagKey) and the tag value (ImportTagValue), or leave both unspecified. You cannot specify only one of them. If neither ImportTagKey nor ImportTagValue is specified, the default value is app-{ApplicationName} (the application name). |
k1 |
| ImportTagValue |
string |
No |
The tag value. You must specify both the tag key (ImportTagKey) and the tag value (ImportTagValue), or leave both unspecified. You cannot specify only one of them. If neither ImportTagKey nor ImportTagValue is specified, the default value is {Name} (the application group name). |
v1 |
| Name |
string |
Yes |
The name of the application group. |
MyApplicationGroup |
| ClientToken |
string |
No |
The idempotence token. |
- |
| ApplicationName |
string |
Yes |
The application name. |
MyApplication |
| CmsGroupId |
string |
No |
The CloudMonitor group ID. |
218026174 |
| 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. |
0E6BEBD3-7F9E-5878-834B-097633AB5F33 |
| ApplicationGroup |
object |
The application group information. |
|
| CmsGroupId |
string |
The CloudMonitor group ID. |
1245768 |
| DeployRegionId |
string |
The deployment region ID, which is the region ID where the resource resides. |
cn-hangzhou |
| Description |
string |
The description of the application group. |
ApplicationGroup |
| UpdateDate |
string |
The update time in ISO 8601 format. The time is displayed in UTC. |
2021-09-07T10:28:25Z |
| ImportTagKey |
string |
The tag key. |
k1 |
| ApplicationName |
string |
The application name. |
MyApplication |
| ImportTagValue |
string |
The tag value. |
v1 |
| Name |
string |
The name of the application group. |
MyApplicationGroup |
| CreateDate |
string |
The creation time in ISO 8601 format. The time is displayed in UTC. |
2021-09-07T10:28:25Z |
Examples
Success response
JSON format
{
"RequestId": "0E6BEBD3-7F9E-5878-834B-097633AB5F33",
"ApplicationGroup": {
"CmsGroupId": "1245768",
"DeployRegionId": "cn-hangzhou",
"Description": "ApplicationGroup",
"UpdateDate": "2021-09-07T10:28:25Z",
"ImportTagKey": "k1",
"ApplicationName": "MyApplication",
"ImportTagValue": "v1",
"Name": "MyApplicationGroup",
"CreateDate": "2021-09-07T10:28:25Z"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.