UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

94 lines 3.77 kB
"use strict"; // *** 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.getRecordOutput = exports.getRecord = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The `scaleway.domain.Record` data source is used to get information about an existing domain record. * * Refer to the Domains and DNS [product documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/) and [API documentation](https://www.scaleway.com/en/developers/api/domains-and-dns/) for more information. * * ## Query domain records * * The following commands allow you to: * * - query a domain record specified by the DNS zone (`domain.tld`), the record name (`www`), the record type (`A`), and the record content (`1.2.3.4`). * - query a domain record specified by the DNS zone (`domain.tld`) and the unique record ID (`11111111-1111-1111-1111-111111111111`). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Query record by DNS zone, record name, type and content * const byContent = scaleway.domain.getRecord({ * dnsZone: "domain.tld", * name: "www", * type: "A", * data: "1.2.3.4", * }); * // Query record by DNS zone and record ID * const byId = scaleway.domain.getRecord({ * dnsZone: "domain.tld", * recordId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getRecord(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:domain/getRecord:getRecord", { "data": args.data, "dnsZone": args.dnsZone, "name": args.name, "projectId": args.projectId, "recordId": args.recordId, "type": args.type, }, opts); } exports.getRecord = getRecord; /** * The `scaleway.domain.Record` data source is used to get information about an existing domain record. * * Refer to the Domains and DNS [product documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/) and [API documentation](https://www.scaleway.com/en/developers/api/domains-and-dns/) for more information. * * ## Query domain records * * The following commands allow you to: * * - query a domain record specified by the DNS zone (`domain.tld`), the record name (`www`), the record type (`A`), and the record content (`1.2.3.4`). * - query a domain record specified by the DNS zone (`domain.tld`) and the unique record ID (`11111111-1111-1111-1111-111111111111`). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Query record by DNS zone, record name, type and content * const byContent = scaleway.domain.getRecord({ * dnsZone: "domain.tld", * name: "www", * type: "A", * data: "1.2.3.4", * }); * // Query record by DNS zone and record ID * const byId = scaleway.domain.getRecord({ * dnsZone: "domain.tld", * recordId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getRecordOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:domain/getRecord:getRecord", { "data": args.data, "dnsZone": args.dnsZone, "name": args.name, "projectId": args.projectId, "recordId": args.recordId, "type": args.type, }, opts); } exports.getRecordOutput = getRecordOutput; //# sourceMappingURL=getRecord.js.map