Data-Plane Group Configurations
Create Configuration
Creates a new configuration for a control-plane (restricted by permitted control-plane permissions for configurations). This request will replace any existing configuration for the requested control_plane_id and control_plane_geo by performing a diff. From this diff, new resources detected in the requested configuration will be added, resources not found in the request configuration but in the previous will be deleted, and resources found in both will be updated to the requested configuration. Networks referenced in this request that are in an offline state will automatically initialize (i.e. move to an initializing state).
put/v2/cloud-gateways/configurations
Request body
Example request
{
"control_plane_id": "0949471e-b759-45ba-87ab-ee63fb781388",
"version": "3.2",
"dataplane_groups": [
{
"provider": "aws",
"region": "us-east-2",
"cloud_gateway_network_id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
"autoscale": {
"requested_instances": 3
},
"environment": [
{
"name": "KONG_LOG_LEVEL",
"value": "INFO"
}
]
}
]
}Response
Response format for creating a configuration.
Example response
{
"id": "edaf40f9-9fb0-4ffe-bb74-4e763a6bd471",
"version": "3.2",
"dataplane_group_config": [
{
"provider": "aws",
"region": "us-east-2",
"cloud_gateway_network_id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
"autoscale": {
"requested_instances": 3
},
"environment": [
{
"name": "KONG_LOG_LEVEL",
"value": "INFO"
}
]
}
],
"dataplane_groups": [
{
"id": "cbb8872a-1f83-4806-bf69-fdf0b4783c7e",
"provider": "aws",
"region": "us-east-2",
"autoscale": {
"requested_instances": 3
},
"environment": [
{
"name": "KONG_LOG_LEVEL",
"value": "INFO"
}
],
"cloud_gateway_network_id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
"private_ip_addresses": [
"192.168.248.132",
"192.168.66.81",
"192.168.137.135"
],
"egress_ip_addresses": [
"71.78.149.75",
"91.149.112.244",
"51.235.15.121"
],
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}
],
"entity_version": 1,
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"control_plane_id": "0949471e-b759-45ba-87ab-ee63fb781388"
}