@pulumi/ns1
Version:
A Pulumi package for creating and managing ns1 cloud resources.
64 lines • 2.21 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getZoneOutput = exports.getZone = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides details about a NS1 Zone. Use this if you would simply like to read
* information from NS1 into your configurations. For read/write operations, you
* should use a resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ns1 from "@pulumi/ns1";
*
* // Get details about a NS1 Zone.
* const example = ns1.getZone({
* zone: "terraform.example.io",
* });
* ```
*/
function getZone(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("ns1:index/getZone:getZone", {
"additionalPorts": args.additionalPorts,
"additionalPrimaries": args.additionalPrimaries,
"primaryNetwork": args.primaryNetwork,
"primaryPort": args.primaryPort,
"zone": args.zone,
}, opts);
}
exports.getZone = getZone;
/**
* Provides details about a NS1 Zone. Use this if you would simply like to read
* information from NS1 into your configurations. For read/write operations, you
* should use a resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ns1 from "@pulumi/ns1";
*
* // Get details about a NS1 Zone.
* const example = ns1.getZone({
* zone: "terraform.example.io",
* });
* ```
*/
function getZoneOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("ns1:index/getZone:getZone", {
"additionalPorts": args.additionalPorts,
"additionalPrimaries": args.additionalPrimaries,
"primaryNetwork": args.primaryNetwork,
"primaryPort": args.primaryPort,
"zone": args.zone,
}, opts);
}
exports.getZoneOutput = getZoneOutput;
//# sourceMappingURL=getZone.js.map