import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Backend Address within a Backend Address Pool. * * > **Note:** Backend Addresses can only be added to a `Standard` SKU Load Balancer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.network.getVirtualNetwork({ * name: "example-network", * resourceGroupName: "example-resources", * }); * const exampleGetLB = azure.lb.getLB({ * name: "example-lb", * resourceGroupName: "example-resources", * }); * const exampleGetBackendAddressPool = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ * name: "first", * loadbalancerId: exampleGetLB.id, * })); * const exampleBackendAddressPoolAddress = new azure.lb.BackendAddressPoolAddress("example", { * name: "example", * backendAddressPoolId: exampleGetBackendAddressPool.then(exampleGetBackendAddressPool => exampleGetBackendAddressPool.id), * virtualNetworkId: example.then(example => example.id), * ipAddress: "10.0.0.1", * }); * const backend_pool_cr = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ * name: "globalLBBackendPool", * loadbalancerId: exampleGetLB.id, * })); * const example_1 = new azure.lb.BackendAddressPoolAddress("example-1", { * name: "address1", * backendAddressPoolId: backend_pool_cr.then(backend_pool_cr => backend_pool_cr.id), * backendAddressIpConfigurationId: backend_lb_R1.frontendIpConfiguration[0].id, * }); * const example_2 = new azure.lb.BackendAddressPoolAddress("example-2", { * name: "address2", * backendAddressPoolId: backend_pool_cr.then(backend_pool_cr => backend_pool_cr.id), * backendAddressIpConfigurationId: backend_lb_R2.frontendIpConfiguration[0].id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2023-09-01 * * ## Import * * Backend Address Pool Addresses can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:lb/backendAddressPoolAddress:BackendAddressPoolAddress example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/loadBalancer1/backendAddressPools/backendAddressPool1/addresses/address1 * ``` */ export declare class BackendAddressPoolAddress extends pulumi.CustomResource { /** * Get an existing BackendAddressPoolAddress 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?: BackendAddressPoolAddressState, opts?: pulumi.CustomResourceOptions): BackendAddressPoolAddress; /** * Returns true if the given object is an instance of BackendAddressPoolAddress. 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 BackendAddressPoolAddress; /** * The ip config ID of the regional load balancer that's added to the global load balancer's backend address pool. * * > **Note:** For cross-region load balancer, please append the name of the load balancers, virtual machines, and other resources in each region with a -R1 and -R2. */ readonly backendAddressIpConfigurationId: pulumi.Output; /** * The ID of the Backend Address Pool. Changing this forces a new Backend Address Pool Address to be created. */ readonly backendAddressPoolId: pulumi.Output; /** * A list of `inboundNatRulePortMapping` block as defined below. */ readonly inboundNatRulePortMappings: pulumi.Output; /** * The Static IP Address which should be allocated to this Backend Address Pool. */ readonly ipAddress: pulumi.Output; /** * The name which should be used for this Backend Address Pool Address. Changing this forces a new Backend Address Pool Address to be created. */ readonly name: pulumi.Output; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ readonly virtualNetworkId: pulumi.Output; /** * Create a BackendAddressPoolAddress 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: BackendAddressPoolAddressArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackendAddressPoolAddress resources. */ export interface BackendAddressPoolAddressState { /** * The ip config ID of the regional load balancer that's added to the global load balancer's backend address pool. * * > **Note:** For cross-region load balancer, please append the name of the load balancers, virtual machines, and other resources in each region with a -R1 and -R2. */ backendAddressIpConfigurationId?: pulumi.Input; /** * The ID of the Backend Address Pool. Changing this forces a new Backend Address Pool Address to be created. */ backendAddressPoolId?: pulumi.Input; /** * A list of `inboundNatRulePortMapping` block as defined below. */ inboundNatRulePortMappings?: pulumi.Input[]>; /** * The Static IP Address which should be allocated to this Backend Address Pool. */ ipAddress?: pulumi.Input; /** * The name which should be used for this Backend Address Pool Address. Changing this forces a new Backend Address Pool Address to be created. */ name?: pulumi.Input; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ virtualNetworkId?: pulumi.Input; } /** * The set of arguments for constructing a BackendAddressPoolAddress resource. */ export interface BackendAddressPoolAddressArgs { /** * The ip config ID of the regional load balancer that's added to the global load balancer's backend address pool. * * > **Note:** For cross-region load balancer, please append the name of the load balancers, virtual machines, and other resources in each region with a -R1 and -R2. */ backendAddressIpConfigurationId?: pulumi.Input; /** * The ID of the Backend Address Pool. Changing this forces a new Backend Address Pool Address to be created. */ backendAddressPoolId: pulumi.Input; /** * The Static IP Address which should be allocated to this Backend Address Pool. */ ipAddress?: pulumi.Input; /** * The name which should be used for this Backend Address Pool Address. Changing this forces a new Backend Address Pool Address to be created. */ name?: pulumi.Input; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ virtualNetworkId?: pulumi.Input; }