oci.Dns.getZones
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testZones = Oci.Dns.GetZones.Invoke(new()
{
CompartmentId = @var.Compartment_id,
Name = @var.Zone_name,
NameContains = @var.Zone_name_contains,
Scope = @var.Zone_scope,
State = @var.Zone_state,
TimeCreatedGreaterThanOrEqualTo = @var.Zone_time_created_greater_than_or_equal_to,
TimeCreatedLessThan = @var.Zone_time_created_less_than,
TsigKeyId = oci_dns_tsig_key.Test_tsig_key.Id,
ViewId = oci_dns_view.Test_view.Id,
ZoneType = @var.Zone_zone_type,
});
});
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.GetZones(ctx, &dns.GetZonesArgs{
CompartmentId: _var.Compartment_id,
Name: pulumi.StringRef(_var.Zone_name),
NameContains: pulumi.StringRef(_var.Zone_name_contains),
Scope: pulumi.StringRef(_var.Zone_scope),
State: pulumi.StringRef(_var.Zone_state),
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(_var.Zone_time_created_greater_than_or_equal_to),
TimeCreatedLessThan: pulumi.StringRef(_var.Zone_time_created_less_than),
TsigKeyId: pulumi.StringRef(oci_dns_tsig_key.Test_tsig_key.Id),
ViewId: pulumi.StringRef(oci_dns_view.Test_view.Id),
ZoneType: pulumi.StringRef(_var.Zone_zone_type),
}, nil)
if err != nil {
return err
}
return nil
})
}
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(var_.compartment_id())
.name(var_.zone_name())
.nameContains(var_.zone_name_contains())
.scope(var_.zone_scope())
.state(var_.zone_state())
.timeCreatedGreaterThanOrEqualTo(var_.zone_time_created_greater_than_or_equal_to())
.timeCreatedLessThan(var_.zone_time_created_less_than())
.tsigKeyId(oci_dns_tsig_key.test_tsig_key().id())
.viewId(oci_dns_view.test_view().id())
.zoneType(var_.zone_zone_type())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_zones = oci.Dns.get_zones(compartment_id=var["compartment_id"],
name=var["zone_name"],
name_contains=var["zone_name_contains"],
scope=var["zone_scope"],
state=var["zone_state"],
time_created_greater_than_or_equal_to=var["zone_time_created_greater_than_or_equal_to"],
time_created_less_than=var["zone_time_created_less_than"],
tsig_key_id=oci_dns_tsig_key["test_tsig_key"]["id"],
view_id=oci_dns_view["test_view"]["id"],
zone_type=var["zone_zone_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testZones = oci.Dns.getZones({
compartmentId: _var.compartment_id,
name: _var.zone_name,
nameContains: _var.zone_name_contains,
scope: _var.zone_scope,
state: _var.zone_state,
timeCreatedGreaterThanOrEqualTo: _var.zone_time_created_greater_than_or_equal_to,
timeCreatedLessThan: _var.zone_time_created_less_than,
tsigKeyId: oci_dns_tsig_key.test_tsig_key.id,
viewId: oci_dns_view.test_view.id,
zoneType: _var.zone_zone_type,
});
variables:
testZones:
fn::invoke:
Function: oci:Dns:getZones
Arguments:
compartmentId: ${var.compartment_id}
name: ${var.zone_name}
nameContains: ${var.zone_name_contains}
scope: ${var.zone_scope}
state: ${var.zone_state}
timeCreatedGreaterThanOrEqualTo: ${var.zone_time_created_greater_than_or_equal_to}
timeCreatedLessThan: ${var.zone_time_created_less_than}
tsigKeyId: ${oci_dns_tsig_key.test_tsig_key.id}
viewId: ${oci_dns_view.test_view.id}
zoneType: ${var.zone_zone_type}
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:
- Compartment
Id string The OCID of the compartment the resource belongs to.
- Filters
List<Get
Zones Filter> - Name string
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- Name
Contains 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.- Sort
By string The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
- Sort
Order string The order to sort the resources. Allowed values are: ASC|DESC
- State string
The state of a resource.
- Time
Created stringGreater Than Or Equal To An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- Time
Created stringLess Than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- Tsig
Key stringId Search for zones that are associated with a TSIG key.
- View
Id string The OCID of the view the resource is associated with.
- Zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- Compartment
Id string The OCID of the compartment the resource belongs to.
- Filters
[]Get
Zones Filter - Name string
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- Name
Contains 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.- Sort
By string The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
- Sort
Order string The order to sort the resources. Allowed values are: ASC|DESC
- State string
The state of a resource.
- Time
Created stringGreater Than Or Equal To An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- Time
Created stringLess Than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- Tsig
Key stringId Search for zones that are associated with a TSIG key.
- View
Id string The OCID of the view the resource is associated with.
- Zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id String The OCID of the compartment the resource belongs to.
- filters
List<Get
Zones Filter> - name String
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- name
Contains 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.- sort
By String The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
- sort
Order String The order to sort the resources. Allowed values are: ASC|DESC
- state String
The state of a resource.
- time
Created StringGreater Than Or Equal To An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created StringLess Than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- tsig
Key StringId Search for zones that are associated with a TSIG key.
- view
Id String The OCID of the view the resource is associated with.
- zone
Type String Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id string The OCID of the compartment the resource belongs to.
- filters
Get
Zones Filter[] - name string
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- name
Contains 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.- sort
By string The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
- sort
Order string The order to sort the resources. Allowed values are: ASC|DESC
- state string
The state of a resource.
- time
Created stringGreater Than Or Equal To An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created stringLess Than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- tsig
Key stringId Search for zones that are associated with a TSIG key.
- view
Id string The OCID of the view the resource is associated with.
- zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment_
id str The OCID of the compartment the resource belongs to.
- filters
Get
Zones Filter] - 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_ strgreater_ than_ or_ equal_ to An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time_
created_ strless_ than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- tsig_
key_ strid 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
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id 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.
- name
Contains 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.- sort
By String The field by which to sort zones. Allowed values are: name|zoneType|timeCreated
- sort
Order String The order to sort the resources. Allowed values are: ASC|DESC
- state String
The state of a resource.
- time
Created StringGreater Than Or Equal To An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created StringLess Than An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- tsig
Key StringId Search for zones that are associated with a TSIG key.
- view
Id String The OCID of the view the resource is associated with.
- zone
Type String Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
getZones Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing the zone.
- Id string
The provider-assigned unique ID for this managed resource.
- Zones
List<Get
Zones Zone> The list of zones.
- Filters
List<Get
Zones Filter> - Name string
The name of the zone.
- Name
Contains string - Scope string
The scope of the zone.
- Sort
By string - Sort
Order string - State string
The current state of the zone resource.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Tsig
Key stringId The OCID of the TSIG key.
- View
Id 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.
- Zone
Type string The type of the zone. Must be either
PRIMARY
orSECONDARY
.SECONDARY
is only supported for GLOBAL zones.
- Compartment
Id string The OCID of the compartment containing the zone.
- Id string
The provider-assigned unique ID for this managed resource.
- Zones
[]Get
Zones Zone The list of zones.
- Filters
[]Get
Zones Filter - Name string
The name of the zone.
- Name
Contains string - Scope string
The scope of the zone.
- Sort
By string - Sort
Order string - State string
The current state of the zone resource.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Tsig
Key stringId The OCID of the TSIG key.
- View
Id 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.
- Zone
Type string The type of the zone. Must be either
PRIMARY
orSECONDARY
.SECONDARY
is only supported for GLOBAL zones.
- compartment
Id String The OCID of the compartment containing the zone.
- id String
The provider-assigned unique ID for this managed resource.
- zones
List<Get
Zones Zone> The list of zones.
- filters
List<Get
Zones Filter> - name String
The name of the zone.
- name
Contains String - scope String
The scope of the zone.
- sort
By String - sort
Order String - state String
The current state of the zone resource.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - tsig
Key StringId The OCID of the TSIG key.
- view
Id 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.
- zone
Type String The type of the zone. Must be either
PRIMARY
orSECONDARY
.SECONDARY
is only supported for GLOBAL zones.
- compartment
Id string The OCID of the compartment containing the zone.
- id string
The provider-assigned unique ID for this managed resource.
- zones
Get
Zones Zone[] The list of zones.
- filters
Get
Zones Filter[] - name string
The name of the zone.
- name
Contains string - scope string
The scope of the zone.
- sort
By string - sort
Order string - state string
The current state of the zone resource.
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than - tsig
Key stringId The OCID of the TSIG key.
- view
Id 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.
- zone
Type string The type of the zone. Must be either
PRIMARY
orSECONDARY
.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
Get
Zones Zone] The list of zones.
- filters
Get
Zones Filter] - 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_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than - tsig_
key_ strid 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
orSECONDARY
.SECONDARY
is only supported for GLOBAL zones.
- compartment
Id 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.
- name
Contains String - scope String
The scope of the zone.
- sort
By String - sort
Order String - state String
The current state of the zone resource.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - tsig
Key StringId The OCID of the TSIG key.
- view
Id 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.
- zone
Type String The type of the zone. Must be either
PRIMARY
orSECONDARY
.SECONDARY
is only supported for GLOBAL zones.
Supporting Types
GetZonesFilter
GetZonesZone
- Compartment
Id string The OCID of the compartment the resource belongs to.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- External
Masters List<GetZones Zone External Master> External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- 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 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 string
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- Nameservers
List<Get
Zones Zone Nameserver> 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.
- Time
Created 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.
- View
Id string The OCID of the view the resource is associated with.
- Zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- Compartment
Id string The OCID of the compartment the resource belongs to.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- External
Masters []GetZones Zone External Master External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- 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 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 string
A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value.
- Nameservers
[]Get
Zones Zone Nameserver 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.
- Time
Created 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.
- View
Id string The OCID of the view the resource is associated with.
- Zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id String The OCID of the compartment the resource belongs to.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- external
Masters List<GetZones Zone External Master> External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- 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 OCID of the zone.
- is
Protected 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<Get
Zones Zone Nameserver> 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.
- time
Created 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.
- view
Id String The OCID of the view the resource is associated with.
- zone
Type String Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id string The OCID of the compartment the resource belongs to.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- external
Masters GetZones Zone External Master[] External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- {[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 OCID of the zone.
- is
Protected 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
Get
Zones Zone Nameserver[] 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.
- time
Created 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.
- view
Id string The OCID of the view the resource is associated with.
- zone
Type string Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment_
id str The OCID of the compartment the resource belongs to.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- external_
masters GetZones Zone External Master] External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- 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 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
Get
Zones Zone Nameserver] 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_
type str Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
- compartment
Id String The OCID of the compartment the resource belongs to.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- external
Masters List<Property Map> External master servers for the zone.
externalMasters
becomes a required parameter when thezoneType
value isSECONDARY
.- 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 OCID of the zone.
- is
Protected 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.
- time
Created 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.
- view
Id String The OCID of the view the resource is associated with.
- zone
Type String Search by zone type,
PRIMARY
orSECONDARY
. Will match any zone whose type equals the provided value.
GetZonesZoneExternalMaster
- 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_ strid 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.