UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

106 lines (105 loc) 4.3 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a network interface * * Uses Azure REST API version 2025-02-01-preview. * * Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview, 2025-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurestackhci [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getNetworkInterface(args: GetNetworkInterfaceArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkInterfaceResult>; export interface GetNetworkInterfaceArgs { /** * Name of the network interface */ networkInterfaceName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * The network interface resource definition. */ export interface GetNetworkInterfaceResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Boolean indicating whether this is a existing local network interface or if one should be created. */ readonly createFromLocal?: boolean; /** * DNS Settings for the interface */ readonly dnsSettings?: outputs.azurestackhci.InterfaceDNSSettingsResponse; /** * The extendedLocation of the resource. */ readonly extendedLocation?: outputs.azurestackhci.ExtendedLocationResponse; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * IPConfigurations - A list of IPConfigurations of the network interface. */ readonly ipConfigurations?: outputs.azurestackhci.IPConfigurationResponse[]; /** * The geo-location where the resource lives */ readonly location: string; /** * MacAddress - The MAC address of the network interface. */ readonly macAddress?: string; /** * The name of the resource */ readonly name: string; /** * NetworkSecurityGroup - Network Security Group attached to the network interface. */ readonly networkSecurityGroup?: outputs.azurestackhci.NetworkSecurityGroupArmReferenceResponse; /** * Provisioning state of the network interface. */ readonly provisioningState: string; /** * The observed state of network interfaces */ readonly status: outputs.azurestackhci.NetworkInterfaceStatusResponse; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.azurestackhci.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets a network interface * * Uses Azure REST API version 2025-02-01-preview. * * Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview, 2025-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurestackhci [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getNetworkInterfaceOutput(args: GetNetworkInterfaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkInterfaceResult>; export interface GetNetworkInterfaceOutputArgs { /** * Name of the network interface */ networkInterfaceName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }