get Domains
DEPRECATED: This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0. This data source provides a list of DNS Domains in an Alibaba Cloud account according to the specified filters.
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.GetDomainsArgs;
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 domainsDs = DnsFunctions.getDomains(GetDomainsArgs.builder()
.domainNameRegex("^hegu")
.outputFile("domains.txt")
.build());
ctx.export("firstDomainId", domainsDs.applyValue(getDomainsResult -> getDomainsResult.domains()[0].domainId()));
}
}
Return
A collection of values returned by getDomains.
Parameters
A collection of arguments for invoking getDomains.
Return
A collection of values returned by getDomains.
See also
Parameters
Specifies whether the domain is from Alibaba Cloud or not.
A regex string to filter results by the domain name.
Domain group ID, if not filled, the default is all groups.
A regex string to filter results by the group name.
A list of domain IDs.
Cloud analysis product ID.
The keywords are searched according to the %KeyWord%
mode, which is not case sensitive.
User language.
File name where to save data source results (after running pulumi preview
).
The Id of resource group which the dns belongs.
Search mode, LIKE
fuzzy search, EXACT
exact search.
Whether to query the domain name star.
A mapping of tags to assign to the resource.
Cloud analysis version code.
Return
A collection of values returned by getDomains.
See also
Parameters
Builder for com.pulumi.alicloud.dns.kotlin.inputs.GetDomainsPlainArgs.