GetDnsZone
Use this data source to get the ID of an available OpenStack DNS zone.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var zone1 = Output.Create(OpenStack.Dns.GetDnsZone.InvokeAsync(new OpenStack.Dns.GetDnsZoneArgs
{
Name = "example.com",
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
zone1 = openstack.dns.get_dns_zone(name="example.com")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const zone1 = pulumi.output(openstack.dns.getDnsZone({
name: "example.com",
}, { async: true }));Using GetDnsZone
function getDnsZone(args: GetDnsZoneArgs, opts?: InvokeOptions): Promise<GetDnsZoneResult>function get_dns_zone(attributes=None, created_at=None, description=None, email=None, masters=None, name=None, pool_id=None, project_id=None, region=None, serial=None, status=None, transferred_at=None, ttl=None, type=None, updated_at=None, version=None, opts=None)func GetDnsZone(ctx *Context, args *GetDnsZoneArgs, opts ...InvokeOption) (*GetDnsZoneResult, error)public static class GetDnsZone {
public static Task<GetDnsZoneResult> InvokeAsync(GetDnsZoneArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Attributes Dictionary<string, object>
Attributes of the DNS Service scheduler.
- Created
At string The time the zone was created.
- Description string
A description of the zone.
- Email string
The email contact for the zone record.
- Masters List<string>
An array of master DNS servers. When
typeisSECONDARY.- Name string
The name of the zone.
- Pool
Id string The ID of the pool hosting the zone.
- Project
Id string The project ID that owns the zone.
- Region string
The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the
regionargument of the provider is used.- Serial int
The serial number of the zone.
- Status string
The zone’s status.
- Transferred
At string The time the zone was transferred.
- Ttl int
The time to live (TTL) of the zone.
- Type string
The type of the zone. Can either be
PRIMARYorSECONDARY.- Updated
At string The time the zone was last updated.
- Version int
The version of the zone.
- Attributes map[string]interface{}
Attributes of the DNS Service scheduler.
- Created
At string The time the zone was created.
- Description string
A description of the zone.
- Email string
The email contact for the zone record.
- Masters []string
An array of master DNS servers. When
typeisSECONDARY.- Name string
The name of the zone.
- Pool
Id string The ID of the pool hosting the zone.
- Project
Id string The project ID that owns the zone.
- Region string
The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the
regionargument of the provider is used.- Serial int
The serial number of the zone.
- Status string
The zone’s status.
- Transferred
At string The time the zone was transferred.
- Ttl int
The time to live (TTL) of the zone.
- Type string
The type of the zone. Can either be
PRIMARYorSECONDARY.- Updated
At string The time the zone was last updated.
- Version int
The version of the zone.
- attributes {[key: string]: any}
Attributes of the DNS Service scheduler.
- created
At string The time the zone was created.
- description string
A description of the zone.
- email string
The email contact for the zone record.
- masters string[]
An array of master DNS servers. When
typeisSECONDARY.- name string
The name of the zone.
- pool
Id string The ID of the pool hosting the zone.
- project
Id string The project ID that owns the zone.
- region string
The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the
regionargument of the provider is used.- serial number
The serial number of the zone.
- status string
The zone’s status.
- transferred
At string The time the zone was transferred.
- ttl number
The time to live (TTL) of the zone.
- type string
The type of the zone. Can either be
PRIMARYorSECONDARY.- updated
At string The time the zone was last updated.
- version number
The version of the zone.
- attributes Dict[str, Any]
Attributes of the DNS Service scheduler.
- created_
at str The time the zone was created.
- description str
A description of the zone.
- email str
The email contact for the zone record.
- masters List[str]
An array of master DNS servers. When
typeisSECONDARY.- name str
The name of the zone.
- pool_
id str The ID of the pool hosting the zone.
- project_
id str The project ID that owns the zone.
- region str
The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the
regionargument of the provider is used.- serial float
The serial number of the zone.
- status str
The zone’s status.
- transferred_
at str The time the zone was transferred.
- ttl float
The time to live (TTL) of the zone.
- type str
The type of the zone. Can either be
PRIMARYorSECONDARY.- updated_
at str The time the zone was last updated.
- version float
The version of the zone.
GetDnsZone Result
The following output properties are available:
- Attributes Dictionary<string, object>
Attributes of the DNS Service scheduler.
- Created
At string The time the zone was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Masters List<string>
An array of master DNS servers. When
typeisSECONDARY.- Pool
Id string The ID of the pool hosting the zone.
- Project
Id string The project ID that owns the zone.
- Region string
See Argument Reference above.
- Serial int
The serial number of the zone.
- Transferred
At string The time the zone was transferred.
- Updated
At string The time the zone was last updated.
- Version int
The version of the zone.
- Description string
See Argument Reference above.
- Email string
See Argument Reference above.
- Name string
See Argument Reference above.
- Status string
See Argument Reference above.
- Ttl int
See Argument Reference above.
- Type string
See Argument Reference above.
- Attributes map[string]interface{}
Attributes of the DNS Service scheduler.
- Created
At string The time the zone was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Masters []string
An array of master DNS servers. When
typeisSECONDARY.- Pool
Id string The ID of the pool hosting the zone.
- Project
Id string The project ID that owns the zone.
- Region string
See Argument Reference above.
- Serial int
The serial number of the zone.
- Transferred
At string The time the zone was transferred.
- Updated
At string The time the zone was last updated.
- Version int
The version of the zone.
- Description string
See Argument Reference above.
- Email string
See Argument Reference above.
- Name string
See Argument Reference above.
- Status string
See Argument Reference above.
- Ttl int
See Argument Reference above.
- Type string
See Argument Reference above.
- attributes {[key: string]: any}
Attributes of the DNS Service scheduler.
- created
At string The time the zone was created.
- id string
The provider-assigned unique ID for this managed resource.
- masters string[]
An array of master DNS servers. When
typeisSECONDARY.- pool
Id string The ID of the pool hosting the zone.
- project
Id string The project ID that owns the zone.
- region string
See Argument Reference above.
- serial number
The serial number of the zone.
- transferred
At string The time the zone was transferred.
- updated
At string The time the zone was last updated.
- version number
The version of the zone.
- description string
See Argument Reference above.
- email string
See Argument Reference above.
- name string
See Argument Reference above.
- status string
See Argument Reference above.
- ttl number
See Argument Reference above.
- type string
See Argument Reference above.
- attributes Dict[str, Any]
Attributes of the DNS Service scheduler.
- created_
at str The time the zone was created.
- id str
The provider-assigned unique ID for this managed resource.
- masters List[str]
An array of master DNS servers. When
typeisSECONDARY.- pool_
id str The ID of the pool hosting the zone.
- project_
id str The project ID that owns the zone.
- region str
See Argument Reference above.
- serial float
The serial number of the zone.
- transferred_
at str The time the zone was transferred.
- updated_
at str The time the zone was last updated.
- version float
The version of the zone.
- description str
See Argument Reference above.
- email str
See Argument Reference above.
- name str
See Argument Reference above.
- status str
See Argument Reference above.
- ttl float
See Argument Reference above.
- type str
See Argument Reference above.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.