alicloud.dfs.getZones
This data source provides the DFS Zones And Configurations of the current Alibaba Cloud user.
NOTE: Available in v1.140.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Dfs.GetZones.Invoke();
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dfs.GetZones(ctx, nil, 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.dfs.DfsFunctions;
import com.pulumi.alicloud.dfs.inputs.GetZonesArgs;
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 default = DfsFunctions.getZones();
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.dfs.get_zones()
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.dfs.getZones({});
variables:
default:
fn::invoke:
Function: alicloud:dfs:getZones
Arguments: {}
Using getZones
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 getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>
def get_zones(output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput
> Note: This function is named GetZones
in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dfs/getZones:getZones
arguments:
# arguments dictionary
The following arguments are supported:
- Output
File string
- Output
File string
- output
File String
- output
File string
- output_
file str
- output
File String
getZones Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Zones
List<Pulumi.
Ali Cloud. Dfs. Outputs. Get Zones Zone> - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Zones
[]Get
Zones Zone - Output
File string
- id String
The provider-assigned unique ID for this managed resource.
- zones
List<Get
Zones Zone> - output
File String
- id string
The provider-assigned unique ID for this managed resource.
- zones
Get
Zones Zone[] - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- zones
Sequence[Get
Zones Zone] - output_
file str
- id String
The provider-assigned unique ID for this managed resource.
- zones List<Property Map>
- output
File String
Supporting Types
GetZonesZone
- Options
List<Pulumi.
Ali Cloud. Dfs. Inputs. Get Zones Zone Option> A list of available configurations of the Zone.
- Zone
Id string The zone ID.
- Options
[]Get
Zones Zone Option A list of available configurations of the Zone.
- Zone
Id string The zone ID.
- options
List<Get
Zones Zone Option> A list of available configurations of the Zone.
- zone
Id String The zone ID.
- options
Get
Zones Zone Option[] A list of available configurations of the Zone.
- zone
Id string The zone ID.
- options
Sequence[Get
Zones Zone Option] A list of available configurations of the Zone.
- zone_
id str The zone ID.
- options List<Property Map>
A list of available configurations of the Zone.
- zone
Id String The zone ID.
GetZonesZoneOption
- Protocol
Type string The protocol type. Valid values:
HDFS
.- Storage
Type string The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
- Protocol
Type string The protocol type. Valid values:
HDFS
.- Storage
Type string The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
- protocol
Type String The protocol type. Valid values:
HDFS
.- storage
Type String The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
- protocol
Type string The protocol type. Valid values:
HDFS
.- storage
Type string The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
- protocol_
type str The protocol type. Valid values:
HDFS
.- storage_
type str The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
- protocol
Type String The protocol type. Valid values:
HDFS
.- storage
Type String The storage specifications of the File system. Valid values:
PERFORMANCE
,STANDARD
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.