Creates an API group.
Operation description
You must create an API group before you create an API. An API group is a basic property of an API.
This feature is intended for API providers.
Each user can create a maximum of 100 API groups in each region.
The system automatically assigns a second-level domain name to the group for API testing.
API groups are region-specific. To reduce network latency, select a group in the same region as your backend service.
After you create an API group, you can attach a custom domain name that has an ICP filing.
The queries per second (QPS) limit for this API operation is 50 calls 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 name of the API group. The name must be unique. It can contain Chinese characters, letters, digits, and underscores (_). It must start with a letter or a Chinese character, and be 4 to 50 characters in length. |
Weather |
| BasePath |
string |
No |
The root path of the API. |
/qqq |
| Description |
string |
No |
The description of the API group. The description can be up to 180 characters in length. |
The weather informations. |
| InstanceId |
string |
No |
The ID of the instance. |
apigateway-cn-v6419k43xxxxx |
| Tag |
array<object> |
No |
The tags to add to the API group. You can add 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 of the API. |
/qqq |
| RequestId |
string |
The unique ID 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. The 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 name that is assigned to the group by the system. This domain name is used to test API calls. |
523e8dc7bbe04613b5b1d726xxxxxxxx-cn-hangzhou.alicloudapi.com |
| InstanceType |
string |
The instance type.
|
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.