import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Stack HCI Network Interface. * * ## 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", * route: { * name: "example-route", * addressPrefix: "0.0.0.0/0", * nextHopIpAddress: "10.0.20.1", * }, * vlanId: 123, * }, * tags: { * foo: "bar", * }, * }); * const exampleHciNetworkInterface = new azure.stack.HciNetworkInterface("example", { * name: "example-ni", * resourceGroupName: example.name, * location: example.location, * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", * dnsServers: ["10.0.0.8"], * ipConfiguration: { * privateIpAddress: "10.0.0.2", * subnetId: test.id, * }, * tags: { * foo: "bar", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AzureStackHCI` - 2024-01-01 * * ## Import * * Azure Stack HCI Network Interfaces can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:stack/hciNetworkInterface:HciNetworkInterface example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/networkInterfaces/ni1 * ``` */ export declare class HciNetworkInterface extends pulumi.CustomResource { /** * Get an existing HciNetworkInterface 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?: HciNetworkInterfaceState, opts?: pulumi.CustomResourceOptions): HciNetworkInterface; /** * Returns true if the given object is an instance of HciNetworkInterface. 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 HciNetworkInterface; /** * The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created. */ readonly dnsServers: pulumi.Output; /** * An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. */ readonly ipConfiguration: pulumi.Output; /** * The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The MAC address of the Network Interface. Changing this forces a new resource to be created. * * > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. */ readonly macAddress: pulumi.Output; /** * The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a HciNetworkInterface 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: HciNetworkInterfaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HciNetworkInterface resources. */ export interface HciNetworkInterfaceState { /** * The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created. */ dnsServers?: pulumi.Input[]>; /** * An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. */ ipConfiguration?: pulumi.Input; /** * The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The MAC address of the Network Interface. Changing this forces a new resource to be created. * * > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. */ macAddress?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a HciNetworkInterface resource. */ export interface HciNetworkInterfaceArgs { /** * The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created. */ dnsServers?: pulumi.Input[]>; /** * An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. */ ipConfiguration: pulumi.Input; /** * The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The MAC address of the Network Interface. Changing this forces a new resource to be created. * * > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. */ macAddress?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }