Networks

Creates a new Cloud Gateway network in the specified provider account and region. Network creation is asynchronous — the network starts in initializing state and transitions to ready once provisioned.

post/v2/cloud-gateways/networks

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

CreateNetworkRequest required

Request schema for creating a network.

name, string required

Human-readable name of the network.

cloud_gateway_provider_account_id, string uuid required
region, string required

Region ID for cloud provider region.

availability_zones, string[] required

List of availability zones that the network is attached to.

cidr_block, string required

CIDR block for the network. Must not overlap with reserved blocks for the target region. Query the Resource Availability endpoint for valid CIDR ranges per region and provider.

state, 'initializing' | 'offline'

Initial state for creating a network.

Example request

{
  "name": "us-east-2-network",
  "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
  "region": "us-east-2",
  "availability_zones": [
    "use2-az1",
    "use2-az2",
    "use2-az3"
  ],
  "cidr_block": "10.0.0.0/16"
}

Response

Response format for creating a network.

Network required

Object containing information about a network to be used in configurations.

id, string uuid required

The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.

name, string required

Human-readable name of the network.

default, boolean required

Whether the network is a default network or not. Default networks are Networks that are created automatically by Konnect when an organization is linked to a provider account.

cloud_gateway_provider_account_id, string uuid required
region, string required

Region ID for cloud provider region.

availability_zones, string[] required

List of availability zones that the network is attached to.

cidr_block, string required

CIDR block for the network. Must not overlap with reserved blocks for the target region. Query the Resource Availability endpoint for valid CIDR ranges per region and provider.

state, 'created' | 'initializing' | 'offline' | 'ready' | 'terminating' | 'terminated' required

The current state of the network. Possible values:

  • created: The network was created, but provisioning hasn't started yet.
  • initializing: The network is being provisioned in the cloud provider.
  • offline: The network was created but isn't provisioned; no data planes can be deployed.
  • ready: The network is fully provisioned and available for data plane groups.
  • terminating: The network is being deleted and is no longer accepting new resources.
  • terminated: The network has been fully deleted and is no longer available.
state_metadata, NetworkStateMetadata

Metadata describing the backing state of the network and why it may be in an erroneous state.

provider_metadata, NetworkProviderMetadata required

Metadata describing attributes returned by cloud-provider for the network.

transit_gateway_count, integer required

The number of transit gateways attached to this network.

configuration_reference_count, integer required

The number of configurations that reference this network.

entity_version, integer required

Monotonically-increasing version count of the network, to indicate the order of updates to the network.

created_at, string date-time required

An RFC-3339 timestamp representation of network creation date.

updated_at, string date-time required

An RFC-3339 timestamp representation of network update date.

Example response

{
  "id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
  "name": "us-east-2-network",
  "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
  "region": "us-east-2",
  "availability_zones": [
    "use2-az1",
    "use2-az2",
    "use2-az3"
  ],
  "cidr_block": "10.0.0.0/16",
  "state_metadata": {
    "reported_status": "INVALID",
    "reason": "Network could not be deployed due to insufficient cloud provider compute instances.\n"
  },
  "entity_version": 1,
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status