API7 Docs

Generate a script to install the gateway instance by Docker Compose

GET /api/gateway_groups/{gateway_group_id}/deployment/docker-compose

GET /api/gateway_groups/{gateway_group_id}/deployment/docker-compose

Interactive request editor loads with JavaScript.

Authorization

X-API-KEY<token>

In: header

Path Parameters

gateway_group_id*string

Gateway group ID.

Length1 <= length

Query Parameters

dp_manager_address?string

The IP address of the control plane.

Length1 <= length
validity_period?integer

The validity period of the certificate in days.

Range1 <= value <= 10950
Default3650
image?string

Docker image.

Length1 <= length
http_port?integer

The HTTP port of the gateway.

Default9080
https_port?integer

The HTTPS port of the gateway.

Default9443
name?string

The name of the docker compose container and service.

Length1 <= length
Default"api7-ee-3-gateway"
extra_args[]?array<string>

Additional docker run arguments.

Response Body

text/plain

application/json

curl -X GET "$API_BASE_URL/api/gateway_groups/86fb9981-d9d2-4555-9df8-91ae92129335/deployment/docker-compose?image=api7%2Fapi7-ee-3-gateway&extra_args%5B%5D=a%3Db&extra_args%5B%5D=c%3Dd"

Successfully generated the Docker Compose configuration for data plane installation.

"services:\n  gateway:\n    image: api7/api7-ee-3-gateway:latest\n    container_name: gateway\n    hostname: gateway\n    restart: always\n    ports:\n      - \"9080:9080\"\n      - \"9443:9443\"\n    environment:\n      API7_DP_MANAGER_ENDPOINTS: '[\"https://12.12.123.123:31344\"]'\n      API7_GATEWAY_GROUP_SHORT_ID: \"oybqauztthfao\"\n      API7_DP_MANAGER_SNI: \"api7ee3-dp-manager\"\n      API7_DP_MANAGER_CERT: |\n        -----BEGIN CERTIFICATE-----\n        MIIBhjCCATigAwIBAgICBAAwBQYDK2VwMEQxCzAJBgNVBAYTAlVTMRMwEQYDVQQI\n        ...\n        -----END CERTIFICATE-----\n\n      API7_DP_MANAGER_KEY: |\n        -----BEGIN PRIVATE KEY-----\n        ...\n        -----END PRIVATE KEY-----\n\n      API7_CONTROL_PLANE_CA: |\n        -----BEGIN CERTIFICATE-----\n        MIIBdTCCASegAwIBAgIQVXqTFu/hH4caZptKdGp04zAFBgMrZXAwRDELMAkGA1UE\n        ...\n        -----END CERTIFICATE-----\n"
Complete operation details and schema variants

GET /api/gateway_groups/{gateway_group_id}/deployment/docker-compose

Generate a script to install the gateway instance by Docker Compose

IAM Action: gateway:CreateGatewayInstance, Resource: arn:api7:gateway:gatewaygroup/%s

Parameters

  • dp_manager_address (query, string, optional):
  • gateway_group_id (path, string, required): Gateway group ID.
  • validity_period (query, integer, optional):
  • image (query, string, optional): Docker image.
  • http_port (query, integer, optional): The HTTP port of the gateway.
  • https_port (query, integer, optional): The HTTPS port of the gateway.
  • name (query, string, optional): The name of the docker compose container and service.
  • extra_args[] (query, array, optional): Additional docker run arguments.

Responses

  • 200: Successfully generated the Docker Compose configuration for data plane 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/gateway_groups/{gateway_group_id}/deployment/docker-compose'