Querying the API Group List
Function
This API is used to query the list of API groups under a tenant or all tenants.
URI
The following table lists the HTTP/HTTPS request method and URI of the API.
Request Method |
URI |
---|---|
GET |
/v1.0/apigw/api-groups[?page_size, page_no, id, name] |
- A combination of different query conditions can be added at the end of the URI by using question marks (?) and ampersands (&).
- Query conditions include: id, name, page_size, and page_no.
The following table lists the parameters in the URI.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
No |
String |
API group ID |
name |
No |
String |
API group name |
page_size |
No |
Integer |
Number of records displayed on each page. The default value is 20. |
page_no |
No |
Integer |
Page number. The default value is 1. |
precise_search |
No |
String |
Parameter name for exact matching |
Request
N/A
Response
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Number of API groups that match the query conditions |
size |
Integer |
Length of the returned API group list |
groups |
Dictionary |
API group list |
Parameter |
Type |
Description |
---|---|---|
id |
String |
API group ID |
name |
String |
API group name |
status |
Integer |
API group status |
sl_domain |
String |
Subdomain name that API Gateway automatically allocates to the API group |
sl_domains |
Array of strings |
List of subdomain names that API Gateway 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 the marketplace. 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 |
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:
{ "total": 2, "size": 2, "groups": [{ "id": "02a8ab3c-b278-4de5-a096-852829671ae7", "name": "api_group_002", "status": 1, "sl_domain": "19e62eca-43d9-4ce2-a478-b3f48e67fb91.apigw.example.com", "sl_domains": ["19e62eca-43d9-4ce2-a478-b3f48e67fb91.apigw.example.com","19e62eca-43d9-4ce2-a478-b3f48e67fb91.apigw.example.cn"], "remark": "API group 002", "register_time": "2017-12-28T11:57:35Z", "update_time": "2017-12-28T11:57:35Z", "on_sell_status": 2 }, { "id": "73c58022-f20d-495a-a188-85d718647f09", "name": "api_group_001", "status": 1, "sl_domain": "c4c230d1-a8f2-4816-b9df-09ac5989180c.apigw.example.com", "sl_domains": ["c4c230d1-a8f2-4816-b9df-09ac5989180c.apigw.example.com","c4c230d1-a8f2-4816-b9df-09ac5989180c.apigw.example.cn"], "remark": "API group 001", "register_time": "2017-12-28T11:57:27Z", "update_time": "2017-12-28T11:57:27Z", "on_sell_status": 2 }] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
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