1. Packages
  2. Constellix Provider
  3. API Docs
  4. getARecordPool
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.getARecordPool

Explore with Pulumi AI

constellix logo
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

    Data source for the pools of A records.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const prac = constellix.getARecordPool({
        name: "firstrecord",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    prac = constellix.get_a_record_pool(name="firstrecord")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := constellix.LookupARecordPool(ctx, &constellix.LookupARecordPoolArgs{
    			Name: "firstrecord",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Constellix = Pulumi.Constellix;
    
    return await Deployment.RunAsync(() => 
    {
        var prac = Constellix.GetARecordPool.Invoke(new()
        {
            Name = "firstrecord",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.constellix.ConstellixFunctions;
    import com.pulumi.constellix.inputs.GetARecordPoolArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var prac = ConstellixFunctions.getARecordPool(GetARecordPoolArgs.builder()
                .name("firstrecord")
                .build());
    
        }
    }
    
    variables:
      prac:
        fn::invoke:
          function: constellix:getARecordPool
          arguments:
            name: firstrecord
    

    Attribute Reference

    • num_return - (Optional) minimum number of value object to return. Value must be in between 0 and 64.
    • min_available_failover - (Optional)minimum number of Available Failover . Value must be in between 0 and 64.
    • version - (Optional) System generated version number.
    • failed_flag - (Optional) failed flag. Default is false.
    • disable_flag - (Optional) Enable or disable pool values. Default is false.
    • values - (Optional) Object Number of IP/Hosts in a pool values cannot be less than the “Num Return” and “Min Available” values
    • values.value - (Optional) IPv4 address.
    • values.weight - (Optional) weight number to sort the priorty. Weight must be in between 1 and 1000000.
    • values.disable_flag - (Optional) Enable or disable pool values. Default is false.
    • values.check_id - (Optional) Sonar check id is Optional when you want to apply the ITO feature on a pool.
    • values.policy - (Optional) “followsonar” for Follow sonar. “alwaysoff” for Always off. “alwayson” for Always on. “offonfailure” for Off on Failure.
    • note - (Optional) Description.

    Using getARecordPool

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getARecordPool(args: GetARecordPoolArgs, opts?: InvokeOptions): Promise<GetARecordPoolResult>
    function getARecordPoolOutput(args: GetARecordPoolOutputArgs, opts?: InvokeOptions): Output<GetARecordPoolResult>
    def get_a_record_pool(disable_flag1: Optional[bool] = None,
                          failed_flag: Optional[bool] = None,
                          id: Optional[str] = None,
                          min_available_failover: Optional[float] = None,
                          name: Optional[str] = None,
                          note: Optional[str] = None,
                          num_return: Optional[float] = None,
                          values: Optional[Sequence[GetARecordPoolValue]] = None,
                          version: Optional[float] = None,
                          opts: Optional[InvokeOptions] = None) -> GetARecordPoolResult
    def get_a_record_pool_output(disable_flag1: Optional[pulumi.Input[bool]] = None,
                          failed_flag: Optional[pulumi.Input[bool]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          min_available_failover: Optional[pulumi.Input[float]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          note: Optional[pulumi.Input[str]] = None,
                          num_return: Optional[pulumi.Input[float]] = None,
                          values: Optional[pulumi.Input[Sequence[pulumi.Input[GetARecordPoolValueArgs]]]] = None,
                          version: Optional[pulumi.Input[float]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetARecordPoolResult]
    func LookupARecordPool(ctx *Context, args *LookupARecordPoolArgs, opts ...InvokeOption) (*LookupARecordPoolResult, error)
    func LookupARecordPoolOutput(ctx *Context, args *LookupARecordPoolOutputArgs, opts ...InvokeOption) LookupARecordPoolResultOutput

    > Note: This function is named LookupARecordPool in the Go SDK.

    public static class GetARecordPool 
    {
        public static Task<GetARecordPoolResult> InvokeAsync(GetARecordPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetARecordPoolResult> Invoke(GetARecordPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetARecordPoolResult> getARecordPool(GetARecordPoolArgs args, InvokeOptions options)
    public static Output<GetARecordPoolResult> getARecordPool(GetARecordPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getARecordPool:getARecordPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Pool name should be unique.
    DisableFlag1 bool
    FailedFlag bool
    Id string
    MinAvailableFailover double
    Note string
    NumReturn double
    Values List<GetARecordPoolValue>
    Version double
    Name string
    Pool name should be unique.
    DisableFlag1 bool
    FailedFlag bool
    Id string
    MinAvailableFailover float64
    Note string
    NumReturn float64
    Values []GetARecordPoolValue
    Version float64
    name String
    Pool name should be unique.
    disableFlag1 Boolean
    failedFlag Boolean
    id String
    minAvailableFailover Double
    note String
    numReturn Double
    values List<GetARecordPoolValue>
    version Double
    name string
    Pool name should be unique.
    disableFlag1 boolean
    failedFlag boolean
    id string
    minAvailableFailover number
    note string
    numReturn number
    values GetARecordPoolValue[]
    version number
    name String
    Pool name should be unique.
    disableFlag1 Boolean
    failedFlag Boolean
    id String
    minAvailableFailover Number
    note String
    numReturn Number
    values List<Property Map>
    version Number

    getARecordPool Result

    The following output properties are available:

    Supporting Types

    GetARecordPoolValue

    CheckId double
    DisableFlag string
    Policy string
    Value string
    Weight double
    CheckId float64
    DisableFlag string
    Policy string
    Value string
    Weight float64
    checkId Double
    disableFlag String
    policy String
    value String
    weight Double
    checkId number
    disableFlag string
    policy string
    value string
    weight number
    checkId Number
    disableFlag String
    policy String
    value String
    weight Number

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    constellix logo
    constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix