Create an API group.
Operation description
You must create an API group before you create APIs. The group is a required property of each API.
This feature is for API providers.
Each user can create up to 100 groups per region.
The system automatically assigns a second-level domain to each group for API testing.
Groups are associated with a region. When you select a group for an API, you also select its region. To reduce network latency, choose a region that matches your backend service region.
After you create a group, attach a custom domain name with an ICP filing to it.
The QPS limit for this operation is 50 per user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:CreateApiGroup |
create |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupName |
string |
Yes |
The group name. It must be unique and can contain only letters, digits, underscores, and Chinese characters. It must start with a letter or Chinese character. Its length must be 4 to 50 characters. |
Weather |
| BasePath |
string |
No |
The root path for APIs in this group. |
/qqq |
| Description |
string |
No |
A description of the API group. It can be up to 180 characters long. |
The weather informations. |
| InstanceId |
string |
No |
The ID of the instance. |
apigateway-cn-v6419k43xxxxx |
| Tag |
array<object> |
No |
The object tags to which the rule applies. You can specify multiple tags. |
Key, Value |
|
object |
No |
|||
| Key |
string |
No |
The key of the tag. |
key |
| Value |
string |
No |
The value of the tag. |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TagStatus |
boolean |
Indicates whether the tag exists. Valid values:- true: The tag exists.- false: The tag does not exist. |
True |
| BasePath |
string |
The root path for APIs in this group. |
/qqq |
| RequestId |
string |
The unique identifier of the request. |
FF3B7D81-66AE-47E0-BF69-157DCF187514 |
| Description |
string |
The description of the API group. |
The weather informations |
| GroupName |
string |
The name of the API group. |
Weather |
| GroupId |
string |
The ID of the API group. This ID is generated by the system and is globally unique. |
523e8dc7bbe04613b5b1d726c2a7xx |
| InstanceId |
string |
The ID of the instance. |
apigateway-cn-v6419k43xxxxx |
| SubDomain |
string |
The second-level domain assigned to the group by the system. Use it to test API calls. |
523e8dc7bbe04613b5b1d726xxxxxxxx-cn-hangzhou.alicloudapi.com |
| InstanceType |
string |
The type of the instance.
|
VPC_SHARED |
Examples
Success response
JSON format
{
"TagStatus": true,
"BasePath": "/qqq",
"RequestId": "FF3B7D81-66AE-47E0-BF69-157DCF187514",
"Description": "The weather informations",
"GroupName": "Weather",
"GroupId": "523e8dc7bbe04613b5b1d726c2a7xx",
"InstanceId": "apigateway-cn-v6419k43xxxxx",
"SubDomain": "523e8dc7bbe04613b5b1d726xxxxxxxx-cn-hangzhou.alicloudapi.com",
"InstanceType": "VPC_SHARED"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.