Gateways - Create Gateway

Note

This API is in preview.

Creates a gateway.

Required Delegated Scopes

Gateway.ReadWrite.All

Microsoft Entra supported identities

This API supports the Microsoft identities listed in this section.

Identity Support
User Yes
Service principal Yes
Managed identities Yes

Interface

POST https://api.fabric.microsoft.com/v1/gateways

Request Body

CreateVirtualNetworkGatewayRequest

Name Required Type Description
capacityId True

string

The object ID of the Fabric license capacity.

displayName True

string

The display name of the virtual network gateway. Maximum length is 200 characters.

inactivityMinutesBeforeSleep True

integer

The minutes of inactivity before the virtual network gateway goes into auto-sleep. Must be one of the following values: 30, 60, 90, 120, 150, 240, 360, 480, 720, 1440.

numberOfMemberGateways True

integer

The number of member gateways. A number between 1 and 7.

type True string:

VirtualNetwork

The type of the gateway.

virtualNetworkAzureResource True

VirtualNetworkAzureResource

The Azure virtual network resource.

Responses

Name Type Description
201 Created Gateway:

Created. The operation was successful.

Other Status Codes

ErrorResponse

Common error codes:

  • DuplicateGatewayName - The gateway name is already in use.

  • InvalidCapacityState - The Capacity's state is invalid.

  • InvalidCapacitySKU - The Capacity's SKU is invalid.

  • PowerPlatformVirtualNetworkSubnetNotConfiguredForDelegation - The Power Platform virtual network is not configured for delegation.

Examples

Virtual network gateway example

Sample request

POST https://api.fabric.microsoft.com/v1/gateways

{
  "type": "VirtualNetwork",
  "displayName": "ContosoVirtualNetworkGateway",
  "capacityId": "ed26b6f3-7bc5-44b0-9565-a8942619ef4c",
  "virtualNetworkAzureResource": {
    "subscriptionId": "879b4ba0-ed17-4ff2-851e-4a2228e00b70",
    "resourceGroupName": "ContosoResourceGroup",
    "virtualNetworkName": "ContosoVirtualNetwork",
    "subnetName": "ContosoSubnet"
  },
  "inactivityMinutesBeforeSleep": 120,
  "numberOfMemberGateways": 3
}

Sample response

{
  "id": "271c5c9a-0860-4927-b1da-ce49008d6565",
  "type": "VirtualNetwork",
  "displayName": "ContosoVirtualNetworkGateway",
  "capacityId": "ed26b6f3-7bc5-44b0-9565-a8942619ef4c",
  "virtualNetworkAzureResource": {
    "subscriptionId": "879b4ba0-ed17-4ff2-851e-4a2228e00b70",
    "resourceGroupName": "ContosoResourceGroup",
    "virtualNetworkName": "ContosoVirtualNetwork",
    "subnetName": "ContosoSubnet"
  },
  "inactivityMinutesBeforeSleep": 120,
  "numberOfMemberGateways": 3
}

Definitions

Name Description
CreateVirtualNetworkGatewayRequest
ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response details.

GatewayType

The type of the gateway. Additional gateway types may be added over time.

LoadBalancingSetting

The load balancing setting of the gateway cluster. Additional load balancing settings may be added over time.

OnPremisesGateway
OnPremisesGatewayPersonal
PublicKey

The public key of the on-premises gateway.

VirtualNetworkAzureResource

The properties of a Virtual Network Azure resource

VirtualNetworkGateway

CreateVirtualNetworkGatewayRequest

Name Type Description
capacityId

string

The object ID of the Fabric license capacity.

displayName

string

The display name of the virtual network gateway. Maximum length is 200 characters.

inactivityMinutesBeforeSleep

integer

The minutes of inactivity before the virtual network gateway goes into auto-sleep. Must be one of the following values: 30, 60, 90, 120, 150, 240, 360, 480, 720, 1440.

numberOfMemberGateways

integer

The number of member gateways. A number between 1 and 7.

type string:

VirtualNetwork

The type of the gateway.

virtualNetworkAzureResource

VirtualNetworkAzureResource

The Azure virtual network resource.

ErrorRelatedResource

The error related resource details object.

Name Type Description
resourceId

string

The resource ID that's involved in the error.

resourceType

string

The type of the resource that's involved in the error.

ErrorResponse

The error response.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

relatedResource

ErrorRelatedResource

The error related resource details.

requestId

string

ID of the request associated with the error.

ErrorResponseDetails

The error response details.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

relatedResource

ErrorRelatedResource

The error related resource details.

GatewayType

The type of the gateway. Additional gateway types may be added over time.

Name Type Description
OnPremises

string

The on-premises gateway.

OnPremisesPersonal

string

The on-premises gateway (personal mode).

VirtualNetwork

string

The virtual network gateway.

LoadBalancingSetting

The load balancing setting of the gateway cluster. Additional load balancing settings may be added over time.

Name Type Description
DistributeEvenly

string

Requests will be distributed evenly among all enabled gateway cluster members.

Failover

string

Requests will be sent to the first available gateway cluster member.

OnPremisesGateway

Name Type Description
allowCloudConnectionRefresh

boolean

Whether to allow cloud connections to refresh through this on-premises gateway. True - Allow, False - Do not allow.

allowCustomConnectors

boolean

Whether to allow custom connectors to be used with this on-premises gateway. True - Allow, False - Do not allow.

displayName

string

The display name of the on-premises gateway.

id

string

The object ID of the gateway.

loadBalancingSetting

LoadBalancingSetting

The load balancing setting of the on-premises gateway.

numberOfMemberGateways

integer

The number of gateway members in the on-premises gateway.

publicKey

PublicKey

The public key of the primary gateway member. Used to encrypt the credentials for creating and updating connections.

type string:

OnPremises

The type of the gateway.

version

string

The version of the installed primary gateway member.

OnPremisesGatewayPersonal

Name Type Description
id

string

The object ID of the gateway.

publicKey

PublicKey

The public key of the gateway. Used to encrypt the credentials for creating and updating connections.

type string:

OnPremisesPersonal

The type of the gateway.

version

string

The version of the gateway.

PublicKey

The public key of the on-premises gateway.

Name Type Description
exponent

string

The exponent of the public key.

modulus

string

The modulus of the public key.

VirtualNetworkAzureResource

The properties of a Virtual Network Azure resource

Name Type Description
resourceGroupName

string

The name of the resource group

subnetName

string

The name of the subnet

subscriptionId

string

The subscription ID

virtualNetworkName

string

The name of the virtual network

VirtualNetworkGateway

Name Type Description
capacityId

string

The object ID of the Fabric license capacity.

displayName

string

The display name of the virtual network gateway.

id

string

The object ID of the gateway.

inactivityMinutesBeforeSleep

integer

The minutes of inactivity before the virtual network gateway goes into auto-sleep.

numberOfMemberGateways

integer

The number of member gateways.

type string:

VirtualNetwork

The type of the gateway.

virtualNetworkAzureResource

VirtualNetworkAzureResource

The Azure virtual network resource.