ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getDnsGlbs
Explore with Pulumi AI
Retrieve the details of an existing IBM Cloud infrastructure private DNS Global Load Balancers as a read-only data source. For more information, see working with global Load Balancers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const test1 = ibm.getDnsGlbs({
instanceId: ibm_resource_instance["test-pdns-instance"].guid,
zoneId: ibm_dns_zone["test-pdns-zone"].zone_id,
});
import pulumi
import pulumi_ibm as ibm
test1 = ibm.get_dns_glbs(instance_id=ibm_resource_instance["test-pdns-instance"]["guid"],
zone_id=ibm_dns_zone["test-pdns-zone"]["zone_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetDnsGlbs(ctx, &ibm.GetDnsGlbsArgs{
InstanceId: ibm_resource_instance.TestPdnsInstance.Guid,
ZoneId: ibm_dns_zone.TestPdnsZone.Zone_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var test1 = Ibm.GetDnsGlbs.Invoke(new()
{
InstanceId = ibm_resource_instance.Test_pdns_instance.Guid,
ZoneId = ibm_dns_zone.Test_pdns_zone.Zone_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetDnsGlbsArgs;
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 test1 = IbmFunctions.getDnsGlbs(GetDnsGlbsArgs.builder()
.instanceId(ibm_resource_instance.test-pdns-instance().guid())
.zoneId(ibm_dns_zone.test-pdns-zone().zone_id())
.build());
}
}
variables:
test1:
fn::invoke:
function: ibm:getDnsGlbs
arguments:
instanceId: ${ibm_resource_instance"test-pdns-instance"[%!s(MISSING)].guid}
zoneId: ${ibm_dns_zone"test-pdns-zone"[%!s(MISSING)].zone_id}
Using getDnsGlbs
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 getDnsGlbs(args: GetDnsGlbsArgs, opts?: InvokeOptions): Promise<GetDnsGlbsResult>
function getDnsGlbsOutput(args: GetDnsGlbsOutputArgs, opts?: InvokeOptions): Output<GetDnsGlbsResult>
def get_dns_glbs(id: Optional[str] = None,
instance_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsGlbsResult
def get_dns_glbs_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsGlbsResult]
func GetDnsGlbs(ctx *Context, args *GetDnsGlbsArgs, opts ...InvokeOption) (*GetDnsGlbsResult, error)
func GetDnsGlbsOutput(ctx *Context, args *GetDnsGlbsOutputArgs, opts ...InvokeOption) GetDnsGlbsResultOutput
> Note: This function is named GetDnsGlbs
in the Go SDK.
public static class GetDnsGlbs
{
public static Task<GetDnsGlbsResult> InvokeAsync(GetDnsGlbsArgs args, InvokeOptions? opts = null)
public static Output<GetDnsGlbsResult> Invoke(GetDnsGlbsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnsGlbsResult> getDnsGlbs(GetDnsGlbsArgs args, InvokeOptions options)
public static Output<GetDnsGlbsResult> getDnsGlbs(GetDnsGlbsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDnsGlbs:getDnsGlbs
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the private DNS service instance.
- Zone
Id string - The ID of the private DNS zone.
- Id string
- Instance
Id string - The GUID of the private DNS service instance.
- Zone
Id string - The ID of the private DNS zone.
- Id string
- instance
Id String - The GUID of the private DNS service instance.
- zone
Id String - The ID of the private DNS zone.
- id String
- instance
Id string - The GUID of the private DNS service instance.
- zone
Id string - The ID of the private DNS zone.
- id string
- instance_
id str - The GUID of the private DNS service instance.
- zone_
id str - The ID of the private DNS zone.
- id str
- instance
Id String - The GUID of the private DNS service instance.
- zone
Id String - The ID of the private DNS zone.
- id String
getDnsGlbs Result
The following output properties are available:
- Dns
Glbs List<GetDns Glbs Dns Glb> - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- Id string
- Instance
Id string - Zone
Id string
- Dns
Glbs []GetDns Glbs Dns Glb - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- Id string
- Instance
Id string - Zone
Id string
- dns
Glbs List<GetDns Glbs Dns Glb> - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- id String
- instance
Id String - zone
Id String
- dns
Glbs GetDns Glbs Dns Glb[] - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- id string
- instance
Id string - zone
Id string
- dns_
glbs Sequence[GetDns Glbs Dns Glb] - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- id str
- instance_
id str - zone_
id str
- dns
Glbs List<Property Map> - (List) List of all private DNS Load balancers in the IBM Cloud infrastructure.
- id String
- instance
Id String - zone
Id String
Supporting Types
GetDnsGlbsDnsGlb
- Az
Pools List<GetDns Glbs Dns Glb Az Pool> - (List) Map availability zones to the pool ID's.
- Created
On string - (Timestamp) The date and time when the Load Balancer was created.
- Default
Pools List<string> - (String) TA list of pool IDs ordered by their failover priority.
- Description string
- (String) The descriptive text of the DNS Load balancers.
- Enabled bool
- Fallback
Pool string - (String) The pool ID to use when all other pools are detected as unhealthy.
- Glb
Id string - (String) The Load Balancer ID.
- Health string
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - Modified
On string - (Timestamp) The date and time when the Load Balancer was modified.
- Name string
- (String) The name of the DNS Load balancers.
- Ttl double
- (String) The time to live in second.
- Az
Pools []GetDns Glbs Dns Glb Az Pool - (List) Map availability zones to the pool ID's.
- Created
On string - (Timestamp) The date and time when the Load Balancer was created.
- Default
Pools []string - (String) TA list of pool IDs ordered by their failover priority.
- Description string
- (String) The descriptive text of the DNS Load balancers.
- Enabled bool
- Fallback
Pool string - (String) The pool ID to use when all other pools are detected as unhealthy.
- Glb
Id string - (String) The Load Balancer ID.
- Health string
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - Modified
On string - (Timestamp) The date and time when the Load Balancer was modified.
- Name string
- (String) The name of the DNS Load balancers.
- Ttl float64
- (String) The time to live in second.
- az
Pools List<GetDns Glbs Dns Glb Az Pool> - (List) Map availability zones to the pool ID's.
- created
On String - (Timestamp) The date and time when the Load Balancer was created.
- default
Pools List<String> - (String) TA list of pool IDs ordered by their failover priority.
- description String
- (String) The descriptive text of the DNS Load balancers.
- enabled Boolean
- fallback
Pool String - (String) The pool ID to use when all other pools are detected as unhealthy.
- glb
Id String - (String) The Load Balancer ID.
- health String
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - modified
On String - (Timestamp) The date and time when the Load Balancer was modified.
- name String
- (String) The name of the DNS Load balancers.
- ttl Double
- (String) The time to live in second.
- az
Pools GetDns Glbs Dns Glb Az Pool[] - (List) Map availability zones to the pool ID's.
- created
On string - (Timestamp) The date and time when the Load Balancer was created.
- default
Pools string[] - (String) TA list of pool IDs ordered by their failover priority.
- description string
- (String) The descriptive text of the DNS Load balancers.
- enabled boolean
- fallback
Pool string - (String) The pool ID to use when all other pools are detected as unhealthy.
- glb
Id string - (String) The Load Balancer ID.
- health string
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - modified
On string - (Timestamp) The date and time when the Load Balancer was modified.
- name string
- (String) The name of the DNS Load balancers.
- ttl number
- (String) The time to live in second.
- az_
pools Sequence[GetDns Glbs Dns Glb Az Pool] - (List) Map availability zones to the pool ID's.
- created_
on str - (Timestamp) The date and time when the Load Balancer was created.
- default_
pools Sequence[str] - (String) TA list of pool IDs ordered by their failover priority.
- description str
- (String) The descriptive text of the DNS Load balancers.
- enabled bool
- fallback_
pool str - (String) The pool ID to use when all other pools are detected as unhealthy.
- glb_
id str - (String) The Load Balancer ID.
- health str
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - modified_
on str - (Timestamp) The date and time when the Load Balancer was modified.
- name str
- (String) The name of the DNS Load balancers.
- ttl float
- (String) The time to live in second.
- az
Pools List<Property Map> - (List) Map availability zones to the pool ID's.
- created
On String - (Timestamp) The date and time when the Load Balancer was created.
- default
Pools List<String> - (String) TA list of pool IDs ordered by their failover priority.
- description String
- (String) The descriptive text of the DNS Load balancers.
- enabled Boolean
- fallback
Pool String - (String) The pool ID to use when all other pools are detected as unhealthy.
- glb
Id String - (String) The Load Balancer ID.
- health String
- (String) Healthy state of the Load Balancer. Possible values are
DOWN
,UP
, orDEGRADED
. - modified
On String - (Timestamp) The date and time when the Load Balancer was modified.
- name String
- (String) The name of the DNS Load balancers.
- ttl Number
- (String) The time to live in second.
GetDnsGlbsDnsGlbAzPool
- Availability
Zone string - (String) The availability zone.
- Pools List<string>
- (String) List of Load Balancer pools.
- Availability
Zone string - (String) The availability zone.
- Pools []string
- (String) List of Load Balancer pools.
- availability
Zone String - (String) The availability zone.
- pools List<String>
- (String) List of Load Balancer pools.
- availability
Zone string - (String) The availability zone.
- pools string[]
- (String) List of Load Balancer pools.
- availability_
zone str - (String) The availability zone.
- pools Sequence[str]
- (String) List of Load Balancer pools.
- availability
Zone String - (String) The availability zone.
- pools List<String>
- (String) List of Load Balancer pools.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.