@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves the details of a nat ruleGet.
*
* Uses Azure REST API version 2024-05-01.
*
* Other available API versions: 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native network [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getNatRule(args: GetNatRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetNatRuleResult>;
export interface GetNatRuleArgs {
/**
* The name of the gateway.
*/
gatewayName: string;
/**
* The name of the nat rule.
*/
natRuleName: string;
/**
* The resource group name of the VpnGateway.
*/
resourceGroupName: string;
}
/**
* VpnGatewayNatRule Resource.
*/
export interface GetNatRuleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* List of egress VpnSiteLinkConnections.
*/
readonly egressVpnSiteLinkConnections: outputs.network.SubResourceResponse[];
/**
* A unique read-only string that changes whenever the resource is updated.
*/
readonly etag: string;
/**
* The private IP address external mapping for NAT.
*/
readonly externalMappings?: outputs.network.VpnNatRuleMappingResponse[];
/**
* Resource ID.
*/
readonly id?: string;
/**
* List of ingress VpnSiteLinkConnections.
*/
readonly ingressVpnSiteLinkConnections: outputs.network.SubResourceResponse[];
/**
* The private IP address internal mapping for NAT.
*/
readonly internalMappings?: outputs.network.VpnNatRuleMappingResponse[];
/**
* The IP Configuration ID this NAT rule applies to.
*/
readonly ipConfigurationId?: string;
/**
* The Source NAT direction of a VPN NAT.
*/
readonly mode?: string;
/**
* The name of the resource that is unique within a resource group. This name can be used to access the resource.
*/
readonly name?: string;
/**
* The provisioning state of the NAT Rule resource.
*/
readonly provisioningState: string;
/**
* Resource type.
*/
readonly type: string;
}
/**
* Retrieves the details of a nat ruleGet.
*
* Uses Azure REST API version 2024-05-01.
*
* Other available API versions: 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native network [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getNatRuleOutput(args: GetNatRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNatRuleResult>;
export interface GetNatRuleOutputArgs {
/**
* The name of the gateway.
*/
gatewayName: pulumi.Input<string>;
/**
* The name of the nat rule.
*/
natRuleName: pulumi.Input<string>;
/**
* The resource group name of the VpnGateway.
*/
resourceGroupName: pulumi.Input<string>;
}