getAlidnsRecords

This data source provides a list of Alidns Domain Records in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.86.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DnsFunctions;
import com.pulumi.alicloud.dns.inputs.GetAlidnsRecordsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var recordsDs = DnsFunctions.getAlidnsRecords(GetAlidnsRecordsArgs.builder()
.domainName("xiaozhu.top")
.ids("1978593525779****")
.outputFile("records.txt")
.type("A")
.build());
ctx.export("firstRecordId", recordsDs.applyValue(getAlidnsRecordsResult -> getAlidnsRecordsResult.records()[0].recordId()));
}
}

Return

A collection of values returned by getAlidnsRecords.

Parameters

argument

A collection of arguments for invoking getAlidnsRecords.


suspend fun getAlidnsRecords(direction: String? = null, domainName: String, groupId: Int? = null, ids: List<String>? = null, keyWord: String? = null, lang: String? = null, line: String? = null, orderBy: String? = null, outputFile: String? = null, rrKeyWord: String? = null, rrRegex: String? = null, searchMode: String? = null, status: String? = null, type: String? = null, typeKeyWord: String? = null, valueKeyWord: String? = null, valueRegex: String? = null): GetAlidnsRecordsResult

Return

A collection of values returned by getAlidnsRecords.

See also

Parameters

direction

Sorting direction. Valid values: DESC,ASC. Default to AESC.

domainName

The domain name associated to the records.

groupId

Domain name group ID.

ids

A list of record IDs.

keyWord

Keywords.

lang

User language.

line

ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc

orderBy

Sort by. Sort from newest to oldest according to the time added by resolution.

outputFile

File name where to save data source results (after running pulumi preview).

rrKeyWord

The keywords recorded by the host are searched according to the %RRKeyWord% mode, and are not case sensitive.

rrRegex

Host record regex.

searchMode

Search mode, Valid values: LIKE, EXACT, ADVANCED, LIKE (fuzzy), EXACT (accurate) search supports KeyWord field, ADVANCED (advanced) mode supports other fields.

status

Record status. Valid values: ENABLE and DISABLE.

type

Record type. Valid values: A, NS, MX, TXT, CNAME, SRV, AAAA, REDIRECT_URL, FORWORD_URL .

typeKeyWord

Analyze type keywords, search by full match, not case sensitive.

valueKeyWord

The keywords of the recorded value are searched according to the %ValueKeyWord% mode, and are not case sensitive.

valueRegex

Host record value regex.


Return

A collection of values returned by getAlidnsRecords.

See also

Parameters

argument

Builder for com.pulumi.alicloud.dns.kotlin.inputs.GetAlidnsRecordsPlainArgs.