import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Stack HCI Logical Network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleHciLogicalNetwork = new azure.stack.HciLogicalNetwork("example", { * name: "example-hci-ln", * resourceGroupName: example.name, * location: example.location, * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", * virtualSwitchName: "ConvergedSwitch(managementcompute)", * dnsServers: [ * "10.0.0.7", * "10.0.0.8", * ], * subnet: { * ipAllocationMethod: "Static", * addressPrefix: "10.0.0.0/24", * vlanId: 123, * route: { * addressPrefix: "0.0.0.0/0", * nextHopIpAddress: "10.0.0.1", * }, * }, * tags: { * foo: "bar", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AzureStackHCI` - 2024-01-01 * * ## Import * * Azure Stack HCI Logical Networks can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:stack/hciLogicalNetwork:HciLogicalNetwork example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/logicalNetworks/ln1 * ``` */ export declare class HciLogicalNetwork extends pulumi.CustomResource { /** * Get an existing HciLogicalNetwork 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?: HciLogicalNetworkState, opts?: pulumi.CustomResourceOptions): HciLogicalNetwork; /** * Returns true if the given object is an instance of HciLogicalNetwork. 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 HciLogicalNetwork; /** * The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ readonly customLocationId: pulumi.Output; /** * A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. */ readonly dnsServers: pulumi.Output; /** * The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `subnet` block as defined below. Changing this forces a new resource to be created. */ readonly subnet: pulumi.Output; /** * A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. */ readonly virtualSwitchName: pulumi.Output; /** * Create a HciLogicalNetwork 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: HciLogicalNetworkArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HciLogicalNetwork resources. */ export interface HciLogicalNetworkState { /** * The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ customLocationId?: pulumi.Input; /** * A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. */ dnsServers?: pulumi.Input[]>; /** * The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `subnet` block as defined below. Changing this forces a new resource to be created. */ subnet?: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. */ virtualSwitchName?: pulumi.Input; } /** * The set of arguments for constructing a HciLogicalNetwork resource. */ export interface HciLogicalNetworkArgs { /** * The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ customLocationId: pulumi.Input; /** * A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. */ dnsServers?: pulumi.Input[]>; /** * The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `subnet` block as defined below. Changing this forces a new resource to be created. */ subnet: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. */ virtualSwitchName: pulumi.Input; }