@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets a virtual network rule.
*
* Uses Azure REST API version 2018-06-01.
*/
export declare function getVirtualNetworkRule(args: GetVirtualNetworkRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualNetworkRuleResult>;
export interface GetVirtualNetworkRuleArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the server.
*/
serverName: string;
/**
* The name of the virtual network rule.
*/
virtualNetworkRuleName: string;
}
/**
* A virtual network rule.
*/
export interface GetVirtualNetworkRuleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* Create firewall rule before the virtual network has vnet service endpoint enabled.
*/
readonly ignoreMissingVnetServiceEndpoint?: boolean;
/**
* The name of the resource
*/
readonly name: string;
/**
* Virtual Network Rule State
*/
readonly state: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* The ARM resource id of the virtual network subnet.
*/
readonly virtualNetworkSubnetId: string;
}
/**
* Gets a virtual network rule.
*
* Uses Azure REST API version 2018-06-01.
*/
export declare function getVirtualNetworkRuleOutput(args: GetVirtualNetworkRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualNetworkRuleResult>;
export interface GetVirtualNetworkRuleOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the server.
*/
serverName: pulumi.Input<string>;
/**
* The name of the virtual network rule.
*/
virtualNetworkRuleName: pulumi.Input<string>;
}