@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
84 lines • 2.72 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDnsZoneOutput = exports.getDnsZone = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an available OpenStack DNS zone.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const zone1 = openstack.dns.getDnsZone({
* name: "example.com",
* });
* ```
*/
function getDnsZone(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:dns/getDnsZone:getDnsZone", {
"allProjects": args.allProjects,
"attributes": args.attributes,
"createdAt": args.createdAt,
"description": args.description,
"email": args.email,
"masters": args.masters,
"name": args.name,
"poolId": args.poolId,
"projectId": args.projectId,
"region": args.region,
"serial": args.serial,
"status": args.status,
"transferredAt": args.transferredAt,
"ttl": args.ttl,
"type": args.type,
"updatedAt": args.updatedAt,
"version": args.version,
}, opts);
}
exports.getDnsZone = getDnsZone;
/**
* Use this data source to get the ID of an available OpenStack DNS zone.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const zone1 = openstack.dns.getDnsZone({
* name: "example.com",
* });
* ```
*/
function getDnsZoneOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:dns/getDnsZone:getDnsZone", {
"allProjects": args.allProjects,
"attributes": args.attributes,
"createdAt": args.createdAt,
"description": args.description,
"email": args.email,
"masters": args.masters,
"name": args.name,
"poolId": args.poolId,
"projectId": args.projectId,
"region": args.region,
"serial": args.serial,
"status": args.status,
"transferredAt": args.transferredAt,
"ttl": args.ttl,
"type": args.type,
"updatedAt": args.updatedAt,
"version": args.version,
}, opts);
}
exports.getDnsZoneOutput = getDnsZoneOutput;
//# sourceMappingURL=getDnsZone.js.map