Generate a Docker run command to install an AI Gateway instance
GET /api/ai_gateway_groups/{ai_gateway_group_id}/deployment/docker
GET /api/ai_gateway_groups/{ai_gateway_group_id}/deployment/dockerInteractive request editor loads with JavaScript.
In: header
Path Parameters
AI Gateway group ID.
1 <= lengthQuery Parameters
The IP address of the control plane.
1 <= lengthThe validity period of the certificate in days.
1 <= value <= 109503650Docker image.
1 <= lengthThe HTTP port of the gateway.
9080The hostname of the gateway.
1 <= lengthAdditional docker run arguments.
Response Body
text/plain
application/json
curl -X GET "$API_BASE_URL/api/ai_gateway_groups/abc1234567890/deployment/docker?image=api7%2Fapi7-ee-3-gateway&extra_args%5B%5D=a%3Db&extra_args%5B%5D=c%3Dd"Successfully generated the Docker run command for AI Gateway installation.
"docker run -d \\\n -e API7_CONTROL_PLANE_ENDPOINTS='[\"https://10.0.0.1:31344\"]' \\\n -e API7_CONTROL_PLANE_CERT=\"-----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\" \\\n -e API7_CONTROL_PLANE_KEY=\"-----BEGIN PRIVATE KEY-----\n ...\n -----END PRIVATE KEY-----\" \\\n -e API7_CONTROL_PLANE_CA=\"-----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\" \\\n -p 3000:3000 \\\n api7/aisix:latest\n"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/{ai_gateway_group_id}/deployment/docker
Generate a Docker run command to install an AI Gateway instance
IAM Action: ai_gateway:GetAIGatewayGroup, Resource: arn:api7:ai_gateway:aigatewaygroup/%s
Generates a docker run command that configures and starts an AISIX AI Gateway instance connected to the specified AI Gateway group.
Parameters
ai_gateway_group_id(path, string, required): AI Gateway group ID.dp_manager_address(query, string, optional):validity_period(query, integer, optional):image(query, string, optional): Docker image.http_port(query, integer, optional): The HTTP port of the gateway.name(query, string, optional): The hostname of the gateway.extra_args[](query, array, optional): Additional docker run arguments.
Responses
200: Successfully generated the Docker run command for AI Gateway installation.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/{ai_gateway_group_id}/deployment/docker'