get Global Database Networks
suspend fun getGlobalDatabaseNetworks(argument: GetGlobalDatabaseNetworksPlainArgs): GetGlobalDatabaseNetworksResult
This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
NOTE: Available in v1.181.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.polardb.PolardbFunctions;
import com.pulumi.alicloud.polardb.inputs.GetGlobalDatabaseNetworksArgs;
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 ids = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
.ids("example_id")
.build());
ctx.export("polardbGlobalDatabaseNetworkId1", ids.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id()));
final var description = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
.description("example_description")
.build());
ctx.export("polardbGlobalDatabaseNetworkId2", description.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getGlobalDatabaseNetworks.
Parameters
argument
A collection of arguments for invoking getGlobalDatabaseNetworks.
suspend fun getGlobalDatabaseNetworks(dbClusterId: String? = null, description: String? = null, gdnId: String? = null, ids: List<String>? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, status: String? = null): GetGlobalDatabaseNetworksResult
Return
A collection of values returned by getGlobalDatabaseNetworks.
See also
Parameters
db Cluster Id
The ID of the PolarDB cluster.
description
The description of the Global Database Network.
gdn Id
The ID of the Global Database Network.
ids
A list of Global Database Network IDs.
output File
File name where to save data source results (after running pulumi preview
).
page Number
page Size
status
The status of the Global Database Network.
suspend fun getGlobalDatabaseNetworks(argument: suspend GetGlobalDatabaseNetworksPlainArgsBuilder.() -> Unit): GetGlobalDatabaseNetworksResult
Return
A collection of values returned by getGlobalDatabaseNetworks.
See also
Parameters
argument
Builder for com.pulumi.alicloud.polardb.kotlin.inputs.GetGlobalDatabaseNetworksPlainArgs.