List all AI Gateway groups
GET /api/ai_gateway_groups
GET /api/ai_gateway_groupsInteractive request editor loads with JavaScript.
In: header
Query Parameters
Order to list the resources by. The sorting index follows the configuration of order_by.
"desc"Value in
- "asc"
- "desc"
Number of resources listed per page. Used together with page. For example, when there are 13 resources in total, if the query parameters are page=1&page_size=10, the GET response will show the route total as 13 and display 10 resources in the first page. If the query parameters are page=2&page_size=10, the GET response will show the route total as 13 and display 3 resources in the second page.
int321 <= valuePage number of the listed resources. Used together with page_size. For example, when there are 13 resources in total, if the query parameters are page=1&page_size=10, the GET response will show the route total as 13 and display 10 resources in the first page. If the query parameters are page=2&page_size=10, the GET response will show the route total as 13 and display 3 resources in the second page.
int321 <= valueCondition to search resources by.
Index to order AI gateway groups by.
"updated_at"Value in
- "name"
- "created_at"
- "updated_at"
Response Body
application/json
application/json
curl -X GET "$API_BASE_URL/api/ai_gateway_groups?search=version%253Dv2"Successfully retrieved the paginated list of AI Gateway groups.
{
"total": 1,
"list": [
{
"id": "bd58fce2-b6cc-4d2d-a53c-6ce11b19c101",
"name": "us-west-rsc",
"description": "My AI Gateway group.",
"config": {
"image_tag": "latest"
},
"created_at": 1742288232,
"updated_at": 1742288235
}
]
}Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.
{
"value": {},
"error_msg": "error message"
}Complete operation details and schema variants
GET /api/ai_gateway_groups
List all AI Gateway groups
Returns a paginated list of all AI Gateway groups (AISIX clusters).
Parameters
direction(query, string, optional): Order to list the resources by. The sorting index follows the configuration oforder_by.page_size(query, integer, optional): Number of resources listed per page. Used together withpage. For example, when there are 13 resources in total, if the query parameters arepage=1&page_size=10, the GET response will show the routetotalas13and display 10 resources in the first page. If the query parameters arepage=2&page_size=10, the GET response will show the routetotalas13and display 3 resources in the second page.page(query, integer, optional): Page number of the listed resources. Used together withpage_size. For example, when there are 13 resources in total, if the query parameters arepage=1&page_size=10, the GET response will show the routetotalas13and display 10 resources in the first page. If the query parameters arepage=2&page_size=10, the GET response will show the routetotalas13and display 3 resources in the second page.search(query, string, optional): Condition to search resources by.order_by(query, string, optional): Index to order AI gateway groups by.
Responses
200: Successfully retrieved the paginated list of AI Gateway groups.- allOf variant 1
list(array, optional): An array of resources.total(integer, optional): Total number of objects.- allOf variant 2
list(array, optional): An array of AI Gateway groups.list[].id(string, optional): The object ID.list[].name(string, optional): The object name.list[].description(string, optional): AI Gateway group description.list[].config(object, optional): Configuration for the AI Gateway group.list[].config.image_tag(string, optional): The AISIX (AI Gateway) image tag to deploy.list[].created_at(integer, optional): The object created timestamp.list[].updated_at(integer, optional): The object updated timestamp.400: Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.value(object, optional): The specific resource.error_msg(string, optional): The error message.
cURL
curl -X GET '$API_BASE_URL/api/ai_gateway_groups'