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

oci.Dns.ActionCreateZoneFromZoneFile

Explore with Pulumi AI

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

    This resource provides the Action Create Zone From Zone File resource in Oracle Cloud Infrastructure DNS service.

    Creates a new zone from a zone file in the specified compartment. Not supported for private zones.

    After the zone has been created, it should be further managed by importing it to an oci.Dns.Zone resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testActionCreateZoneFromZoneFile = new oci.dns.ActionCreateZoneFromZoneFile("test_action_create_zone_from_zone_file", {
        createZoneFromZoneFileDetails: actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails,
        compartmentId: compartmentId,
        scope: actionCreateZoneFromZoneFileScope,
        viewId: testView.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_action_create_zone_from_zone_file = oci.dns.ActionCreateZoneFromZoneFile("test_action_create_zone_from_zone_file",
        create_zone_from_zone_file_details=action_create_zone_from_zone_file_create_zone_from_zone_file_details,
        compartment_id=compartment_id,
        scope=action_create_zone_from_zone_file_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.NewActionCreateZoneFromZoneFile(ctx, "test_action_create_zone_from_zone_file", &Dns.ActionCreateZoneFromZoneFileArgs{
    			CreateZoneFromZoneFileDetails: pulumi.Any(actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails),
    			CompartmentId:                 pulumi.Any(compartmentId),
    			Scope:                         pulumi.Any(actionCreateZoneFromZoneFileScope),
    			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 testActionCreateZoneFromZoneFile = new Oci.Dns.ActionCreateZoneFromZoneFile("test_action_create_zone_from_zone_file", new()
        {
            CreateZoneFromZoneFileDetails = actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails,
            CompartmentId = compartmentId,
            Scope = actionCreateZoneFromZoneFileScope,
            ViewId = testView.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Dns.ActionCreateZoneFromZoneFile;
    import com.pulumi.oci.Dns.ActionCreateZoneFromZoneFileArgs;
    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 testActionCreateZoneFromZoneFile = new ActionCreateZoneFromZoneFile("testActionCreateZoneFromZoneFile", ActionCreateZoneFromZoneFileArgs.builder()
                .createZoneFromZoneFileDetails(actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails)
                .compartmentId(compartmentId)
                .scope(actionCreateZoneFromZoneFileScope)
                .viewId(testView.id())
                .build());
    
        }
    }
    
    resources:
      testActionCreateZoneFromZoneFile:
        type: oci:Dns:ActionCreateZoneFromZoneFile
        name: test_action_create_zone_from_zone_file
        properties:
          createZoneFromZoneFileDetails: ${actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails}
          compartmentId: ${compartmentId}
          scope: ${actionCreateZoneFromZoneFileScope}
          viewId: ${testView.id}
    

    Create ActionCreateZoneFromZoneFile Resource

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

    Constructor syntax

    new ActionCreateZoneFromZoneFile(name: string, args: ActionCreateZoneFromZoneFileArgs, opts?: CustomResourceOptions);
    @overload
    def ActionCreateZoneFromZoneFile(resource_name: str,
                                     args: ActionCreateZoneFromZoneFileArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ActionCreateZoneFromZoneFile(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     compartment_id: Optional[str] = None,
                                     create_zone_from_zone_file_details: Optional[str] = None,
                                     scope: Optional[str] = None,
                                     view_id: Optional[str] = None)
    func NewActionCreateZoneFromZoneFile(ctx *Context, name string, args ActionCreateZoneFromZoneFileArgs, opts ...ResourceOption) (*ActionCreateZoneFromZoneFile, error)
    public ActionCreateZoneFromZoneFile(string name, ActionCreateZoneFromZoneFileArgs args, CustomResourceOptions? opts = null)
    public ActionCreateZoneFromZoneFile(String name, ActionCreateZoneFromZoneFileArgs args)
    public ActionCreateZoneFromZoneFile(String name, ActionCreateZoneFromZoneFileArgs args, CustomResourceOptions options)
    
    type: oci:Dns:ActionCreateZoneFromZoneFile
    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 ActionCreateZoneFromZoneFileArgs
    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 ActionCreateZoneFromZoneFileArgs
    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 ActionCreateZoneFromZoneFileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionCreateZoneFromZoneFileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionCreateZoneFromZoneFileArgs
    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 actionCreateZoneFromZoneFileResource = new Oci.Dns.ActionCreateZoneFromZoneFile("actionCreateZoneFromZoneFileResource", new()
    {
        CompartmentId = "string",
        CreateZoneFromZoneFileDetails = "string",
        Scope = "string",
        ViewId = "string",
    });
    
    example, err := Dns.NewActionCreateZoneFromZoneFile(ctx, "actionCreateZoneFromZoneFileResource", &Dns.ActionCreateZoneFromZoneFileArgs{
    	CompartmentId:                 pulumi.String("string"),
    	CreateZoneFromZoneFileDetails: pulumi.String("string"),
    	Scope:                         pulumi.String("string"),
    	ViewId:                        pulumi.String("string"),
    })
    
    var actionCreateZoneFromZoneFileResource = new ActionCreateZoneFromZoneFile("actionCreateZoneFromZoneFileResource", ActionCreateZoneFromZoneFileArgs.builder()
        .compartmentId("string")
        .createZoneFromZoneFileDetails("string")
        .scope("string")
        .viewId("string")
        .build());
    
    action_create_zone_from_zone_file_resource = oci.dns.ActionCreateZoneFromZoneFile("actionCreateZoneFromZoneFileResource",
        compartment_id="string",
        create_zone_from_zone_file_details="string",
        scope="string",
        view_id="string")
    
    const actionCreateZoneFromZoneFileResource = new oci.dns.ActionCreateZoneFromZoneFile("actionCreateZoneFromZoneFileResource", {
        compartmentId: "string",
        createZoneFromZoneFileDetails: "string",
        scope: "string",
        viewId: "string",
    });
    
    type: oci:Dns:ActionCreateZoneFromZoneFile
    properties:
        compartmentId: string
        createZoneFromZoneFileDetails: string
        scope: string
        viewId: string
    

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

    CompartmentId string
    The OCID of the compartment the resource belongs to.
    CreateZoneFromZoneFileDetails string
    The zone file contents.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string

    The OCID of the view the resource is associated with.

    ** 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
    The OCID of the compartment the resource belongs to.
    CreateZoneFromZoneFileDetails string
    The zone file contents.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ViewId string

    The OCID of the view the resource is associated with.

    ** 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
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails String
    The zone file contents.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId String

    The OCID of the view the resource is associated with.

    ** 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
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails string
    The zone file contents.
    scope string
    Specifies to operate only on resources that have a matching DNS scope.
    viewId string

    The OCID of the view the resource is associated with.

    ** 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
    The OCID of the compartment the resource belongs to.
    create_zone_from_zone_file_details str
    The zone file contents.
    scope str
    Specifies to operate only on resources that have a matching DNS scope.
    view_id str

    The OCID of the view the resource is associated with.

    ** 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
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails String
    The zone file contents.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    viewId String

    The OCID of the view the resource is associated with.

    ** 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

    Outputs

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

    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DnssecConfigs List<ActionCreateZoneFromZoneFileDnssecConfig>
    DnssecState string
    ExternalDownstreams List<ActionCreateZoneFromZoneFileExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters List<ActionCreateZoneFromZoneFileExternalMaster>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    The name of the zone.
    Nameservers List<ActionCreateZoneFromZoneFileNameserver>
    The authoritative nameservers for the zone.
    Self string
    The canonical absolute URL of the resource.
    Serial string
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The current state of the zone resource.
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    Version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    ZoneTransferServers List<ActionCreateZoneFromZoneFileZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DnssecConfigs []ActionCreateZoneFromZoneFileDnssecConfig
    DnssecState string
    ExternalDownstreams []ActionCreateZoneFromZoneFileExternalDownstream
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters []ActionCreateZoneFromZoneFileExternalMaster
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    The name of the zone.
    Nameservers []ActionCreateZoneFromZoneFileNameserver
    The authoritative nameservers for the zone.
    Self string
    The canonical absolute URL of the resource.
    Serial string
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The current state of the zone resource.
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    Version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    ZoneTransferServers []ActionCreateZoneFromZoneFileZoneTransferServer
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs List<ActionCreateZoneFromZoneFilesecConfig>
    dnssecState String
    externalDownstreams List<ActionCreateZoneFromZoneFileExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters List<ActionCreateZoneFromZoneFileExternalMaster>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    The name of the zone.
    nameservers List<ActionCreateZoneFromZoneFileNameserver>
    The authoritative nameservers for the zone.
    self String
    The canonical absolute URL of the resource.
    serial String
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The current state of the zone resource.
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version String
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    zoneTransferServers List<ActionCreateZoneFromZoneFileZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs ActionCreateZoneFromZoneFileDnssecConfig[]
    dnssecState string
    externalDownstreams ActionCreateZoneFromZoneFileExternalDownstream[]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters ActionCreateZoneFromZoneFileExternalMaster[]
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id string
    The provider-assigned unique ID for this managed resource.
    isProtected boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name string
    The name of the zone.
    nameservers ActionCreateZoneFromZoneFileNameserver[]
    The authoritative nameservers for the zone.
    self string
    The canonical absolute URL of the resource.
    serial string
    The current serial of the zone. As seen in the zone's SOA record.
    state string
    The current state of the zone resource.
    timeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    zoneTransferServers ActionCreateZoneFromZoneFileZoneTransferServer[]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssec_configs Sequence[dns.ActionCreateZoneFromZoneFileDnssecConfig]
    dnssec_state str
    external_downstreams Sequence[dns.ActionCreateZoneFromZoneFileExternalDownstream]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    external_masters Sequence[dns.ActionCreateZoneFromZoneFileExternalMaster]
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id str
    The provider-assigned unique ID for this managed resource.
    is_protected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name str
    The name of the zone.
    nameservers Sequence[dns.ActionCreateZoneFromZoneFileNameserver]
    The authoritative nameservers for the zone.
    self str
    The canonical absolute URL of the resource.
    serial str
    The current serial of the zone. As seen in the zone's SOA record.
    state str
    The current state of the zone resource.
    time_created str
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version str
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    zone_transfer_servers Sequence[dns.ActionCreateZoneFromZoneFileZoneTransferServer]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zone_type str
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs List<Property Map>
    dnssecState String
    externalDownstreams List<Property Map>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters List<Property Map>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    The name of the zone.
    nameservers List<Property Map>
    The authoritative nameservers for the zone.
    self String
    The canonical absolute URL of the resource.
    serial String
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The current state of the zone resource.
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version String
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    zoneTransferServers List<Property Map>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.

    Look up Existing ActionCreateZoneFromZoneFile Resource

    Get an existing ActionCreateZoneFromZoneFile 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?: ActionCreateZoneFromZoneFileState, opts?: CustomResourceOptions): ActionCreateZoneFromZoneFile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            create_zone_from_zone_file_details: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            dnssec_configs: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileDnssecConfigArgs]] = None,
            dnssec_state: Optional[str] = None,
            external_downstreams: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileExternalDownstreamArgs]] = None,
            external_masters: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileExternalMasterArgs]] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_protected: Optional[bool] = None,
            name: Optional[str] = None,
            nameservers: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileNameserverArgs]] = None,
            scope: Optional[str] = None,
            self: Optional[str] = None,
            serial: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            version: Optional[str] = None,
            view_id: Optional[str] = None,
            zone_transfer_servers: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileZoneTransferServerArgs]] = None,
            zone_type: Optional[str] = None) -> ActionCreateZoneFromZoneFile
    func GetActionCreateZoneFromZoneFile(ctx *Context, name string, id IDInput, state *ActionCreateZoneFromZoneFileState, opts ...ResourceOption) (*ActionCreateZoneFromZoneFile, error)
    public static ActionCreateZoneFromZoneFile Get(string name, Input<string> id, ActionCreateZoneFromZoneFileState? state, CustomResourceOptions? opts = null)
    public static ActionCreateZoneFromZoneFile get(String name, Output<String> id, ActionCreateZoneFromZoneFileState 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
    The OCID of the compartment the resource belongs to.
    CreateZoneFromZoneFileDetails string
    The zone file contents.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DnssecConfigs List<ActionCreateZoneFromZoneFileDnssecConfig>
    DnssecState string
    ExternalDownstreams List<ActionCreateZoneFromZoneFileExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters List<ActionCreateZoneFromZoneFileExternalMaster>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    The name of the zone.
    Nameservers List<ActionCreateZoneFromZoneFileNameserver>
    The authoritative nameservers for the zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    Self string
    The canonical absolute URL of the resource.
    Serial string
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The current state of the zone resource.
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    Version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    ViewId string

    The OCID of the view the resource is associated with.

    ** 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

    ZoneTransferServers List<ActionCreateZoneFromZoneFileZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    CompartmentId string
    The OCID of the compartment the resource belongs to.
    CreateZoneFromZoneFileDetails string
    The zone file contents.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DnssecConfigs []ActionCreateZoneFromZoneFileDnssecConfigArgs
    DnssecState string
    ExternalDownstreams []ActionCreateZoneFromZoneFileExternalDownstreamArgs
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters []ActionCreateZoneFromZoneFileExternalMasterArgs
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    The name of the zone.
    Nameservers []ActionCreateZoneFromZoneFileNameserverArgs
    The authoritative nameservers for the zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    Self string
    The canonical absolute URL of the resource.
    Serial string
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The current state of the zone resource.
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    Version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    ViewId string

    The OCID of the view the resource is associated with.

    ** 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

    ZoneTransferServers []ActionCreateZoneFromZoneFileZoneTransferServerArgs
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails String
    The zone file contents.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs List<ActionCreateZoneFromZoneFilesecConfig>
    dnssecState String
    externalDownstreams List<ActionCreateZoneFromZoneFileExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters List<ActionCreateZoneFromZoneFileExternalMaster>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    The name of the zone.
    nameservers List<ActionCreateZoneFromZoneFileNameserver>
    The authoritative nameservers for the zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    self String
    The canonical absolute URL of the resource.
    serial String
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The current state of the zone resource.
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version String
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    viewId String

    The OCID of the view the resource is associated with.

    ** 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

    zoneTransferServers List<ActionCreateZoneFromZoneFileZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    compartmentId string
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails string
    The zone file contents.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs ActionCreateZoneFromZoneFileDnssecConfig[]
    dnssecState string
    externalDownstreams ActionCreateZoneFromZoneFileExternalDownstream[]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters ActionCreateZoneFromZoneFileExternalMaster[]
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    isProtected boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name string
    The name of the zone.
    nameservers ActionCreateZoneFromZoneFileNameserver[]
    The authoritative nameservers for the zone.
    scope string
    Specifies to operate only on resources that have a matching DNS scope.
    self string
    The canonical absolute URL of the resource.
    serial string
    The current serial of the zone. As seen in the zone's SOA record.
    state string
    The current state of the zone resource.
    timeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version string
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    viewId string

    The OCID of the view the resource is associated with.

    ** 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

    zoneTransferServers ActionCreateZoneFromZoneFileZoneTransferServer[]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType string
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    compartment_id str
    The OCID of the compartment the resource belongs to.
    create_zone_from_zone_file_details str
    The zone file contents.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssec_configs Sequence[dns.ActionCreateZoneFromZoneFileDnssecConfigArgs]
    dnssec_state str
    external_downstreams Sequence[dns.ActionCreateZoneFromZoneFileExternalDownstreamArgs]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    external_masters Sequence[dns.ActionCreateZoneFromZoneFileExternalMasterArgs]
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    is_protected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name str
    The name of the zone.
    nameservers Sequence[dns.ActionCreateZoneFromZoneFileNameserverArgs]
    The authoritative nameservers for the zone.
    scope str
    Specifies to operate only on resources that have a matching DNS scope.
    self str
    The canonical absolute URL of the resource.
    serial str
    The current serial of the zone. As seen in the zone's SOA record.
    state str
    The current state of the zone resource.
    time_created str
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version str
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    view_id str

    The OCID of the view the resource is associated with.

    ** 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

    zone_transfer_servers Sequence[dns.ActionCreateZoneFromZoneFileZoneTransferServerArgs]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zone_type str
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    createZoneFromZoneFileDetails String
    The zone file contents.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    dnssecConfigs List<Property Map>
    dnssecState String
    externalDownstreams List<Property Map>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters List<Property Map>
    External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    The name of the zone.
    nameservers List<Property Map>
    The authoritative nameservers for the zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    self String
    The canonical absolute URL of the resource.
    serial String
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The current state of the zone resource.
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    version String
    Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
    viewId String

    The OCID of the view the resource is associated with.

    ** 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

    zoneTransferServers List<Property Map>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.

    Supporting Types

    ActionCreateZoneFromZoneFileDnssecConfig, ActionCreateZoneFromZoneFileDnssecConfigArgs

    ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersion, ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionArgs

    Algorithm string
    DsDatas List<ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionDsData>
    KeyTag int
    LengthInBytes int
    PredecessorDnssecKeyVersionUuid string
    SuccessorDnssecKeyVersionUuid string
    TimeActivated string
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    TimeExpired string
    TimeInactivated string
    TimePromoted string
    TimePublished string
    TimeUnpublished string
    Uuid string
    Algorithm string
    DsDatas []ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionDsData
    KeyTag int
    LengthInBytes int
    PredecessorDnssecKeyVersionUuid string
    SuccessorDnssecKeyVersionUuid string
    TimeActivated string
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    TimeExpired string
    TimeInactivated string
    TimePromoted string
    TimePublished string
    TimeUnpublished string
    Uuid string
    algorithm String
    dsDatas List<ActionCreateZoneFromZoneFilesecConfigKsksecKeyVersionDsData>
    keyTag Integer
    lengthInBytes Integer
    predecessorDnssecKeyVersionUuid String
    successorDnssecKeyVersionUuid String
    timeActivated String
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired String
    timeInactivated String
    timePromoted String
    timePublished String
    timeUnpublished String
    uuid String
    algorithm string
    dsDatas ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionDsData[]
    keyTag number
    lengthInBytes number
    predecessorDnssecKeyVersionUuid string
    successorDnssecKeyVersionUuid string
    timeActivated string
    timeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired string
    timeInactivated string
    timePromoted string
    timePublished string
    timeUnpublished string
    uuid string
    algorithm String
    dsDatas List<Property Map>
    keyTag Number
    lengthInBytes Number
    predecessorDnssecKeyVersionUuid String
    successorDnssecKeyVersionUuid String
    timeActivated String
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired String
    timeInactivated String
    timePromoted String
    timePublished String
    timeUnpublished String
    uuid String

    ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionDsData, ActionCreateZoneFromZoneFileDnssecConfigKskDnssecKeyVersionDsDataArgs

    DigestType string
    Rdata string
    DigestType string
    Rdata string
    digestType String
    rdata String
    digestType string
    rdata string
    digestType String
    rdata String

    ActionCreateZoneFromZoneFileDnssecConfigZskDnssecKeyVersion, ActionCreateZoneFromZoneFileDnssecConfigZskDnssecKeyVersionArgs

    Algorithm string
    KeyTag int
    LengthInBytes int
    PredecessorDnssecKeyVersionUuid string
    SuccessorDnssecKeyVersionUuid string
    TimeActivated string
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    TimeExpired string
    TimeInactivated string
    TimePromoted string
    TimePublished string
    TimeUnpublished string
    Uuid string
    Algorithm string
    KeyTag int
    LengthInBytes int
    PredecessorDnssecKeyVersionUuid string
    SuccessorDnssecKeyVersionUuid string
    TimeActivated string
    TimeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    TimeExpired string
    TimeInactivated string
    TimePromoted string
    TimePublished string
    TimeUnpublished string
    Uuid string
    algorithm String
    keyTag Integer
    lengthInBytes Integer
    predecessorDnssecKeyVersionUuid String
    successorDnssecKeyVersionUuid String
    timeActivated String
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired String
    timeInactivated String
    timePromoted String
    timePublished String
    timeUnpublished String
    uuid String
    algorithm string
    keyTag number
    lengthInBytes number
    predecessorDnssecKeyVersionUuid string
    successorDnssecKeyVersionUuid string
    timeActivated string
    timeCreated string
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired string
    timeInactivated string
    timePromoted string
    timePublished string
    timeUnpublished string
    uuid string
    algorithm str
    key_tag int
    length_in_bytes int
    predecessor_dnssec_key_version_uuid str
    successor_dnssec_key_version_uuid str
    time_activated str
    time_created str
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    time_expired str
    time_inactivated str
    time_promoted str
    time_published str
    time_unpublished str
    uuid str
    algorithm String
    keyTag Number
    lengthInBytes Number
    predecessorDnssecKeyVersionUuid String
    successorDnssecKeyVersionUuid String
    timeActivated String
    timeCreated String
    The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
    timeExpired String
    timeInactivated String
    timePromoted String
    timePublished String
    timeUnpublished String
    uuid String

    ActionCreateZoneFromZoneFileExternalDownstream, ActionCreateZoneFromZoneFileExternalDownstreamArgs

    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port.
    TsigKeyId string
    The OCID of the TSIG key.
    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port.
    TsigKeyId string
    The OCID of the TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Integer
    The server's port.
    tsigKeyId String
    The OCID of the TSIG key.
    address string
    The server's IP address (IPv4 or IPv6).
    port number
    The server's port.
    tsigKeyId string
    The OCID of the TSIG key.
    address str
    The server's IP address (IPv4 or IPv6).
    port int
    The server's port.
    tsig_key_id str
    The OCID of the TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Number
    The server's port.
    tsigKeyId String
    The OCID of the TSIG key.

    ActionCreateZoneFromZoneFileExternalMaster, ActionCreateZoneFromZoneFileExternalMasterArgs

    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port.
    TsigKeyId string
    The OCID of the TSIG key.
    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port.
    TsigKeyId string
    The OCID of the TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Integer
    The server's port.
    tsigKeyId String
    The OCID of the TSIG key.
    address string
    The server's IP address (IPv4 or IPv6).
    port number
    The server's port.
    tsigKeyId string
    The OCID of the TSIG key.
    address str
    The server's IP address (IPv4 or IPv6).
    port int
    The server's port.
    tsig_key_id str
    The OCID of the TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Number
    The server's port.
    tsigKeyId String
    The OCID of the TSIG key.

    ActionCreateZoneFromZoneFileNameserver, ActionCreateZoneFromZoneFileNameserverArgs

    Hostname string
    The hostname of the nameserver.
    Hostname string
    The hostname of the nameserver.
    hostname String
    The hostname of the nameserver.
    hostname string
    The hostname of the nameserver.
    hostname str
    The hostname of the nameserver.
    hostname String
    The hostname of the nameserver.

    ActionCreateZoneFromZoneFileZoneTransferServer, ActionCreateZoneFromZoneFileZoneTransferServerArgs

    Address string
    The server's IP address (IPv4 or IPv6).
    IsTransferDestination bool
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    IsTransferSource bool
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    Port int
    The server's port.
    Address string
    The server's IP address (IPv4 or IPv6).
    IsTransferDestination bool
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    IsTransferSource bool
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    Port int
    The server's port.
    address String
    The server's IP address (IPv4 or IPv6).
    isTransferDestination Boolean
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    isTransferSource Boolean
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    port Integer
    The server's port.
    address string
    The server's IP address (IPv4 or IPv6).
    isTransferDestination boolean
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    isTransferSource boolean
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    port number
    The server's port.
    address str
    The server's IP address (IPv4 or IPv6).
    is_transfer_destination bool
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    is_transfer_source bool
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    port int
    The server's port.
    address String
    The server's IP address (IPv4 or IPv6).
    isTransferDestination Boolean
    A Boolean flag indicating whether or not the server is a zone data transfer destination.
    isTransferSource Boolean
    A Boolean flag indicating whether or not the server is a zone data transfer source.
    port Number
    The server's port.

    Import

    ActionCreateZoneFromZoneFile can be imported using the id, e.g.

    $ pulumi import oci:Dns/actionCreateZoneFromZoneFile:ActionCreateZoneFromZoneFile test_action_create_zone_from_zone_file "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