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

102 lines (101 loc) 3.75 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * The virtual network resource definition. * * Uses Azure REST API version 2023-07-01-preview. * * Other available API versions: 2022-12-15-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 getVirtualNetwork(args: GetVirtualNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualNetworkResult>; export interface GetVirtualNetworkArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * Name of the virtual network */ virtualNetworkName: string; } /** * The virtual network resource definition. */ export interface GetVirtualNetworkResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options. */ readonly dhcpOptions?: outputs.azurestackhci.VirtualNetworkPropertiesResponseDhcpOptions; /** * The extendedLocation of the resource. */ readonly extendedLocation?: outputs.azurestackhci.ExtendedLocationResponse; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The geo-location where the resource lives */ readonly location: string; /** * The name of the resource */ readonly name: string; /** * Type of the network */ readonly networkType?: string; /** * Provisioning state of the virtual network. */ readonly provisioningState: string; /** * The observed state of virtual networks */ readonly status: outputs.azurestackhci.VirtualNetworkStatusResponse; /** * Subnet - list of subnets under the virtual network */ readonly subnets?: outputs.azurestackhci.VirtualNetworkPropertiesResponseSubnets[]; /** * 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; /** * name of the network switch to be used for VMs */ readonly vmSwitchName?: string; } /** * The virtual network resource definition. * * Uses Azure REST API version 2023-07-01-preview. * * Other available API versions: 2022-12-15-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 getVirtualNetworkOutput(args: GetVirtualNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualNetworkResult>; export interface GetVirtualNetworkOutputArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * Name of the virtual network */ virtualNetworkName: pulumi.Input<string>; }