-
Notifications
You must be signed in to change notification settings - Fork 5
/
getDnsDomainRecord.ts
81 lines (76 loc) · 2.17 KB
/
getDnsDomainRecord.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// *** 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! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
import * as utilities from "./utilities";
export function getDnsDomainRecord(args: GetDnsDomainRecordArgs, opts?: pulumi.InvokeOptions): Promise<GetDnsDomainRecordResult> {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
return pulumi.runtime.invoke("civo:index/getDnsDomainRecord:getDnsDomainRecord", {
"domainId": args.domainId,
"name": args.name,
}, opts);
}
/**
* A collection of arguments for invoking getDnsDomainRecord.
*/
export interface GetDnsDomainRecordArgs {
/**
* The domain id of the record.
*/
readonly domainId: string;
/**
* The name of the record.
*/
readonly name: string;
}
/**
* A collection of values returned by getDnsDomainRecord.
*/
export interface GetDnsDomainRecordResult {
/**
* The id account of the domain.
*/
readonly accountId: string;
/**
* The date when it was created in UTC format
*/
readonly createdAt: string;
/**
* The id of the domain
*/
readonly domainId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The portion before the domain name (e.g. www) or an @ for the apex/root domain (you cannot use an A record with an amex/root domain)
*/
readonly name: string;
/**
* The priority of the record.
*/
readonly priority: number;
/**
* How long caching DNS servers should cache this record.
*/
readonly ttl: number;
/**
* The choice of record type from A, CNAME, MX, SRV or TXT
*/
readonly type: string;
/**
* The date when it was updated in UTC format
*/
readonly updatedAt: string;
/**
* The IP address (A or MX), hostname (CNAME or MX) or text value (TXT) to serve for this record
*/
readonly value: string;
}