1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. Rrset
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Dns.Rrset

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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}
    

    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 string
    The unique name of the resource.
    args RrsetArgs
    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 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 string
    The unique name of the resource.
    args RrsetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RrsetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    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());
    
    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")
    
    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",
    });
    
    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
    

    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 string
    The target fully-qualified domain name (FQDN) within the target zone.
    Rtype string
    The type of the target RRSet within the target zone.
    ZoneNameOrId 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 string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    Domain string
    The target fully-qualified domain name (FQDN) within the target zone.
    Rtype string
    The type of the target RRSet within the target zone.
    ZoneNameOrId 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 string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    domain String
    The target fully-qualified domain name (FQDN) within the target zone.
    rtype String
    The type of the target RRSet within the target zone.
    zoneNameOrId 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 String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId String
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    domain string
    The target fully-qualified domain name (FQDN) within the target zone.
    rtype string
    The type of the target RRSet within the target zone.
    zoneNameOrId 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 string
    Specifies to operate only on resources that have a matching DNS scope.
    viewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    domain str
    The target fully-qualified domain name (FQDN) within the target zone.
    rtype str
    The type of the target RRSet within the target zone.
    zone_name_or_id 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 str
    Specifies to operate only on resources that have a matching DNS scope.
    view_id str
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    domain String
    The target fully-qualified domain name (FQDN) within the target zone.
    rtype String
    The type of the target RRSet within the target zone.
    zoneNameOrId 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 String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId 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)
    Resource lookup is not supported in YAML
    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:
    CompartmentId string

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

    This parameter is deprecated and should be omitted.

    Domain 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 string
    The type of the target RRSet within the target zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    ZoneNameOrId 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 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 string
    The type of the target RRSet within the target zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    ZoneNameOrId 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 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 String
    The type of the target RRSet within the target zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId String
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    zoneNameOrId 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 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 string
    The type of the target RRSet within the target zone.
    scope string
    Specifies to operate only on resources that have a matching DNS scope.
    viewId string
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    zoneNameOrId 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 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 str
    The type of the target RRSet within the target zone.
    scope str
    Specifies to operate only on resources that have a matching DNS scope.
    view_id str
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    zone_name_or_id 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 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 String
    The type of the target RRSet within the target zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId String
    The OCID of the view the zone is associated with. Required when accessing a private zone by name.
    zoneNameOrId 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 string
    The fully qualified domain name where the record can be located.
    Rdata 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 string
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    Ttl 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 string
    The fully qualified domain name where the record can be located.
    Rdata 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 string
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    Ttl 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 String
    The fully qualified domain name where the record can be located.
    rdata 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 String
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    ttl 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 string
    The fully qualified domain name where the record can be located.
    rdata 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 string
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    ttl 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 str
    The fully qualified domain name where the record can be located.
    rdata 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 str
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    ttl 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 String
    The fully qualified domain name where the record can be located.
    rdata 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 String
    The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
    ttl 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}"
    

    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}"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi