get Alidns Records
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
A collection of arguments for invoking getAlidnsRecords.
Return
A collection of values returned by getAlidnsRecords.
See also
Parameters
Sorting direction. Valid values: DESC
,ASC
. Default to AESC
.
The domain name associated to the records.
Domain name group ID.
A list of record IDs.
Keywords.
User language.
ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
Sort by. Sort from newest to oldest according to the time added by resolution.
File name where to save data source results (after running pulumi preview
).
The keywords recorded by the host are searched according to the %RRKeyWord%
mode, and are not case sensitive.
Host record regex.
Search mode, Valid values: LIKE
, EXACT
, ADVANCED
, LIKE
(fuzzy), EXACT
(accurate) search supports KeyWord field, ADVANCED
(advanced) mode supports other fields.
Record status. Valid values: ENABLE
and DISABLE
.
Record type. Valid values: A
, NS
, MX
, TXT
, CNAME
, SRV
, AAAA
, REDIRECT_URL
, FORWORD_URL
.
Analyze type keywords, search by full match, not case sensitive.
The keywords of the recorded value are searched according to the %ValueKeyWord%
mode, and are not case sensitive.
Host record value regex.
Return
A collection of values returned by getAlidnsRecords.
See also
Parameters
Builder for com.pulumi.alicloud.dns.kotlin.inputs.GetAlidnsRecordsPlainArgs.