1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. Rrset
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Dns.Rrset

Explore with Pulumi AI

This resource provides the Rrset resource in Oracle Cloud Infrastructure DNS service.

Updates records in the specified RRSet.

When the zone name is provided as a path parameter and PRIVATE is used for the scope query parameter then the viewId query parameter is required.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testRrset = new oci.dns.Rrset("test_rrset", {
    domain: rrsetDomain,
    rtype: rrsetRtype,
    zoneNameOrId: testZone.id,
    items: [{
        domain: rrsetItemsDomain,
        rdata: rrsetItemsRdata,
        rtype: rrsetItemsRtype,
        ttl: rrsetItemsTtl,
    }],
    scope: rrsetScope,
    viewId: testView.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_rrset = oci.dns.Rrset("test_rrset",
    domain=rrset_domain,
    rtype=rrset_rtype,
    zone_name_or_id=test_zone["id"],
    items=[{
        "domain": rrset_items_domain,
        "rdata": rrset_items_rdata,
        "rtype": rrset_items_rtype,
        "ttl": rrset_items_ttl,
    }],
    scope=rrset_scope,
    view_id=test_view["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dns.NewRrset(ctx, "test_rrset", &dns.RrsetArgs{
			Domain:       pulumi.Any(rrsetDomain),
			Rtype:        pulumi.Any(rrsetRtype),
			ZoneNameOrId: pulumi.Any(testZone.Id),
			Items: dns.RrsetItemArray{
				&dns.RrsetItemArgs{
					Domain: pulumi.Any(rrsetItemsDomain),
					Rdata:  pulumi.Any(rrsetItemsRdata),
					Rtype:  pulumi.Any(rrsetItemsRtype),
					Ttl:    pulumi.Any(rrsetItemsTtl),
				},
			},
			Scope:  pulumi.Any(rrsetScope),
			ViewId: pulumi.Any(testView.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testRrset = new Oci.Dns.Rrset("test_rrset", new()
    {
        Domain = rrsetDomain,
        Rtype = rrsetRtype,
        ZoneNameOrId = testZone.Id,
        Items = new[]
        {
            new Oci.Dns.Inputs.RrsetItemArgs
            {
                Domain = rrsetItemsDomain,
                Rdata = rrsetItemsRdata,
                Rtype = rrsetItemsRtype,
                Ttl = rrsetItemsTtl,
            },
        },
        Scope = rrsetScope,
        ViewId = testView.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dns.Rrset;
import com.pulumi.oci.Dns.RrsetArgs;
import com.pulumi.oci.Dns.inputs.RrsetItemArgs;
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 testRrset = new Rrset("testRrset", RrsetArgs.builder()
            .domain(rrsetDomain)
            .rtype(rrsetRtype)
            .zoneNameOrId(testZone.id())
            .items(RrsetItemArgs.builder()
                .domain(rrsetItemsDomain)
                .rdata(rrsetItemsRdata)
                .rtype(rrsetItemsRtype)
                .ttl(rrsetItemsTtl)
                .build())
            .scope(rrsetScope)
            .viewId(testView.id())
            .build());

    }
}
Copy
resources:
  testRrset:
    type: oci:Dns:Rrset
    name: test_rrset
    properties:
      domain: ${rrsetDomain}
      rtype: ${rrsetRtype}
      zoneNameOrId: ${testZone.id}
      items:
        - domain: ${rrsetItemsDomain}
          rdata: ${rrsetItemsRdata}
          rtype: ${rrsetItemsRtype}
          ttl: ${rrsetItemsTtl}
      scope: ${rrsetScope}
      viewId: ${testView.id}
Copy

Create Rrset Resource

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

Constructor syntax

new Rrset(name: string, args: RrsetArgs, opts?: CustomResourceOptions);
@overload
def Rrset(resource_name: str,
          args: RrsetArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Rrset(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          domain: Optional[str] = None,
          rtype: Optional[str] = None,
          zone_name_or_id: Optional[str] = None,
          compartment_id: Optional[str] = None,
          items: Optional[Sequence[_dns.RrsetItemArgs]] = None,
          scope: Optional[str] = None,
          view_id: Optional[str] = None)
func NewRrset(ctx *Context, name string, args RrsetArgs, opts ...ResourceOption) (*Rrset, error)
public Rrset(string name, RrsetArgs args, CustomResourceOptions? opts = null)
public Rrset(String name, RrsetArgs args)
public Rrset(String name, RrsetArgs args, CustomResourceOptions options)
type: oci:Dns:Rrset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RrsetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RrsetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RrsetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RrsetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RrsetArgs
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 rrsetResource = new Oci.Dns.Rrset("rrsetResource", new()
{
    Domain = "string",
    Rtype = "string",
    ZoneNameOrId = "string",
    CompartmentId = "string",
    Items = new[]
    {
        new Oci.Dns.Inputs.RrsetItemArgs
        {
            Domain = "string",
            Rdata = "string",
            Rtype = "string",
            Ttl = 0,
            IsProtected = false,
            RecordHash = "string",
            RrsetVersion = "string",
        },
    },
    Scope = "string",
    ViewId = "string",
});
Copy
example, err := Dns.NewRrset(ctx, "rrsetResource", &Dns.RrsetArgs{
	Domain:        pulumi.String("string"),
	Rtype:         pulumi.String("string"),
	ZoneNameOrId:  pulumi.String("string"),
	CompartmentId: pulumi.String("string"),
	Items: dns.RrsetItemArray{
		&dns.RrsetItemArgs{
			Domain:       pulumi.String("string"),
			Rdata:        pulumi.String("string"),
			Rtype:        pulumi.String("string"),
			Ttl:          pulumi.Int(0),
			IsProtected:  pulumi.Bool(false),
			RecordHash:   pulumi.String("string"),
			RrsetVersion: pulumi.String("string"),
		},
	},
	Scope:  pulumi.String("string"),
	ViewId: pulumi.String("string"),
})
Copy
var rrsetResource = new Rrset("rrsetResource", RrsetArgs.builder()
    .domain("string")
    .rtype("string")
    .zoneNameOrId("string")
    .compartmentId("string")
    .items(RrsetItemArgs.builder()
        .domain("string")
        .rdata("string")
        .rtype("string")
        .ttl(0)
        .isProtected(false)
        .recordHash("string")
        .rrsetVersion("string")
        .build())
    .scope("string")
    .viewId("string")
    .build());
Copy
rrset_resource = oci.dns.Rrset("rrsetResource",
    domain="string",
    rtype="string",
    zone_name_or_id="string",
    compartment_id="string",
    items=[{
        "domain": "string",
        "rdata": "string",
        "rtype": "string",
        "ttl": 0,
        "is_protected": False,
        "record_hash": "string",
        "rrset_version": "string",
    }],
    scope="string",
    view_id="string")
Copy
const rrsetResource = new oci.dns.Rrset("rrsetResource", {
    domain: "string",
    rtype: "string",
    zoneNameOrId: "string",
    compartmentId: "string",
    items: [{
        domain: "string",
        rdata: "string",
        rtype: "string",
        ttl: 0,
        isProtected: false,
        recordHash: "string",
        rrsetVersion: "string",
    }],
    scope: "string",
    viewId: "string",
});
Copy
type: oci:Dns:Rrset
properties:
    compartmentId: string
    domain: string
    items:
        - domain: string
          isProtected: false
          rdata: string
          recordHash: string
          rrsetVersion: string
          rtype: string
          ttl: 0
    rtype: string
    scope: string
    viewId: string
    zoneNameOrId: string
Copy

Rrset 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 Rrset resource accepts the following input properties:

Domain
This property is required.
Changes to this property will trigger replacement.
string
The target fully-qualified domain name (FQDN) within the target zone.
Rtype
This property is required.
Changes to this property will trigger replacement.
string
The type of the target RRSet within the target zone.
ZoneNameOrId
This property is required.
Changes to this property will trigger replacement.
string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

CompartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

Items List<RrsetItem>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
Scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
ViewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
Domain
This property is required.
Changes to this property will trigger replacement.
string
The target fully-qualified domain name (FQDN) within the target zone.
Rtype
This property is required.
Changes to this property will trigger replacement.
string
The type of the target RRSet within the target zone.
ZoneNameOrId
This property is required.
Changes to this property will trigger replacement.
string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

CompartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

Items []RrsetItemArgs
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
Scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
ViewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
domain
This property is required.
Changes to this property will trigger replacement.
String
The target fully-qualified domain name (FQDN) within the target zone.
rtype
This property is required.
Changes to this property will trigger replacement.
String
The type of the target RRSet within the target zone.
zoneNameOrId
This property is required.
Changes to this property will trigger replacement.
String

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId String

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

items List<RrsetItem>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
scope Changes to this property will trigger replacement. String
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. String
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
domain
This property is required.
Changes to this property will trigger replacement.
string
The target fully-qualified domain name (FQDN) within the target zone.
rtype
This property is required.
Changes to this property will trigger replacement.
string
The type of the target RRSet within the target zone.
zoneNameOrId
This property is required.
Changes to this property will trigger replacement.
string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

items RrsetItem[]
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
domain
This property is required.
Changes to this property will trigger replacement.
str
The target fully-qualified domain name (FQDN) within the target zone.
rtype
This property is required.
Changes to this property will trigger replacement.
str
The type of the target RRSet within the target zone.
zone_name_or_id
This property is required.
Changes to this property will trigger replacement.
str

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartment_id str

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

items Sequence[dns.RrsetItemArgs]
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
scope Changes to this property will trigger replacement. str
Specifies to operate only on resources that have a matching DNS scope.
view_id Changes to this property will trigger replacement. str
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
domain
This property is required.
Changes to this property will trigger replacement.
String
The target fully-qualified domain name (FQDN) within the target zone.
rtype
This property is required.
Changes to this property will trigger replacement.
String
The type of the target RRSet within the target zone.
zoneNameOrId
This property is required.
Changes to this property will trigger replacement.
String

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId String

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

items List<Property Map>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
scope Changes to this property will trigger replacement. String
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. String
The OCID of the view the zone is associated with. Required when accessing a private zone by name.

Outputs

All input properties are implicitly available as output properties. Additionally, the Rrset 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 Rrset Resource

Get an existing Rrset 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?: RrsetState, opts?: CustomResourceOptions): Rrset
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        domain: Optional[str] = None,
        items: Optional[Sequence[_dns.RrsetItemArgs]] = None,
        rtype: Optional[str] = None,
        scope: Optional[str] = None,
        view_id: Optional[str] = None,
        zone_name_or_id: Optional[str] = None) -> Rrset
func GetRrset(ctx *Context, name string, id IDInput, state *RrsetState, opts ...ResourceOption) (*Rrset, error)
public static Rrset Get(string name, Input<string> id, RrsetState? state, CustomResourceOptions? opts = null)
public static Rrset get(String name, Output<String> id, RrsetState state, CustomResourceOptions options)
resources:  _:    type: oci:Dns:Rrset    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CompartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

Domain Changes to this property will trigger replacement. string
The target fully-qualified domain name (FQDN) within the target zone.
Items List<RrsetItem>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
Rtype Changes to this property will trigger replacement. string
The type of the target RRSet within the target zone.
Scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
ViewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
ZoneNameOrId Changes to this property will trigger replacement. string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

CompartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

Domain Changes to this property will trigger replacement. string
The target fully-qualified domain name (FQDN) within the target zone.
Items []RrsetItemArgs
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
Rtype Changes to this property will trigger replacement. string
The type of the target RRSet within the target zone.
Scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
ViewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
ZoneNameOrId Changes to this property will trigger replacement. string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId String

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

domain Changes to this property will trigger replacement. String
The target fully-qualified domain name (FQDN) within the target zone.
items List<RrsetItem>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
rtype Changes to this property will trigger replacement. String
The type of the target RRSet within the target zone.
scope Changes to this property will trigger replacement. String
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. String
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
zoneNameOrId Changes to this property will trigger replacement. String

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId string

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

domain Changes to this property will trigger replacement. string
The target fully-qualified domain name (FQDN) within the target zone.
items RrsetItem[]
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
rtype Changes to this property will trigger replacement. string
The type of the target RRSet within the target zone.
scope Changes to this property will trigger replacement. string
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. string
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
zoneNameOrId Changes to this property will trigger replacement. string

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartment_id str

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

domain Changes to this property will trigger replacement. str
The target fully-qualified domain name (FQDN) within the target zone.
items Sequence[dns.RrsetItemArgs]
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
rtype Changes to this property will trigger replacement. str
The type of the target RRSet within the target zone.
scope Changes to this property will trigger replacement. str
Specifies to operate only on resources that have a matching DNS scope.
view_id Changes to this property will trigger replacement. str
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
zone_name_or_id Changes to this property will trigger replacement. str

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId String

(Updatable) The OCID of the compartment the zone belongs to.

This parameter is deprecated and should be omitted.

domain Changes to this property will trigger replacement. String
The target fully-qualified domain name (FQDN) within the target zone.
items List<Property Map>
(Updatable) NOTE Omitting items at time of create will delete any existing records in the RRSet
rtype Changes to this property will trigger replacement. String
The type of the target RRSet within the target zone.
scope Changes to this property will trigger replacement. String
Specifies to operate only on resources that have a matching DNS scope.
viewId Changes to this property will trigger replacement. String
The OCID of the view the zone is associated with. Required when accessing a private zone by name.
zoneNameOrId Changes to this property will trigger replacement. String

The name or OCID of the target zone.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Supporting Types

RrsetItem
, RrsetItemArgs

Domain This property is required. string
The fully qualified domain name where the record can be located.
Rdata This property is required. string
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
Rtype This property is required. string
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
Ttl This property is required. int
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
IsProtected bool
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
RecordHash string
A unique identifier for the record within its zone.
RrsetVersion string
The latest version of the record's zone in which its RRSet differs from the preceding version.
Domain This property is required. string
The fully qualified domain name where the record can be located.
Rdata This property is required. string
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
Rtype This property is required. string
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
Ttl This property is required. int
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
IsProtected bool
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
RecordHash string
A unique identifier for the record within its zone.
RrsetVersion string
The latest version of the record's zone in which its RRSet differs from the preceding version.
domain This property is required. String
The fully qualified domain name where the record can be located.
rdata This property is required. String
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
rtype This property is required. String
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
ttl This property is required. Integer
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
isProtected Boolean
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
recordHash String
A unique identifier for the record within its zone.
rrsetVersion String
The latest version of the record's zone in which its RRSet differs from the preceding version.
domain This property is required. string
The fully qualified domain name where the record can be located.
rdata This property is required. string
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
rtype This property is required. string
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
ttl This property is required. number
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
isProtected boolean
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
recordHash string
A unique identifier for the record within its zone.
rrsetVersion string
The latest version of the record's zone in which its RRSet differs from the preceding version.
domain This property is required. str
The fully qualified domain name where the record can be located.
rdata This property is required. str
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
rtype This property is required. str
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
ttl This property is required. int
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
is_protected bool
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
record_hash str
A unique identifier for the record within its zone.
rrset_version str
The latest version of the record's zone in which its RRSet differs from the preceding version.
domain This property is required. String
The fully qualified domain name where the record can be located.
rdata This property is required. String
(Updatable) The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
rtype This property is required. String
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
ttl This property is required. Number
(Updatable) The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
isProtected Boolean
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
recordHash String
A unique identifier for the record within its zone.
rrsetVersion String
The latest version of the record's zone in which its RRSet differs from the preceding version.

Import

For legacy Rrsets that were created without using scope, these Rrsets can be imported using the id, e.g.

$ pulumi import oci:Dns/rrset:Rrset test_rrset "zoneNameOrId/{zoneNameOrId}/domain/{domain}/rtype/{rtype}"
Copy

For Rrsets created using scope and view_id, these Rrsets can be imported using the id, e.g.

$ pulumi import oci:Dns/rrset:Rrset test_rrset "zoneNameOrId/{zoneNameOrId}/domain/{domain}/rtype/{rtype}/scope/{scope}/viewId/{viewId}"
Copy

skip adding {view_id} at the end if Rrset was created without view_id.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.