1. Packages
  2. F5 BIG-IP
  3. API Docs
  4. ltm
  5. getDataGroup
f5 BIG-IP v3.17.4 published on Wednesday, Sep 11, 2024 by Pulumi

f5bigip.ltm.getDataGroup

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.4 published on Wednesday, Sep 11, 2024 by Pulumi

    Use this data source (f5bigip.ltm.DataGroup) to get the data group details available on BIG-IP

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const DG-TC3 = f5bigip.ltm.getDataGroup({
        name: "test-dg",
        partition: "Common",
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    d_g__tc3 = f5bigip.ltm.get_data_group(name="test-dg",
        partition="Common")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ltm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ltm.LookupDataGroup(ctx, &ltm.LookupDataGroupArgs{
    			Name:      "test-dg",
    			Partition: "Common",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    
    return await Deployment.RunAsync(() => 
    {
        var DG_TC3 = F5BigIP.Ltm.GetDataGroup.Invoke(new()
        {
            Name = "test-dg",
            Partition = "Common",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.ltm.LtmFunctions;
    import com.pulumi.f5bigip.ltm.inputs.GetDataGroupArgs;
    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 DG-TC3 = LtmFunctions.getDataGroup(GetDataGroupArgs.builder()
                .name("test-dg")
                .partition("Common")
                .build());
    
        }
    }
    
    variables:
      DG-TC3:
        fn::invoke:
          Function: f5bigip:ltm:getDataGroup
          Arguments:
            name: test-dg
            partition: Common
    

    Using getDataGroup

    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 getDataGroup(args: GetDataGroupArgs, opts?: InvokeOptions): Promise<GetDataGroupResult>
    function getDataGroupOutput(args: GetDataGroupOutputArgs, opts?: InvokeOptions): Output<GetDataGroupResult>
    def get_data_group(name: Optional[str] = None,
                       partition: Optional[str] = None,
                       records: Optional[Sequence[GetDataGroupRecord]] = None,
                       type: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDataGroupResult
    def get_data_group_output(name: Optional[pulumi.Input[str]] = None,
                       partition: Optional[pulumi.Input[str]] = None,
                       records: Optional[pulumi.Input[Sequence[pulumi.Input[GetDataGroupRecordArgs]]]] = None,
                       type: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDataGroupResult]
    func LookupDataGroup(ctx *Context, args *LookupDataGroupArgs, opts ...InvokeOption) (*LookupDataGroupResult, error)
    func LookupDataGroupOutput(ctx *Context, args *LookupDataGroupOutputArgs, opts ...InvokeOption) LookupDataGroupResultOutput

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

    public static class GetDataGroup 
    {
        public static Task<GetDataGroupResult> InvokeAsync(GetDataGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetDataGroupResult> Invoke(GetDataGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataGroupResult> getDataGroup(GetDataGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: f5bigip:ltm/getDataGroup:getDataGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the datagroup
    Partition string
    partition of the datagroup
    Records List<Pulumi.F5BigIP.Ltm.Inputs.GetDataGroupRecord>
    Specifies record of type (string/ip/integer)
    Type string
    The Data Group type (string, ip, integer)"
    Name string
    Name of the datagroup
    Partition string
    partition of the datagroup
    Records []GetDataGroupRecord
    Specifies record of type (string/ip/integer)
    Type string
    The Data Group type (string, ip, integer)"
    name String
    Name of the datagroup
    partition String
    partition of the datagroup
    records List<GetDataGroupRecord>
    Specifies record of type (string/ip/integer)
    type String
    The Data Group type (string, ip, integer)"
    name string
    Name of the datagroup
    partition string
    partition of the datagroup
    records GetDataGroupRecord[]
    Specifies record of type (string/ip/integer)
    type string
    The Data Group type (string, ip, integer)"
    name str
    Name of the datagroup
    partition str
    partition of the datagroup
    records Sequence[GetDataGroupRecord]
    Specifies record of type (string/ip/integer)
    type str
    The Data Group type (string, ip, integer)"
    name String
    Name of the datagroup
    partition String
    partition of the datagroup
    records List<Property Map>
    Specifies record of type (string/ip/integer)
    type String
    The Data Group type (string, ip, integer)"

    getDataGroup Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Partition string
    Records List<Pulumi.F5BigIP.Ltm.Outputs.GetDataGroupRecord>
    Specifies record of type (string/ip/integer)
    Type string
    The Data Group type (string, ip, integer)"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Partition string
    Records []GetDataGroupRecord
    Specifies record of type (string/ip/integer)
    Type string
    The Data Group type (string, ip, integer)"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    partition String
    records List<GetDataGroupRecord>
    Specifies record of type (string/ip/integer)
    type String
    The Data Group type (string, ip, integer)"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    partition string
    records GetDataGroupRecord[]
    Specifies record of type (string/ip/integer)
    type string
    The Data Group type (string, ip, integer)"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    partition str
    records Sequence[GetDataGroupRecord]
    Specifies record of type (string/ip/integer)
    type str
    The Data Group type (string, ip, integer)"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    partition String
    records List<Property Map>
    Specifies record of type (string/ip/integer)
    type String
    The Data Group type (string, ip, integer)"

    Supporting Types

    GetDataGroupRecord

    Name string
    Name of the datagroup
    Data string
    Name string
    Name of the datagroup
    Data string
    name String
    Name of the datagroup
    data String
    name string
    Name of the datagroup
    data string
    name str
    Name of the datagroup
    data str
    name String
    Name of the datagroup
    data String

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.17.4 published on Wednesday, Sep 11, 2024 by Pulumi