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

ibm.DnsSecondary

Explore with Pulumi AI

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

    The ibm.DnsSecondary resource represents a single secondary DNS zone managed on SoftLayer. Each record created within the secondary DNS service defines which zone is transferred, what server it is transferred from, and the frequency that zone transfers occur at. Zone transfers are performed automatically based on the transfer frequency set on the secondary DNS record. For more information, about DNS secondary zone, see managing secondary DNS zones.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dns_secondary_test = new ibm.DnsSecondary("dns-secondary-test", {
        masterIpAddress: "127.0.0.10",
        transferFrequency: 10,
        zoneName: "dns-secondary-test.com",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    dns_secondary_test = ibm.DnsSecondary("dns-secondary-test",
        master_ip_address="127.0.0.10",
        transfer_frequency=10,
        zone_name="dns-secondary-test.com")
    
    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.NewDnsSecondary(ctx, "dns-secondary-test", &ibm.DnsSecondaryArgs{
    			MasterIpAddress:   pulumi.String("127.0.0.10"),
    			TransferFrequency: pulumi.Float64(10),
    			ZoneName:          pulumi.String("dns-secondary-test.com"),
    		})
    		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 dns_secondary_test = new Ibm.DnsSecondary("dns-secondary-test", new()
        {
            MasterIpAddress = "127.0.0.10",
            TransferFrequency = 10,
            ZoneName = "dns-secondary-test.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.DnsSecondary;
    import com.pulumi.ibm.DnsSecondaryArgs;
    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) {
            var dns_secondary_test = new DnsSecondary("dns-secondary-test", DnsSecondaryArgs.builder()
                .masterIpAddress("127.0.0.10")
                .transferFrequency(10)
                .zoneName("dns-secondary-test.com")
                .build());
    
        }
    }
    
    resources:
      dns-secondary-test:
        type: ibm:DnsSecondary
        properties:
          masterIpAddress: 127.0.0.10
          transferFrequency: 10
          zoneName: dns-secondary-test.com
    

    Create DnsSecondary Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DnsSecondary(name: string, args: DnsSecondaryArgs, opts?: CustomResourceOptions);
    @overload
    def DnsSecondary(resource_name: str,
                     args: DnsSecondaryArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsSecondary(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     master_ip_address: Optional[str] = None,
                     transfer_frequency: Optional[float] = None,
                     zone_name: Optional[str] = None,
                     dns_secondary_id: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None)
    func NewDnsSecondary(ctx *Context, name string, args DnsSecondaryArgs, opts ...ResourceOption) (*DnsSecondary, error)
    public DnsSecondary(string name, DnsSecondaryArgs args, CustomResourceOptions? opts = null)
    public DnsSecondary(String name, DnsSecondaryArgs args)
    public DnsSecondary(String name, DnsSecondaryArgs args, CustomResourceOptions options)
    
    type: ibm:DnsSecondary
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DnsSecondaryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DnsSecondaryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DnsSecondaryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsSecondaryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsSecondaryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dnsSecondaryResource = new Ibm.DnsSecondary("dnsSecondaryResource", new()
    {
        MasterIpAddress = "string",
        TransferFrequency = 0,
        ZoneName = "string",
        DnsSecondaryId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := ibm.NewDnsSecondary(ctx, "dnsSecondaryResource", &ibm.DnsSecondaryArgs{
    	MasterIpAddress:   pulumi.String("string"),
    	TransferFrequency: pulumi.Float64(0),
    	ZoneName:          pulumi.String("string"),
    	DnsSecondaryId:    pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var dnsSecondaryResource = new DnsSecondary("dnsSecondaryResource", DnsSecondaryArgs.builder()
        .masterIpAddress("string")
        .transferFrequency(0)
        .zoneName("string")
        .dnsSecondaryId("string")
        .tags("string")
        .build());
    
    dns_secondary_resource = ibm.DnsSecondary("dnsSecondaryResource",
        master_ip_address="string",
        transfer_frequency=0,
        zone_name="string",
        dns_secondary_id="string",
        tags=["string"])
    
    const dnsSecondaryResource = new ibm.DnsSecondary("dnsSecondaryResource", {
        masterIpAddress: "string",
        transferFrequency: 0,
        zoneName: "string",
        dnsSecondaryId: "string",
        tags: ["string"],
    });
    
    type: ibm:DnsSecondary
    properties:
        dnsSecondaryId: string
        masterIpAddress: string
        tags:
            - string
        transferFrequency: 0
        zoneName: string
    

    DnsSecondary Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DnsSecondary resource accepts the following input properties:

    MasterIpAddress string
    The IP address of the master name server where a secondary DNS zone is transferred from.
    TransferFrequency double
    Signifies how often a secondary DNS zone should be transferred in minutes.
    ZoneName string
    The name of the zone that is transferred.
    DnsSecondaryId string
    (String) A secondary zone's internal identifier.
    Tags List<string>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    MasterIpAddress string
    The IP address of the master name server where a secondary DNS zone is transferred from.
    TransferFrequency float64
    Signifies how often a secondary DNS zone should be transferred in minutes.
    ZoneName string
    The name of the zone that is transferred.
    DnsSecondaryId string
    (String) A secondary zone's internal identifier.
    Tags []string
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    masterIpAddress String
    The IP address of the master name server where a secondary DNS zone is transferred from.
    transferFrequency Double
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName String
    The name of the zone that is transferred.
    dnsSecondaryId String
    (String) A secondary zone's internal identifier.
    tags List<String>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    masterIpAddress string
    The IP address of the master name server where a secondary DNS zone is transferred from.
    transferFrequency number
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName string
    The name of the zone that is transferred.
    dnsSecondaryId string
    (String) A secondary zone's internal identifier.
    tags string[]
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    master_ip_address str
    The IP address of the master name server where a secondary DNS zone is transferred from.
    transfer_frequency float
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zone_name str
    The name of the zone that is transferred.
    dns_secondary_id str
    (String) A secondary zone's internal identifier.
    tags Sequence[str]
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    masterIpAddress String
    The IP address of the master name server where a secondary DNS zone is transferred from.
    transferFrequency Number
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName String
    The name of the zone that is transferred.
    dnsSecondaryId String
    (String) A secondary zone's internal identifier.
    tags List<String>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DnsSecondary resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    StatusId double
    (String) The status of a secondary DNS record.
    StatusText string
    (String) The textual representation of a secondary DNS zone's status.
    Id string
    The provider-assigned unique ID for this managed resource.
    StatusId float64
    (String) The status of a secondary DNS record.
    StatusText string
    (String) The textual representation of a secondary DNS zone's status.
    id String
    The provider-assigned unique ID for this managed resource.
    statusId Double
    (String) The status of a secondary DNS record.
    statusText String
    (String) The textual representation of a secondary DNS zone's status.
    id string
    The provider-assigned unique ID for this managed resource.
    statusId number
    (String) The status of a secondary DNS record.
    statusText string
    (String) The textual representation of a secondary DNS zone's status.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    statusId Number
    (String) The status of a secondary DNS record.
    statusText String
    (String) The textual representation of a secondary DNS zone's status.

    Look up Existing DnsSecondary Resource

    Get an existing DnsSecondary resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DnsSecondaryState, opts?: CustomResourceOptions): DnsSecondary
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dns_secondary_id: Optional[str] = None,
            master_ip_address: Optional[str] = None,
            status_id: Optional[float] = None,
            status_text: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            transfer_frequency: Optional[float] = None,
            zone_name: Optional[str] = None) -> DnsSecondary
    func GetDnsSecondary(ctx *Context, name string, id IDInput, state *DnsSecondaryState, opts ...ResourceOption) (*DnsSecondary, error)
    public static DnsSecondary Get(string name, Input<string> id, DnsSecondaryState? state, CustomResourceOptions? opts = null)
    public static DnsSecondary get(String name, Output<String> id, DnsSecondaryState state, CustomResourceOptions options)
    resources:  _:    type: ibm:DnsSecondary    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DnsSecondaryId string
    (String) A secondary zone's internal identifier.
    MasterIpAddress 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.
    Tags List<string>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    TransferFrequency double
    Signifies how often a secondary DNS zone should be transferred in minutes.
    ZoneName string
    The name of the zone that is transferred.
    DnsSecondaryId string
    (String) A secondary zone's internal identifier.
    MasterIpAddress 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.
    Tags []string
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    TransferFrequency float64
    Signifies how often a secondary DNS zone should be transferred in minutes.
    ZoneName string
    The name of the zone that is transferred.
    dnsSecondaryId String
    (String) A secondary zone's internal identifier.
    masterIpAddress 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.
    tags List<String>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    transferFrequency Double
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName String
    The name of the zone that is transferred.
    dnsSecondaryId string
    (String) A secondary zone's internal identifier.
    masterIpAddress 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.
    tags string[]
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    transferFrequency number
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName string
    The name of the zone that is transferred.
    dns_secondary_id str
    (String) A secondary zone's internal identifier.
    master_ip_address str
    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.
    tags Sequence[str]
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    transfer_frequency float
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zone_name str
    The name of the zone that is transferred.
    dnsSecondaryId String
    (String) A secondary zone's internal identifier.
    masterIpAddress 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.
    tags List<String>
    Tags associated with the DNS secondary instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    transferFrequency Number
    Signifies how often a secondary DNS zone should be transferred in minutes.
    zoneName String
    The name of the zone that is transferred.

    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