@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 5.57 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a record set.
*
* Uses Azure REST API version 2023-07-01-preview.
*
* Other available API versions: 2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-10-01, 2018-03-01-preview, 2018-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dns [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getRecordSet(args: GetRecordSetArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordSetResult>;
export interface GetRecordSetArgs {
/**
* The type of DNS record in this record set.
*/
recordType: string;
/**
* The name of the record set, relative to the name of the zone.
*/
relativeRecordSetName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the DNS zone (without a terminating dot).
*/
zoneName: string;
}
/**
* Describes a DNS record set (a collection of DNS records with the same name and type).
*/
export interface GetRecordSetResult {
/**
* The list of A records in the record set.
*/
readonly aRecords?: outputs.dns.ARecordResponse[];
/**
* The list of AAAA records in the record set.
*/
readonly aaaaRecords?: outputs.dns.AaaaRecordResponse[];
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The list of CAA records in the record set.
*/
readonly caaRecords?: outputs.dns.CaaRecordResponse[];
/**
* The CNAME record in the record set.
*/
readonly cnameRecord?: outputs.dns.CnameRecordResponse;
/**
* The list of DS records in the record set.
*/
readonly dsRecords?: outputs.dns.DsRecordResponse[];
/**
* The etag of the record set.
*/
readonly etag?: string;
/**
* Fully qualified domain name of the record set.
*/
readonly fqdn: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The metadata attached to the record set.
*/
readonly metadata?: {
[key: string]: string;
};
/**
* The list of MX records in the record set.
*/
readonly mxRecords?: outputs.dns.MxRecordResponse[];
/**
* The name of the resource
*/
readonly name: string;
/**
* The list of NAPTR records in the record set.
*/
readonly naptrRecords?: outputs.dns.NaptrRecordResponse[];
/**
* The list of NS records in the record set.
*/
readonly nsRecords?: outputs.dns.NsRecordResponse[];
/**
* provisioning State of the record set.
*/
readonly provisioningState: string;
/**
* The list of PTR records in the record set.
*/
readonly ptrRecords?: outputs.dns.PtrRecordResponse[];
/**
* The SOA record in the record set.
*/
readonly soaRecord?: outputs.dns.SoaRecordResponse;
/**
* The list of SRV records in the record set.
*/
readonly srvRecords?: outputs.dns.SrvRecordResponse[];
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.dns.SystemDataResponse;
/**
* A reference to an azure resource from where the dns resource value is taken.
*/
readonly targetResource?: outputs.dns.SubResourceResponse;
/**
* The list of TLSA records in the record set.
*/
readonly tlsaRecords?: outputs.dns.TlsaRecordResponse[];
/**
* A reference to an azure traffic manager profile resource from where the dns resource value is taken.
*/
readonly trafficManagementProfile?: outputs.dns.SubResourceResponse;
/**
* The TTL (time-to-live) of the records in the record set.
*/
readonly ttl?: number;
/**
* The list of TXT records in the record set.
*/
readonly txtRecords?: outputs.dns.TxtRecordResponse[];
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets a record set.
*
* Uses Azure REST API version 2023-07-01-preview.
*
* Other available API versions: 2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-10-01, 2018-03-01-preview, 2018-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dns [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getRecordSetOutput(args: GetRecordSetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRecordSetResult>;
export interface GetRecordSetOutputArgs {
/**
* The type of DNS record in this record set.
*/
recordType: pulumi.Input<string>;
/**
* The name of the record set, relative to the name of the zone.
*/
relativeRecordSetName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the DNS zone (without a terminating dot).
*/
zoneName: pulumi.Input<string>;
}