---
title: "CreateTransitGatewayRequest"
url: "https://nov18-dev.movespot.fyi/apis/konnect-cloud-gateways-2/versions/b826cacf-03b8-4340-bb4e-daa3648a655b/schemas/CreateTransitGatewayRequest"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-cloud-gateways-2/versions/b826cacf-03b8-4340-bb4e-daa3648a655b.md

# CreateTransitGatewayRequest

Request schema for creating a transit gateway.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Cloud Gateways
  version: 2.0.0
servers:
  - url: https://global.api.konghq.com/v2
    description: Base URL for the global region
components:
  schemas:
    CreateAwsTransitGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        cidr_blocks:
          $ref: "#/components/schemas/TransitGatewayCIDRBlocks"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/AwsTransitGatewayAttachmentConfig"
      required:
        - name
        - cidr_blocks
        - transit_gateway_attachment_config
      title: AWS Transit Gateway
    CreateAwsVpcPeeringGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        cidr_blocks:
          $ref: "#/components/schemas/TransitGatewayCIDRBlocks"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/AwsVpcPeeringGatewayAttachmentConfig"
      required:
        - name
        - cidr_blocks
        - transit_gateway_attachment_config
      title: AWS VPC Peering Gateway
    CreateAwsResourceEndpointGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/AwsResourceEndpointAttachmentConfig"
      required:
        - name
        - transit_gateway_attachment_config
      title: AWS Resource Endpoint Gateway
    CreateAzureTransitGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/AzureVNETPeeringAttachmentConfig"
      required:
        - name
        - transit_gateway_attachment_config
      title: Azure Transit Gateway
    CreateAzureVHubPeeringGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/AzureVHubPeeringAttachmentConfig"
      required:
        - name
        - transit_gateway_attachment_config
      title: Azure Virtual Hub Peering Gateway
    CreateGCPVPCPeeringTransitGateway:
      type: object
      properties:
        name:
          $ref: "#/components/schemas/TransitGatewayName"
        dns_config:
          $ref: "#/components/schemas/TransitGatewayDnsConfig"
        transit_gateway_attachment_config:
          $ref: "#/components/schemas/GCPVPCPeeringAttachmentConfig"
      required:
        - name
        - transit_gateway_attachment_config
      title: GCP VPC Peering Transit Gateway
    TransitGatewayName:
      description: Human-readable name of the transit gateway.
      type: string
      example: us-east-2 transit gateway
      title: Transit Gateway Name
    TransitGatewayDnsConfig:
      description: >
        List of mappings from remote DNS server IP address sets to proxied
        internal domains, for a transit gateway

        attachment.
      type: array
      items:
        type: object
        additionalProperties: false
        properties:
          remote_dns_server_ip_addresses:
            description: Remote DNS Server IP Addresses to connect to for resolving internal
              DNS via a transit gateway.
            type: array
            items:
              type: string
            example:
              - 10.0.0.2
            title: Remote DNS Server IP Addresses
          domain_proxy_list:
            description: >
              Internal domain names to proxy for DNS resolution from the listed
              remote DNS server IP addresses,

              for a transit gateway.
            type: array
            items:
              type: string
            example:
              - foobar.com
            title: Domain Proxy List
        required:
          - remote_dns_server_ip_addresses
          - domain_proxy_list
      title: Transit Gateway DNS Config
    TransitGatewayCIDRBlocks:
      description: >
        CIDR blocks for constructing a route table for the transit gateway, when
        attaching to the owning

        network.
      type: array
      items:
        type: string
      example:
        - 10.0.0.0/8
        - 100.64.0.0/10
        - 172.16.0.0/12
      title: Transit Gateway CIDR Blocks
    AwsTransitGatewayAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - aws-transit-gateway-attachment
          title: AWS Transit Gateway Attachment Type
        transit_gateway_id:
          description: AWS Transit Gateway ID to create attachment to.
          type: string
          title: Transit Gateway ID
        ram_share_arn:
          description: Resource Share ARN to verify request to create transit gateway
            attachment.
          type: string
          title: RAM Share ARN
      additionalProperties: false
      required:
        - kind
        - transit_gateway_id
        - ram_share_arn
      title: AWS Transit Gateway Attachment Config
    AwsVpcPeeringGatewayAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - aws-vpc-peering-attachment
          title: AWS VPC Peering Attachment Config
        peer_account_id:
          type: string
        peer_vpc_id:
          type: string
        peer_vpc_region:
          type: string
      additionalProperties: false
      required:
        - kind
        - peer_account_id
        - peer_vpc_id
        - peer_vpc_region
      title: AWS VPC Peering Attachment Config
    AwsResourceEndpointAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - aws-resource-endpoint-attachment
          title: AWS Resource Endpoint Attachment Type
        ram_share_arn:
          description: Resource Share ARN to verify request to create transit gateway
            attachment.
          type: string
          title: RAM Share ARN
        resource_config:
          $ref: "#/components/schemas/AwsResourceEndpointConfig"
      additionalProperties: false
      required:
        - kind
        - ram_share_arn
      title: AWS Resource Endpoint Attachment Config
    AzureVNETPeeringAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - azure-vnet-peering-attachment
          title: Azure VNET Peering Attachment Type
        tenant_id:
          description: Tenant ID for the Azure VNET Peering attachment.
          type: string
          title: Tenant ID
        subscription_id:
          description: Subscription ID for the Azure VNET Peering attachment.
          type: string
          title: Subscription ID
        resource_group_name:
          description: Resource Group Name for the Azure VNET Peering attachment.
          type: string
          title: Resource Group Name
        vnet_name:
          description: VNET Name for the Azure VNET Peering attachment.
          type: string
          title: VNET Name
      additionalProperties: false
      required:
        - kind
        - tenant_id
        - subscription_id
        - resource_group_name
        - vnet_name
      title: Azure VNET Peering Attachment Config
    AzureVHubPeeringAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - azure-vhub-peering-attachment
          title: Azure Virtual Hub Peering Attachment Type
        tenant_id:
          description: Tenant ID of the Azure Virtual Hub resource.
          type: string
          title: Tenant ID
        subscription_id:
          description: Subscription ID of the Azure Virtual Hub resource.
          type: string
          title: Subscription ID
        resource_group_name:
          description: Resource Group Name of the Azure Virtual Hub resource.
          type: string
          title: Resource Group Name
        vhub_name:
          description: Name of the Azure Virtual Hub resource.
          type: string
          title: Virtual Hub Name
      additionalProperties: false
      required:
        - kind
        - tenant_id
        - subscription_id
        - resource_group_name
        - vhub_name
      title: Azure Virtual Hub Peering Attachment Config
    GCPVPCPeeringAttachmentConfig:
      type: object
      properties:
        kind:
          enum:
            - gcp-vpc-peering-attachment
          title: GCP VPC Peering Attachment Type
        peer_project_id:
          description: GCP Project ID of the peer account to create attachment to.
          type: string
          title: GCP Project ID
        peer_vpc_name:
          description: GCP VPC Name of the peer account to create attachment to.
          type: string
          title: GCP VPC Name
      additionalProperties: false
      required:
        - kind
        - peer_project_id
        - peer_vpc_name
      title: GCP VPC Peering Attachment Config
    AwsResourceEndpointConfig:
      description: |
        List of unique resource config mapping for aws resource endpoint.
      type: array
      items:
        type: object
        additionalProperties: false
        properties:
          resource_config_id:
            description: Resource Config ID to uniquely identify a resource configuration.
            type: string
            title: Resource Config ID
          domain_name:
            description: Domain Name to uniquely identify a resource configuration.
            type: string
            title: Domain Name
        required:
          - resource_config_id
          - domain_name
      title: AWS Resource Endpoint Config
    CreateTransitGatewayRequest:
      description: Request schema for creating a transit gateway.
      type: object
      oneOf:
        - $ref: "#/components/schemas/CreateAwsTransitGateway"
        - $ref: "#/components/schemas/CreateAwsVpcPeeringGateway"
        - $ref: "#/components/schemas/CreateAwsResourceEndpointGateway"
        - $ref: "#/components/schemas/CreateAzureTransitGateway"
        - $ref: "#/components/schemas/CreateAzureVHubPeeringGateway"
        - $ref: "#/components/schemas/CreateGCPVPCPeeringTransitGateway"
      title: CreateTransitGatewayRequest
```
