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

ibm.getDnsSecondary

Explore with Pulumi AI

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

    Retrieve information of an existing DNS secondary zone as a read-only data source. For more information, about DNS secondary resource, see managing secondary DNS zones.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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.GetDnsSecondaryArgs;
    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 secondaryId = IbmFunctions.getDnsSecondary(GetDnsSecondaryArgs.builder()
                .name("test-secondary.com")
                .build());
    
        }
    }
    
    variables:
      secondaryId:
        fn::invoke:
          function: ibm:getDnsSecondary
          arguments:
            name: test-secondary.com
    

    Using getDnsSecondary

    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 getDnsSecondary(args: GetDnsSecondaryArgs, opts?: InvokeOptions): Promise<GetDnsSecondaryResult>
    function getDnsSecondaryOutput(args: GetDnsSecondaryOutputArgs, opts?: InvokeOptions): Output<GetDnsSecondaryResult>
    def get_dns_secondary(id: Optional[str] = None,
                          zone_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDnsSecondaryResult
    def get_dns_secondary_output(id: Optional[pulumi.Input[str]] = None,
                          zone_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDnsSecondaryResult]
    func LookupDnsSecondary(ctx *Context, args *LookupDnsSecondaryArgs, opts ...InvokeOption) (*LookupDnsSecondaryResult, error)
    func LookupDnsSecondaryOutput(ctx *Context, args *LookupDnsSecondaryOutputArgs, opts ...InvokeOption) LookupDnsSecondaryResultOutput

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

    public static class GetDnsSecondary 
    {
        public static Task<GetDnsSecondaryResult> InvokeAsync(GetDnsSecondaryArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsSecondaryResult> Invoke(GetDnsSecondaryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsSecondaryResult> getDnsSecondary(GetDnsSecondaryArgs args, InvokeOptions options)
    public static Output<GetDnsSecondaryResult> getDnsSecondary(GetDnsSecondaryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDnsSecondary:getDnsSecondary
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneName string
    The name of the secondary zone.
    Id string
    (String) The unique identifier of the secondary.
    ZoneName string
    The name of the secondary zone.
    Id string
    (String) The unique identifier of the secondary.
    zoneName String
    The name of the secondary zone.
    id String
    (String) The unique identifier of the secondary.
    zoneName string
    The name of the secondary zone.
    id string
    (String) The unique identifier of the secondary.
    zone_name str
    The name of the secondary zone.
    id str
    (String) The unique identifier of the secondary.
    zoneName String
    The name of the secondary zone.
    id String
    (String) The unique identifier of the secondary.

    getDnsSecondary Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the secondary.
    MasterIpAddress string
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    StatusId double
    (String) The status of a secondary DNS record.
    StatusText string
    (String) The textual representation of a secondary DNS zone's status.
    TransferFrequency double
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    ZoneName string
    Id string
    (String) The unique identifier of the secondary.
    MasterIpAddress string
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    StatusId float64
    (String) The status of a secondary DNS record.
    StatusText string
    (String) The textual representation of a secondary DNS zone's status.
    TransferFrequency float64
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    ZoneName string
    id String
    (String) The unique identifier of the secondary.
    masterIpAddress String
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    statusId Double
    (String) The status of a secondary DNS record.
    statusText String
    (String) The textual representation of a secondary DNS zone's status.
    transferFrequency Double
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    zoneName String
    id string
    (String) The unique identifier of the secondary.
    masterIpAddress string
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    statusId number
    (String) The status of a secondary DNS record.
    statusText string
    (String) The textual representation of a secondary DNS zone's status.
    transferFrequency number
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    zoneName string
    id str
    (String) The unique identifier of the secondary.
    master_ip_address str
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    status_id float
    (String) The status of a secondary DNS record.
    status_text str
    (String) The textual representation of a secondary DNS zone's status.
    transfer_frequency float
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    zone_name str
    id String
    (String) The unique identifier of the secondary.
    masterIpAddress String
    (String) The IP address of the master name server where a secondary DNS zone is transferred from.
    statusId Number
    (String) The status of a secondary DNS record.
    statusText String
    (String) The textual representation of a secondary DNS zone's status.
    transferFrequency Number
    (Integer) Signifies how often a secondary DNS zone transferred in minutes.
    zoneName String

    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