1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. ActionCreateZoneFromZoneFile
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Dns.ActionCreateZoneFromZoneFile

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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.

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

    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, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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, object>
    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]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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]interface{}
    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,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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,Object>
    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]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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]: any}
    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, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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, Any]
    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<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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<Any>
    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, Any]] = None,
            external_downstreams: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileExternalDownstreamArgs]] = None,
            external_masters: Optional[Sequence[_dns.ActionCreateZoneFromZoneFileExternalMasterArgs]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = 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, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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, object>
    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]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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]interface{}
    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,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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,Object>
    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]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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]: any}
    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, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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, Any]
    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<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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<Any>
    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

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi