@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
70 lines • 2.45 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.getDomainRecordOutput = exports.getDomainRecord = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about a Linode Domain Record.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain-record).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Domain Record.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myRecord = linode.getDomainRecord({
* id: 14950401,
* domainId: 3150401,
* });
* const myWwwRecord = linode.getDomainRecord({
* name: "www",
* domainId: 3150401,
* });
* ```
*/
function getDomainRecord(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getDomainRecord:getDomainRecord", {
"domainId": args.domainId,
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDomainRecord = getDomainRecord;
/**
* Provides information about a Linode Domain Record.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain-record).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Domain Record.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myRecord = linode.getDomainRecord({
* id: 14950401,
* domainId: 3150401,
* });
* const myWwwRecord = linode.getDomainRecord({
* name: "www",
* domainId: 3150401,
* });
* ```
*/
function getDomainRecordOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getDomainRecord:getDomainRecord", {
"domainId": args.domainId,
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDomainRecordOutput = getDomainRecordOutput;
//# sourceMappingURL=getDomainRecord.js.map
;