Creating an API Group
Function
This API is used to create an API group. An API group is an API management unit and the entry to a service. A subdomain name is returned as the access entry when an API group is created. APIs in an API group should be correlated with each other.
URI
The following table lists the HTTP/HTTPS request method and URI of the API.
Request Method |
URI |
---|---|
POST |
/v1.0/apigw/api-groups |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
API group name An API group name consists of 3–64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed. |
remark |
No |
String |
Description of the API group The description cannot exceed 255 characters. |
Example request:
{ "name": "api_group_001", "remark": "API group 1" }
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
API group ID |
name |
String |
API group name |
status |
Integer |
Status of the API group |
sl_domain |
String |
Subdomain name that APIG automatically allocates to the API group |
sl_domains |
Array of strings |
List of subdomain names that APIG automatically allocates to the API group |
register_time |
Timestamp |
Time when the API group is created |
update_time |
Timestamp |
Time when the API group was last modified |
remark |
String |
Description of the API group |
on_sell_status |
Integer |
Indicates whether the API group has been listed on KooGallery. The value can be:
|
call_limits |
Integer |
Total number of times all APIs in the API group can be accessed. Set this parameter while considering the payload capacity of the backend service. By default, there is no limit on the number of API calls. |
time_interval |
Integer |
Period of time for limiting the number of API calls |
time_unit |
String |
Time unit for limiting the number of API calls |
url_domains |
Array of UrlDomainsResp objects |
List of independent domain names bound to the API group |
is_default |
Integer |
Indicates whether the API group is the default API group. By default, the API group is not the default API group. The value can be:
|
Parameter |
Type |
Description |
---|---|---|
id |
String |
Domain ID |
domain |
String |
Domain name |
cname_status |
Integer |
CNAME resolution status of the domain name, which can be:
|
ssl_id |
String |
SSL certificate ID |
ssl_name |
String |
SSL certificate name |
Example response:
{ "id": "7efb2b91-155a-4f6a-9f45-c5c95a6e4950", "name": "api_group_001", "status": 1, "sl_domain": "0e91b83b-0774-4e8e-b187-2d695ed4743b.apigw.example.com", "sl_domains": ["0e91b83b-0774-4e8e-b187-2d695ed4743b.apigw.example.com","0e91b83b-0774-4e8e-b187-2d695ed4743b.apigw.example.cn"], "remark": "API group 1", "register_time": "2017-12-28T11:44:53.831282304Z", "update_time": "2017-12-28T11:44:53.831283436Z", "on_sell_status": 2, "is_default": 2 }
Status Codes
Status Code |
Description |
---|---|
201 |
Created |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
500 |
Server Internal Error |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot