alicloud.clickhouse.getRegions
Explore with Pulumi AI
This data source provides the Click House Accounts of the current Alibaba Cloud user.
NOTE: Available in v1.138.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var default1 = AliCloud.ClickHouse.GetRegions.Invoke(new()
{
Current = true,
});
var default2 = AliCloud.ClickHouse.GetRegions.Invoke(new()
{
RegionId = "cn-hangzhou",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/clickhouse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{
Current: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
_, err = clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{
RegionId: pulumi.StringRef("cn-hangzhou"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
import com.pulumi.alicloud.clickhouse.inputs.GetRegionsArgs;
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 default1 = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
final var default2 = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
.regionId("cn-hangzhou")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default1 = alicloud.clickhouse.get_regions(current=True)
default2 = alicloud.clickhouse.get_regions(region_id="cn-hangzhou")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default1 = alicloud.clickhouse.getRegions({
current: true,
});
const default2 = alicloud.clickhouse.getRegions({
regionId: "cn-hangzhou",
});
variables:
default1:
fn::invoke:
Function: alicloud:clickhouse:getRegions
Arguments:
current: true
default2:
fn::invoke:
Function: alicloud:clickhouse:getRegions
Arguments:
regionId: cn-hangzhou
Using getRegions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(args: GetRegionsOutputArgs, opts?: InvokeOptions): Output<GetRegionsResult>
def get_regions(current: Optional[bool] = None,
output_file: Optional[str] = None,
region_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(current: Optional[pulumi.Input[bool]] = None,
output_file: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, args *GetRegionsOutputArgs, opts ...InvokeOption) GetRegionsResultOutput
> Note: This function is named GetRegions
in the Go SDK.
public static class GetRegions
{
public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetRegionsResult> Invoke(GetRegionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:clickhouse/getRegions:getRegions
arguments:
# arguments dictionary
The following arguments are supported:
- Current bool
Set to true to match only the region configured in the provider. Default value:
true
.- Output
File string File name where to save data source results (after running
pulumi preview
).- Region
Id string The Region ID.
- Current bool
Set to true to match only the region configured in the provider. Default value:
true
.- Output
File string File name where to save data source results (after running
pulumi preview
).- Region
Id string The Region ID.
- current Boolean
Set to true to match only the region configured in the provider. Default value:
true
.- output
File String File name where to save data source results (after running
pulumi preview
).- region
Id String The Region ID.
- current boolean
Set to true to match only the region configured in the provider. Default value:
true
.- output
File string File name where to save data source results (after running
pulumi preview
).- region
Id string The Region ID.
- current bool
Set to true to match only the region configured in the provider. Default value:
true
.- output_
file str File name where to save data source results (after running
pulumi preview
).- region_
id str The Region ID.
- current Boolean
Set to true to match only the region configured in the provider. Default value:
true
.- output
File String File name where to save data source results (after running
pulumi preview
).- region
Id String The Region ID.
getRegions Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Regions
List<Pulumi.
Ali Cloud. Click House. Outputs. Get Regions Region> - Current bool
- Output
File string - Region
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Regions
[]Get
Regions Region - Current bool
- Output
File string - Region
Id string
- id String
The provider-assigned unique ID for this managed resource.
- regions
List<Get
Regions Region> - current Boolean
- output
File String - region
Id String
- id string
The provider-assigned unique ID for this managed resource.
- regions
Get
Regions Region[] - current boolean
- output
File string - region
Id string
- id str
The provider-assigned unique ID for this managed resource.
- regions
Sequence[Get
Regions Region] - current bool
- output_
file str - region_
id str
- id String
The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- current Boolean
- output
File String - region
Id String
Supporting Types
GetRegionsRegion
- Region
Id string The Region ID.
- Zone
Ids List<Pulumi.Ali Cloud. Click House. Inputs. Get Regions Region Zone Id> A list of available zone ids in the region_id.
- Region
Id string The Region ID.
- Zone
Ids []GetRegions Region Zone Id A list of available zone ids in the region_id.
- region
Id String The Region ID.
- zone
Ids List<GetRegions Region Zone Id> A list of available zone ids in the region_id.
- region
Id string The Region ID.
- zone
Ids GetRegions Region Zone Id[] A list of available zone ids in the region_id.
- region_
id str The Region ID.
- zone_
ids Sequence[GetRegions Region Zone Id] A list of available zone ids in the region_id.
- region
Id String The Region ID.
- zone
Ids List<Property Map> A list of available zone ids in the region_id.
GetRegionsRegionZoneId
- Vpc
Enabled bool Whether to support vpc network.
- Zone
Id string The zone ID.
- Vpc
Enabled bool Whether to support vpc network.
- Zone
Id string The zone ID.
- vpc
Enabled Boolean Whether to support vpc network.
- zone
Id String The zone ID.
- vpc
Enabled boolean Whether to support vpc network.
- zone
Id string The zone ID.
- vpc_
enabled bool Whether to support vpc network.
- zone_
id str The zone ID.
- vpc
Enabled Boolean Whether to support vpc network.
- zone
Id String The zone ID.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.