1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCbrZoneAddresses
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCbrZoneAddresses

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for cbr_zone_addresses. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cbrZoneAddresses = ibm.getCbrZoneAddresses({
        zoneAddressesId: "zone_addresses_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cbr_zone_addresses = ibm.get_cbr_zone_addresses(zone_addresses_id="zone_addresses_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.LookupCbrZoneAddresses(ctx, &ibm.LookupCbrZoneAddressesArgs{
    			ZoneAddressesId: "zone_addresses_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 cbrZoneAddresses = Ibm.GetCbrZoneAddresses.Invoke(new()
        {
            ZoneAddressesId = "zone_addresses_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.GetCbrZoneAddressesArgs;
    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 cbrZoneAddresses = IbmFunctions.getCbrZoneAddresses(GetCbrZoneAddressesArgs.builder()
                .zoneAddressesId("zone_addresses_id")
                .build());
    
        }
    }
    
    variables:
      cbrZoneAddresses:
        fn::invoke:
          function: ibm:getCbrZoneAddresses
          arguments:
            zoneAddressesId: zone_addresses_id
    

    Using getCbrZoneAddresses

    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 getCbrZoneAddresses(args: GetCbrZoneAddressesArgs, opts?: InvokeOptions): Promise<GetCbrZoneAddressesResult>
    function getCbrZoneAddressesOutput(args: GetCbrZoneAddressesOutputArgs, opts?: InvokeOptions): Output<GetCbrZoneAddressesResult>
    def get_cbr_zone_addresses(id: Optional[str] = None,
                               zone_addresses_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCbrZoneAddressesResult
    def get_cbr_zone_addresses_output(id: Optional[pulumi.Input[str]] = None,
                               zone_addresses_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCbrZoneAddressesResult]
    func LookupCbrZoneAddresses(ctx *Context, args *LookupCbrZoneAddressesArgs, opts ...InvokeOption) (*LookupCbrZoneAddressesResult, error)
    func LookupCbrZoneAddressesOutput(ctx *Context, args *LookupCbrZoneAddressesOutputArgs, opts ...InvokeOption) LookupCbrZoneAddressesResultOutput

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

    public static class GetCbrZoneAddresses 
    {
        public static Task<GetCbrZoneAddressesResult> InvokeAsync(GetCbrZoneAddressesArgs args, InvokeOptions? opts = null)
        public static Output<GetCbrZoneAddressesResult> Invoke(GetCbrZoneAddressesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCbrZoneAddressesResult> getCbrZoneAddresses(GetCbrZoneAddressesArgs args, InvokeOptions options)
    public static Output<GetCbrZoneAddressesResult> getCbrZoneAddresses(GetCbrZoneAddressesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCbrZoneAddresses:getCbrZoneAddresses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneAddressesId string
    The ID of a zone addresses resource.
    Id string
    The unique identifier of the cbr_zone_addresses.
    ZoneAddressesId string
    The ID of a zone addresses resource.
    Id string
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId String
    The ID of a zone addresses resource.
    id String
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId string
    The ID of a zone addresses resource.
    id string
    The unique identifier of the cbr_zone_addresses.
    zone_addresses_id str
    The ID of a zone addresses resource.
    id str
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId String
    The ID of a zone addresses resource.
    id String
    The unique identifier of the cbr_zone_addresses.

    getCbrZoneAddresses Result

    The following output properties are available:

    Addresses List<GetCbrZoneAddressesAddress>
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    Id string
    The unique identifier of the cbr_zone_addresses.
    ZoneAddressesId string
    ZoneId string
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.
    Addresses []GetCbrZoneAddressesAddress
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    Id string
    The unique identifier of the cbr_zone_addresses.
    ZoneAddressesId string
    ZoneId string
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.
    addresses List<GetCbrZoneAddressesAddress>
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    id String
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId String
    zoneId String
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.
    addresses GetCbrZoneAddressesAddress[]
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    id string
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId string
    zoneId string
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.
    addresses Sequence[GetCbrZoneAddressesAddress]
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    id str
    The unique identifier of the cbr_zone_addresses.
    zone_addresses_id str
    zone_id str
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.
    addresses List<Property Map>
    (List) The list of addresses included in the zone.

    • Constraints: The maximum length is 1000 items. The minimum length is 1 items. Nested scheme for addresses:
    id String
    The unique identifier of the cbr_zone_addresses.
    zoneAddressesId String
    zoneId String
    (String) The id of the zone in which the addresses are included.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-fA-F0-9]{32}$/.

    Supporting Types

    GetCbrZoneAddressesAddress

    Reves List<GetCbrZoneAddressesAddressRef>
    (List) A service reference value. Nested scheme for ref:
    Type string
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    Value string
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.
    Reves []GetCbrZoneAddressesAddressRef
    (List) A service reference value. Nested scheme for ref:
    Type string
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    Value string
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.
    reves List<GetCbrZoneAddressesAddressRef>
    (List) A service reference value. Nested scheme for ref:
    type String
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    value String
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.
    reves GetCbrZoneAddressesAddressRef[]
    (List) A service reference value. Nested scheme for ref:
    type string
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    value string
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.
    reves Sequence[GetCbrZoneAddressesAddressRef]
    (List) A service reference value. Nested scheme for ref:
    type str
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    value str
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.
    reves List<Property Map>
    (List) A service reference value. Nested scheme for ref:
    type String
    (String) The type of address.

    • Constraints: Allowable values are: ipAddress, ipRange, subnet, vpc, serviceRef.
    value String
    (String) The IP address.

    • Constraints: The maximum length is 45 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9:.]+$/.

    GetCbrZoneAddressesAddressRef

    AccountId string
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    Location string
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    ServiceInstance string
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    ServiceName string
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    ServiceType string
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.
    AccountId string
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    Location string
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    ServiceInstance string
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    ServiceName string
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    ServiceType string
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.
    accountId String
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    location String
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceInstance String
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    serviceName String
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceType String
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.
    accountId string
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    location string
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceInstance string
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    serviceName string
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceType string
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.
    account_id str
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    location str
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    service_instance str
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    service_name str
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    service_type str
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.
    accountId String
    (String) The id of the account owning the service.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\-]+$/.
    location String
    (String) The location.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceInstance String
    (String) The service instance.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-/]+$/.
    serviceName String
    (String) The service name.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z\-]+$/.
    serviceType String
    (String) The service type.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-z_]+$/.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud