ibm.DnsSecondary
Explore with Pulumi AI
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:
- Master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- Transfer
Frequency double - Signifies how often a secondary DNS zone should be transferred in minutes.
- Zone
Name string - The name of the zone that is transferred.
- Dns
Secondary stringId - (String) A secondary zone's internal identifier.
- 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.
- Master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- Transfer
Frequency float64 - Signifies how often a secondary DNS zone should be transferred in minutes.
- Zone
Name string - The name of the zone that is transferred.
- Dns
Secondary stringId - (String) A secondary zone's internal identifier.
- []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 StringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- transfer
Frequency Double - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name String - The name of the zone that is transferred.
- dns
Secondary StringId - (String) A secondary zone's internal identifier.
- 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.
- master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- transfer
Frequency number - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name string - The name of the zone that is transferred.
- dns
Secondary stringId - (String) A secondary zone's internal identifier.
- 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_ straddress - 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_ strid - (String) A secondary zone's internal identifier.
- 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.
- master
Ip StringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- transfer
Frequency Number - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name String - The name of the zone that is transferred.
- dns
Secondary StringId - (String) A secondary zone's internal identifier.
- 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.
- Status
Id double - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
Id float64 - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- id String
- The provider-assigned unique ID for this managed resource.
- status
Id Double - (String) The status of a secondary DNS record.
- status
Text String - (String) The textual representation of a secondary DNS zone's status.
- id string
- The provider-assigned unique ID for this managed resource.
- status
Id number - (String) The status of a secondary DNS record.
- status
Text 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.
- status
Id Number - (String) The status of a secondary DNS record.
- status
Text 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.
- Dns
Secondary stringId - (String) A secondary zone's internal identifier.
- Master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- Status
Id double - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- 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. - Transfer
Frequency double - Signifies how often a secondary DNS zone should be transferred in minutes.
- Zone
Name string - The name of the zone that is transferred.
- Dns
Secondary stringId - (String) A secondary zone's internal identifier.
- Master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- Status
Id float64 - (String) The status of a secondary DNS record.
- Status
Text string - (String) The textual representation of a secondary DNS zone's status.
- []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. - Transfer
Frequency float64 - Signifies how often a secondary DNS zone should be transferred in minutes.
- Zone
Name string - The name of the zone that is transferred.
- dns
Secondary StringId - (String) A secondary zone's internal identifier.
- master
Ip StringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id Double - (String) The status of a secondary DNS record.
- status
Text String - (String) The textual representation of a secondary DNS zone's status.
- 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. - transfer
Frequency Double - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name String - The name of the zone that is transferred.
- dns
Secondary stringId - (String) A secondary zone's internal identifier.
- master
Ip stringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id number - (String) The status of a secondary DNS record.
- status
Text string - (String) The textual representation of a secondary DNS zone's status.
- 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. - transfer
Frequency number - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name string - The name of the zone that is transferred.
- dns_
secondary_ strid - (String) A secondary zone's internal identifier.
- master_
ip_ straddress - 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.
- 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.
- dns
Secondary StringId - (String) A secondary zone's internal identifier.
- master
Ip StringAddress - The IP address of the master name server where a secondary DNS zone is transferred from.
- status
Id Number - (String) The status of a secondary DNS record.
- status
Text String - (String) The textual representation of a secondary DNS zone's status.
- 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. - transfer
Frequency Number - Signifies how often a secondary DNS zone should be transferred in minutes.
- zone
Name 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.