1. Packages
  2. F5bigip Provider
  3. API Docs
  4. ltm
  5. getDataGroup
f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi

f5bigip.ltm.getDataGroup

Explore with Pulumi AI

f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 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",
});
Copy
import pulumi
import pulumi_f5bigip as f5bigip

d_g__tc3 = f5bigip.ltm.get_data_group(name="test-dg",
    partition="Common")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  DG-TC3:
    fn::invoke:
      function: f5bigip:ltm:getDataGroup
      arguments:
        name: test-dg
        partition: Common
Copy

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>
Copy
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]
Copy
func LookupDataGroup(ctx *Context, args *LookupDataGroupArgs, opts ...InvokeOption) (*LookupDataGroupResult, error)
func LookupDataGroupOutput(ctx *Context, args *LookupDataGroupOutputArgs, opts ...InvokeOption) LookupDataGroupResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDataGroupResult> getDataGroup(GetDataGroupArgs args, InvokeOptions options)
public static Output<GetDataGroupResult> getDataGroup(GetDataGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: f5bigip:ltm/getDataGroup:getDataGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the datagroup
Partition This property is required. 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 This property is required. string
Name of the datagroup
Partition This property is required. string
partition of the datagroup
Records []GetDataGroupRecord
Specifies record of type (string/ip/integer)
Type string
The Data Group type (string, ip, integer)"
name This property is required. String
Name of the datagroup
partition This property is required. 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 This property is required. string
Name of the datagroup
partition This property is required. string
partition of the datagroup
records GetDataGroupRecord[]
Specifies record of type (string/ip/integer)
type string
The Data Group type (string, ip, integer)"
name This property is required. str
Name of the datagroup
partition This property is required. 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 This property is required. String
Name of the datagroup
partition This property is required. 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 This property is required. string
Name of the datagroup
Data string
Name This property is required. string
Name of the datagroup
Data string
name This property is required. String
Name of the datagroup
data String
name This property is required. string
Name of the datagroup
data string
name This property is required. str
Name of the datagroup
data str
name This property is required. 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.
f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi