import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure API Management Standalone Gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-network", * location: example.location, * resourceGroupName: example.name, * addressSpaces: ["10.0.0.0/16"], * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "example-subnet", * resourceGroupName: example.name, * virtualNetworkName: exampleVirtualNetwork.name, * addressPrefixes: ["10.0.1.0/24"], * delegations: [{ * name: "apim-delegation", * serviceDelegation: { * name: "Microsoft.Web/serverFarms", * actions: ["Microsoft.Network/virtualNetworks/subnets/action"], * }, * }], * }); * const exampleStandaloneGateway = new azure.apimanagement.StandaloneGateway("example", { * name: "example-gateway-flexible", * resourceGroupName: example.name, * location: example.location, * virtualNetworkType: "External", * backendSubnetId: exampleSubnet.id, * sku: { * capacity: 1, * name: "WorkspaceGatewayPremium", * }, * tags: { * Hello: "World", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2024-05-01 * * ## Import * * API Management Standalone Gateway can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/standaloneGateway:StandaloneGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/gateways/gateway1 * ``` */ export declare class StandaloneGateway extends pulumi.CustomResource { /** * Get an existing StandaloneGateway resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: StandaloneGatewayState, opts?: pulumi.CustomResourceOptions): StandaloneGateway; /** * Returns true if the given object is an instance of StandaloneGateway. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is StandaloneGateway; /** * Specifies the subnet ID in which the backend systems are hosted. Changing this forces a new resource to be created. */ readonly backendSubnetId: pulumi.Output; /** * Specifies the Azure Region where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name which should be used for this API Management Standalone Gateway. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the name of the Resource Group where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `sku` block as defined below. */ readonly sku: pulumi.Output; /** * A mapping of tags which should be assigned to the API Management Standalone Gateway. Changing this forces a new resource to be created. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the type of VPN in which API Management gateway needs to be configured. Possible values are `External` and `Internal`. Changing this forces a new resource to be created. */ readonly virtualNetworkType: pulumi.Output; /** * Create a StandaloneGateway resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: StandaloneGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StandaloneGateway resources. */ export interface StandaloneGatewayState { /** * Specifies the subnet ID in which the backend systems are hosted. Changing this forces a new resource to be created. */ backendSubnetId?: pulumi.Input; /** * Specifies the Azure Region where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this API Management Standalone Gateway. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `sku` block as defined below. */ sku?: pulumi.Input; /** * A mapping of tags which should be assigned to the API Management Standalone Gateway. Changing this forces a new resource to be created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the type of VPN in which API Management gateway needs to be configured. Possible values are `External` and `Internal`. Changing this forces a new resource to be created. */ virtualNetworkType?: pulumi.Input; } /** * The set of arguments for constructing a StandaloneGateway resource. */ export interface StandaloneGatewayArgs { /** * Specifies the subnet ID in which the backend systems are hosted. Changing this forces a new resource to be created. */ backendSubnetId?: pulumi.Input; /** * Specifies the Azure Region where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this API Management Standalone Gateway. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the API Management Standalone Gateway should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `sku` block as defined below. */ sku: pulumi.Input; /** * A mapping of tags which should be assigned to the API Management Standalone Gateway. Changing this forces a new resource to be created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the type of VPN in which API Management gateway needs to be configured. Possible values are `External` and `Internal`. Changing this forces a new resource to be created. */ virtualNetworkType?: pulumi.Input; }