ibm.DnsReverseRecord
Explore with Pulumi AI
Provides a single DNS reverse record managed on IBM Cloud Classic Infrastructure (SoftLayer). Record contains general information about the reverse record, such as the hostname, IP address and time to leave.
The IBM Cloud Classic Infrastructure (SoftLayer) object SoftLayer_Dns_Domain_ResourceRecord is used for most create-retrieve-update-delete (CRUD
) operations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testreverserecord = new ibm.DnsReverseRecord("testreverserecord", {
hostname: "www.example.com",
ipaddress: "123.123.123.123",
ttl: 900,
});
import pulumi
import pulumi_ibm as ibm
testreverserecord = ibm.DnsReverseRecord("testreverserecord",
hostname="www.example.com",
ipaddress="123.123.123.123",
ttl=900)
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.NewDnsReverseRecord(ctx, "testreverserecord", &ibm.DnsReverseRecordArgs{
Hostname: pulumi.String("www.example.com"),
Ipaddress: pulumi.String("123.123.123.123"),
Ttl: pulumi.Float64(900),
})
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 testreverserecord = new Ibm.DnsReverseRecord("testreverserecord", new()
{
Hostname = "www.example.com",
Ipaddress = "123.123.123.123",
Ttl = 900,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.DnsReverseRecord;
import com.pulumi.ibm.DnsReverseRecordArgs;
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 testreverserecord = new DnsReverseRecord("testreverserecord", DnsReverseRecordArgs.builder()
.hostname("www.example.com")
.ipaddress("123.123.123.123")
.ttl(900)
.build());
}
}
resources:
testreverserecord:
type: ibm:DnsReverseRecord
properties:
hostname: www.example.com
ipaddress: 123.123.123.123
ttl: 900
Create DnsReverseRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsReverseRecord(name: string, args: DnsReverseRecordArgs, opts?: CustomResourceOptions);
@overload
def DnsReverseRecord(resource_name: str,
args: DnsReverseRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsReverseRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
hostname: Optional[str] = None,
ipaddress: Optional[str] = None,
dns_reverse_record_id: Optional[str] = None,
ttl: Optional[float] = None)
func NewDnsReverseRecord(ctx *Context, name string, args DnsReverseRecordArgs, opts ...ResourceOption) (*DnsReverseRecord, error)
public DnsReverseRecord(string name, DnsReverseRecordArgs args, CustomResourceOptions? opts = null)
public DnsReverseRecord(String name, DnsReverseRecordArgs args)
public DnsReverseRecord(String name, DnsReverseRecordArgs args, CustomResourceOptions options)
type: ibm:DnsReverseRecord
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 DnsReverseRecordArgs
- 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 DnsReverseRecordArgs
- 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 DnsReverseRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsReverseRecordArgs
- 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 dnsReverseRecordResource = new Ibm.DnsReverseRecord("dnsReverseRecordResource", new()
{
Hostname = "string",
Ipaddress = "string",
DnsReverseRecordId = "string",
Ttl = 0,
});
example, err := ibm.NewDnsReverseRecord(ctx, "dnsReverseRecordResource", &ibm.DnsReverseRecordArgs{
Hostname: pulumi.String("string"),
Ipaddress: pulumi.String("string"),
DnsReverseRecordId: pulumi.String("string"),
Ttl: pulumi.Float64(0),
})
var dnsReverseRecordResource = new DnsReverseRecord("dnsReverseRecordResource", DnsReverseRecordArgs.builder()
.hostname("string")
.ipaddress("string")
.dnsReverseRecordId("string")
.ttl(0)
.build());
dns_reverse_record_resource = ibm.DnsReverseRecord("dnsReverseRecordResource",
hostname="string",
ipaddress="string",
dns_reverse_record_id="string",
ttl=0)
const dnsReverseRecordResource = new ibm.DnsReverseRecord("dnsReverseRecordResource", {
hostname: "string",
ipaddress: "string",
dnsReverseRecordId: "string",
ttl: 0,
});
type: ibm:DnsReverseRecord
properties:
dnsReverseRecordId: string
hostname: string
ipaddress: string
ttl: 0
DnsReverseRecord 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 DnsReverseRecord resource accepts the following input properties:
- Hostname string
- The host defined by a reverse record.
- Ipaddress string
- The IP address or a hostname of a domain's resource record.
- Dns
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- Ttl double
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- Hostname string
- The host defined by a reverse record.
- Ipaddress string
- The IP address or a hostname of a domain's resource record.
- Dns
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- Ttl float64
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- hostname String
- The host defined by a reverse record.
- ipaddress String
- The IP address or a hostname of a domain's resource record.
- dns
Reverse StringRecord Id - (String) The unique identifier of reverse dns record.
- ttl Double
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- hostname string
- The host defined by a reverse record.
- ipaddress string
- The IP address or a hostname of a domain's resource record.
- dns
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- ttl number
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- hostname str
- The host defined by a reverse record.
- ipaddress str
- The IP address or a hostname of a domain's resource record.
- dns_
reverse_ strrecord_ id - (String) The unique identifier of reverse dns record.
- ttl float
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- hostname String
- The host defined by a reverse record.
- ipaddress String
- The IP address or a hostname of a domain's resource record.
- dns
Reverse StringRecord Id - (String) The unique identifier of reverse dns record.
- ttl Number
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsReverseRecord resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DnsReverseRecord Resource
Get an existing DnsReverseRecord 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?: DnsReverseRecordState, opts?: CustomResourceOptions): DnsReverseRecord
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dns_reverse_record_id: Optional[str] = None,
hostname: Optional[str] = None,
ipaddress: Optional[str] = None,
ttl: Optional[float] = None) -> DnsReverseRecord
func GetDnsReverseRecord(ctx *Context, name string, id IDInput, state *DnsReverseRecordState, opts ...ResourceOption) (*DnsReverseRecord, error)
public static DnsReverseRecord Get(string name, Input<string> id, DnsReverseRecordState? state, CustomResourceOptions? opts = null)
public static DnsReverseRecord get(String name, Output<String> id, DnsReverseRecordState state, CustomResourceOptions options)
resources: _: type: ibm:DnsReverseRecord 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
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- Hostname string
- The host defined by a reverse record.
- Ipaddress string
- The IP address or a hostname of a domain's resource record.
- Ttl double
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- Dns
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- Hostname string
- The host defined by a reverse record.
- Ipaddress string
- The IP address or a hostname of a domain's resource record.
- Ttl float64
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- dns
Reverse StringRecord Id - (String) The unique identifier of reverse dns record.
- hostname String
- The host defined by a reverse record.
- ipaddress String
- The IP address or a hostname of a domain's resource record.
- ttl Double
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- dns
Reverse stringRecord Id - (String) The unique identifier of reverse dns record.
- hostname string
- The host defined by a reverse record.
- ipaddress string
- The IP address or a hostname of a domain's resource record.
- ttl number
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- dns_
reverse_ strrecord_ id - (String) The unique identifier of reverse dns record.
- hostname str
- The host defined by a reverse record.
- ipaddress str
- The IP address or a hostname of a domain's resource record.
- ttl float
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
- dns
Reverse StringRecord Id - (String) The unique identifier of reverse dns record.
- hostname String
- The host defined by a reverse record.
- ipaddress String
- The IP address or a hostname of a domain's resource record.
- ttl Number
- The time to live (TTL) duration, expressed in seconds, of a resource record. Default value is 604800 seconds.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.