import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * **Deprecated. Use oci.Dns.getRrsets instead.** * * This data source provides the list of Records in Oracle Cloud Infrastructure DNS service. * * Gets all records in the specified zone. * * The results are sorted by `domain` in alphabetical order by default. For more information about records, * see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). * When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter * then the viewId query parameter is required. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRecords = oci.dns.getRecords({ * zoneNameOrId: testZoneNameOr.id, * domain: recordDomain, * domainContains: recordDomainContains, * rtype: recordRtype, * zoneVersion: recordZoneVersion, * }); * ``` */ export declare function getRecords(args: GetRecordsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRecords. */ export interface GetRecordsArgs { /** * The OCID of the compartment the zone belongs to. * * This parameter is deprecated and should be omitted. */ compartmentId?: string; /** * Search by domain. Will match any record whose domain (case-insensitive) equals the provided value. */ domain?: string; /** * Search by domain. Will match any record whose domain (case-insensitive) contains the provided value. */ domainContains?: string; filters?: inputs.Dns.GetRecordsFilter[]; /** * Search by record type. Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value. */ rtype?: string; /** * The field by which to sort records. Allowed values are: domain|rtype|ttl */ sortBy?: string; /** * The order to sort the resources. Allowed values are: ASC|DESC */ sortOrder?: string; /** * The name or OCID of the target zone. * * @deprecated The 'oci_dns_records' resource has been deprecated. Please use 'oci_dns_rrsets' instead. */ zoneNameOrId: string; /** * The version of the zone for which data is requested. */ zoneVersion?: string; } /** * A collection of values returned by getRecords. */ export interface GetRecordsResult { readonly compartmentId?: string; /** * The fully qualified domain name where the record can be located. */ readonly domain?: string; readonly domainContains?: string; readonly filters?: outputs.Dns.GetRecordsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of records. */ readonly records: outputs.Dns.GetRecordsRecord[]; /** * The type of DNS record, such as A or CNAME. For more information, see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). */ readonly rtype?: string; readonly sortBy?: string; readonly sortOrder?: string; /** * The name or OCID of the target zone. * * @deprecated The 'oci_dns_records' resource has been deprecated. Please use 'oci_dns_rrsets' instead. */ readonly zoneNameOrId: string; readonly zoneVersion?: string; } /** * **Deprecated. Use oci.Dns.getRrsets instead.** * * This data source provides the list of Records in Oracle Cloud Infrastructure DNS service. * * Gets all records in the specified zone. * * The results are sorted by `domain` in alphabetical order by default. For more information about records, * see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). * When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter * then the viewId query parameter is required. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRecords = oci.dns.getRecords({ * zoneNameOrId: testZoneNameOr.id, * domain: recordDomain, * domainContains: recordDomainContains, * rtype: recordRtype, * zoneVersion: recordZoneVersion, * }); * ``` */ export declare function getRecordsOutput(args: GetRecordsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRecords. */ export interface GetRecordsOutputArgs { /** * The OCID of the compartment the zone belongs to. * * This parameter is deprecated and should be omitted. */ compartmentId?: pulumi.Input; /** * Search by domain. Will match any record whose domain (case-insensitive) equals the provided value. */ domain?: pulumi.Input; /** * Search by domain. Will match any record whose domain (case-insensitive) contains the provided value. */ domainContains?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Search by record type. Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value. */ rtype?: pulumi.Input; /** * The field by which to sort records. Allowed values are: domain|rtype|ttl */ sortBy?: pulumi.Input; /** * The order to sort the resources. Allowed values are: ASC|DESC */ sortOrder?: pulumi.Input; /** * The name or OCID of the target zone. * * @deprecated The 'oci_dns_records' resource has been deprecated. Please use 'oci_dns_rrsets' instead. */ zoneNameOrId: pulumi.Input; /** * The version of the zone for which data is requested. */ zoneVersion?: pulumi.Input; } //# sourceMappingURL=getRecords.d.ts.map