1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. getZones
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Dns.getZones

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Zones in Oracle Cloud Infrastructure DNS service.

    Gets a list of all zones in the specified compartment. The collection can be filtered by name, time created, scope, associated view, and zone type. Additionally, for Private DNS, the scope query parameter is required when listing private zones.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testZones = oci.Dns.getZones({
        compartmentId: compartmentId,
        name: zoneName,
        nameContains: zoneNameContains,
        scope: zoneScope,
        state: zoneState,
        timeCreatedGreaterThanOrEqualTo: zoneTimeCreatedGreaterThanOrEqualTo,
        timeCreatedLessThan: zoneTimeCreatedLessThan,
        tsigKeyId: testTsigKey.id,
        viewId: testView.id,
        zoneType: zoneZoneType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_zones = oci.Dns.get_zones(compartment_id=compartment_id,
        name=zone_name,
        name_contains=zone_name_contains,
        scope=zone_scope,
        state=zone_state,
        time_created_greater_than_or_equal_to=zone_time_created_greater_than_or_equal_to,
        time_created_less_than=zone_time_created_less_than,
        tsig_key_id=test_tsig_key["id"],
        view_id=test_view["id"],
        zone_type=zone_zone_type)
    
    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.GetZones(ctx, &dns.GetZonesArgs{
    			CompartmentId:                   compartmentId,
    			Name:                            pulumi.StringRef(zoneName),
    			NameContains:                    pulumi.StringRef(zoneNameContains),
    			Scope:                           pulumi.StringRef(zoneScope),
    			State:                           pulumi.StringRef(zoneState),
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(zoneTimeCreatedGreaterThanOrEqualTo),
    			TimeCreatedLessThan:             pulumi.StringRef(zoneTimeCreatedLessThan),
    			TsigKeyId:                       pulumi.StringRef(testTsigKey.Id),
    			ViewId:                          pulumi.StringRef(testView.Id),
    			ZoneType:                        pulumi.StringRef(zoneZoneType),
    		}, nil)
    		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 testZones = Oci.Dns.GetZones.Invoke(new()
        {
            CompartmentId = compartmentId,
            Name = zoneName,
            NameContains = zoneNameContains,
            Scope = zoneScope,
            State = zoneState,
            TimeCreatedGreaterThanOrEqualTo = zoneTimeCreatedGreaterThanOrEqualTo,
            TimeCreatedLessThan = zoneTimeCreatedLessThan,
            TsigKeyId = testTsigKey.Id,
            ViewId = testView.Id,
            ZoneType = zoneZoneType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Dns.DnsFunctions;
    import com.pulumi.oci.Dns.inputs.GetZonesArgs;
    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) {
            final var testZones = DnsFunctions.getZones(GetZonesArgs.builder()
                .compartmentId(compartmentId)
                .name(zoneName)
                .nameContains(zoneNameContains)
                .scope(zoneScope)
                .state(zoneState)
                .timeCreatedGreaterThanOrEqualTo(zoneTimeCreatedGreaterThanOrEqualTo)
                .timeCreatedLessThan(zoneTimeCreatedLessThan)
                .tsigKeyId(testTsigKey.id())
                .viewId(testView.id())
                .zoneType(zoneZoneType)
                .build());
    
        }
    }
    
    variables:
      testZones:
        fn::invoke:
          Function: oci:Dns:getZones
          Arguments:
            compartmentId: ${compartmentId}
            name: ${zoneName}
            nameContains: ${zoneNameContains}
            scope: ${zoneScope}
            state: ${zoneState}
            timeCreatedGreaterThanOrEqualTo: ${zoneTimeCreatedGreaterThanOrEqualTo}
            timeCreatedLessThan: ${zoneTimeCreatedLessThan}
            tsigKeyId: ${testTsigKey.id}
            viewId: ${testView.id}
            zoneType: ${zoneZoneType}
    

    Using getZones

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
    function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>
    def get_zones(compartment_id: Optional[str] = None,
                  filters: Optional[Sequence[_dns.GetZonesFilter]] = None,
                  name: Optional[str] = None,
                  name_contains: Optional[str] = None,
                  scope: Optional[str] = None,
                  sort_by: Optional[str] = None,
                  sort_order: Optional[str] = None,
                  state: Optional[str] = None,
                  time_created_greater_than_or_equal_to: Optional[str] = None,
                  time_created_less_than: Optional[str] = None,
                  tsig_key_id: Optional[str] = None,
                  view_id: Optional[str] = None,
                  zone_type: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetZonesResult
    def get_zones_output(compartment_id: Optional[pulumi.Input[str]] = None,
                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dns.GetZonesFilterArgs]]]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  name_contains: Optional[pulumi.Input[str]] = None,
                  scope: Optional[pulumi.Input[str]] = None,
                  sort_by: Optional[pulumi.Input[str]] = None,
                  sort_order: Optional[pulumi.Input[str]] = None,
                  state: Optional[pulumi.Input[str]] = None,
                  time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                  time_created_less_than: Optional[pulumi.Input[str]] = None,
                  tsig_key_id: Optional[pulumi.Input[str]] = None,
                  view_id: Optional[pulumi.Input[str]] = None,
                  zone_type: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
    func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
    func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput

    > Note: This function is named GetZones in the Go SDK.

    public static class GetZones 
    {
        public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
        public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Dns/getZones:getZones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment the resource belongs to.
    Filters List<GetZonesFilter>
    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    NameContains string
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    SortBy string
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    SortOrder string
    The order to sort the resources. Allowed values are: ASC|DESC
    State string
    The state of a resource.
    TimeCreatedGreaterThanOrEqualTo string
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    TimeCreatedLessThan string
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    ViewId string
    The OCID of the view the resource is associated with.
    ZoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    CompartmentId string
    The OCID of the compartment the resource belongs to.
    Filters []GetZonesFilter
    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    NameContains string
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    SortBy string
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    SortOrder string
    The order to sort the resources. Allowed values are: ASC|DESC
    State string
    The state of a resource.
    TimeCreatedGreaterThanOrEqualTo string
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    TimeCreatedLessThan string
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    ViewId string
    The OCID of the view the resource is associated with.
    ZoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    filters List<GetZonesFilter>
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameContains String
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    scope String
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    sortBy String
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    sortOrder String
    The order to sort the resources. Allowed values are: ASC|DESC
    state String
    The state of a resource.
    timeCreatedGreaterThanOrEqualTo String
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    timeCreatedLessThan String
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.
    viewId String
    The OCID of the view the resource is associated with.
    zoneType String
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId string
    The OCID of the compartment the resource belongs to.
    filters GetZonesFilter[]
    name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameContains string
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    sortBy string
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    sortOrder string
    The order to sort the resources. Allowed values are: ASC|DESC
    state string
    The state of a resource.
    timeCreatedGreaterThanOrEqualTo string
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    timeCreatedLessThan string
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    tsigKeyId string
    Search for zones that are associated with a TSIG key.
    viewId string
    The OCID of the view the resource is associated with.
    zoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartment_id str
    The OCID of the compartment the resource belongs to.
    filters Sequence[dns.GetZonesFilter]
    name str
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    name_contains str
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    scope str
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    sort_by str
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    sort_order str
    The order to sort the resources. Allowed values are: ASC|DESC
    state str
    The state of a resource.
    time_created_greater_than_or_equal_to str
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    time_created_less_than str
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    tsig_key_id str
    Search for zones that are associated with a TSIG key.
    view_id str
    The OCID of the view the resource is associated with.
    zone_type str
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    filters List<Property Map>
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameContains String
    Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value.
    scope String
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    sortBy String
    The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
    sortOrder String
    The order to sort the resources. Allowed values are: ASC|DESC
    state String
    The state of a resource.
    timeCreatedGreaterThanOrEqualTo String
    An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
    timeCreatedLessThan String
    An RFC 3339 timestamp that states all returned resources were created before the indicated time.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.
    viewId String
    The OCID of the view the resource is associated with.
    zoneType String
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.

    getZones Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    Zones List<GetZonesZone>
    The list of zones.
    Filters List<GetZonesFilter>
    Name string
    The name of the zone.
    NameContains string
    Scope string
    The scope of the zone.
    SortBy string
    SortOrder string
    State string
    The current state of the zone resource.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    TsigKeyId string
    The OCID of the TSIG key.
    ViewId string
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    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 containing the zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    Zones []GetZonesZone
    The list of zones.
    Filters []GetZonesFilter
    Name string
    The name of the zone.
    NameContains string
    Scope string
    The scope of the zone.
    SortBy string
    SortOrder string
    State string
    The current state of the zone resource.
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    TsigKeyId string
    The OCID of the TSIG key.
    ViewId string
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    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 containing the zone.
    id String
    The provider-assigned unique ID for this managed resource.
    zones List<GetZonesZone>
    The list of zones.
    filters List<GetZonesFilter>
    name String
    The name of the zone.
    nameContains String
    scope String
    The scope of the zone.
    sortBy String
    sortOrder String
    state String
    The current state of the zone resource.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    tsigKeyId String
    The OCID of the TSIG key.
    viewId String
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    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 containing the zone.
    id string
    The provider-assigned unique ID for this managed resource.
    zones GetZonesZone[]
    The list of zones.
    filters GetZonesFilter[]
    name string
    The name of the zone.
    nameContains string
    scope string
    The scope of the zone.
    sortBy string
    sortOrder string
    state string
    The current state of the zone resource.
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    tsigKeyId string
    The OCID of the TSIG key.
    viewId string
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    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 containing the zone.
    id str
    The provider-assigned unique ID for this managed resource.
    zones Sequence[dns.GetZonesZone]
    The list of zones.
    filters Sequence[dns.GetZonesFilter]
    name str
    The name of the zone.
    name_contains str
    scope str
    The scope of the zone.
    sort_by str
    sort_order str
    state str
    The current state of the zone resource.
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    tsig_key_id str
    The OCID of the TSIG key.
    view_id str
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    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 containing the zone.
    id String
    The provider-assigned unique ID for this managed resource.
    zones List<Property Map>
    The list of zones.
    filters List<Property Map>
    name String
    The name of the zone.
    nameContains String
    scope String
    The scope of the zone.
    sortBy String
    sortOrder String
    state String
    The current state of the zone resource.
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    tsigKeyId String
    The OCID of the TSIG key.
    viewId String
    The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.
    zoneType String
    The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.

    Supporting Types

    GetZonesFilter

    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    Values List<string>
    Regex bool
    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    Values []string
    Regex bool
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    values List<String>
    regex Boolean
    name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    values string[]
    regex boolean
    name str
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    values Sequence[str]
    regex bool
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    values List<String>
    regex Boolean

    GetZonesZone

    CompartmentId string
    The OCID of the compartment the resource belongs to.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    ExternalDownstreams List<GetZonesZoneExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters List<GetZonesZoneExternalMaster>
    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 OCID of the zone.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    Nameservers List<GetZonesZoneNameserver>
    The authoritative nameservers for the zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    Self string
    The canonical absolute URL of the resource.
    Serial int
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The state of a 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.
    ZoneTransferServers List<GetZonesZoneZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    CompartmentId string
    The OCID of the compartment the resource belongs to.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    ExternalDownstreams []GetZonesZoneExternalDownstream
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    ExternalMasters []GetZonesZoneExternalMaster
    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 OCID of the zone.
    IsProtected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    Name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    Nameservers []GetZonesZoneNameserver
    The authoritative nameservers for the zone.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    Self string
    The canonical absolute URL of the resource.
    Serial int
    The current serial of the zone. As seen in the zone's SOA record.
    State string
    The state of a 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.
    ZoneTransferServers []GetZonesZoneZoneTransferServer
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    ZoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    externalDownstreams List<GetZonesZoneExternalDownstream>
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters List<GetZonesZoneExternalMaster>
    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 OCID of the zone.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameservers List<GetZonesZoneNameserver>
    The authoritative nameservers for the zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    self String
    The canonical absolute URL of the resource.
    serial Integer
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The state of a 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.
    zoneTransferServers List<GetZonesZoneZoneTransferServer>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId string
    The OCID of the compartment the resource belongs to.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    externalDownstreams GetZonesZoneExternalDownstream[]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    externalMasters GetZonesZoneExternalMaster[]
    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 OCID of the zone.
    isProtected boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name string
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameservers GetZonesZoneNameserver[]
    The authoritative nameservers for the zone.
    scope string
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    self string
    The canonical absolute URL of the resource.
    serial number
    The current serial of the zone. As seen in the zone's SOA record.
    state string
    The state of a 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.
    zoneTransferServers GetZonesZoneZoneTransferServer[]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType string
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartment_id str
    The OCID of the compartment the resource belongs to.
    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.
    external_downstreams Sequence[dns.GetZonesZoneExternalDownstream]
    External secondary servers for the zone. This field is currently not supported when zoneType is SECONDARY or scope is PRIVATE.
    external_masters Sequence[dns.GetZonesZoneExternalMaster]
    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 OCID of the zone.
    is_protected bool
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name str
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameservers Sequence[dns.GetZonesZoneNameserver]
    The authoritative nameservers for the zone.
    scope str
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    self str
    The canonical absolute URL of the resource.
    serial int
    The current serial of the zone. As seen in the zone's SOA record.
    state str
    The state of a 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.
    zone_transfer_servers Sequence[dns.GetZonesZoneZoneTransferServer]
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zone_type str
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.
    compartmentId String
    The OCID of the compartment the resource belongs to.
    definedTags Map<String>
    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<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 OCID of the zone.
    isProtected Boolean
    A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
    name String
    A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
    nameservers List<Property Map>
    The authoritative nameservers for the zone.
    scope String
    Specifies to operate only on resources that have a matching DNS scope. This value will be null for zones in the global DNS and PRIVATE when listing private zones.
    self String
    The canonical absolute URL of the resource.
    serial Number
    The current serial of the zone. As seen in the zone's SOA record.
    state String
    The state of a 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.
    zoneTransferServers List<Property Map>
    The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers.
    zoneType String
    Search by zone type, PRIMARY or SECONDARY. Will match any zone whose type equals the provided value.

    GetZonesZoneExternalDownstream

    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Integer
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.
    address string
    The server's IP address (IPv4 or IPv6).
    port number
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId string
    Search for zones that are associated with a TSIG key.
    address str
    The server's IP address (IPv4 or IPv6).
    port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsig_key_id str
    Search for zones that are associated with a TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Number
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.

    GetZonesZoneExternalMaster

    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    Address string
    The server's IP address (IPv4 or IPv6).
    Port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    TsigKeyId string
    Search for zones that are associated with a TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Integer
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.
    address string
    The server's IP address (IPv4 or IPv6).
    port number
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId string
    Search for zones that are associated with a TSIG key.
    address str
    The server's IP address (IPv4 or IPv6).
    port int
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsig_key_id str
    Search for zones that are associated with a TSIG key.
    address String
    The server's IP address (IPv4 or IPv6).
    port Number
    The server's port. Port value must be a value of 53, otherwise omit the port value.
    tsigKeyId String
    Search for zones that are associated with a TSIG key.

    GetZonesZoneNameserver

    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.

    GetZonesZoneZoneTransferServer

    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. Port value must be a value of 53, otherwise omit the port value.
    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. Port value must be a value of 53, otherwise omit the port value.
    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. Port value must be a value of 53, otherwise omit the port value.
    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. Port value must be a value of 53, otherwise omit the port value.
    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. Port value must be a value of 53, otherwise omit the port value.
    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. Port value must be a value of 53, otherwise omit the port value.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi