Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi
alicloud.nas.getZones
Explore with Pulumi AI
Provide a data source to retrieve the type of zone used to create NAS file system.
NOTE: Available in v1.140.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.nas.getZones({});
export const alicloudNasZonesId = _default.then(_default => _default.zones?.[0]?.zoneId);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.nas.get_zones()
pulumi.export("alicloudNasZonesId", default.zones[0].zone_id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := nas.GetZones(ctx, &nas.GetZonesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("alicloudNasZonesId", _default.Zones[0].ZoneId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Nas.GetZones.Invoke();
return new Dictionary<string, object?>
{
["alicloudNasZonesId"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.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 = NasFunctions.getZones();
ctx.export("alicloudNasZonesId", default_.zones()[0].zoneId());
}
}
variables:
default:
fn::invoke:
Function: alicloud:nas:getZones
Arguments: {}
outputs:
alicloudNasZonesId: ${default.zones[0].zoneId}
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(file_system_type: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(file_system_type: Optional[pulumi.Input[str]] = None,
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:nas/getZones:getZones
arguments:
# arguments dictionary
The following arguments are supported:
- File
System stringType - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- File
System stringType - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- file
System StringType - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - output
File String - File name where to save data source results (after running
pulumi preview
).
- file
System stringType - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - output
File string - File name where to save data source results (after running
pulumi preview
).
- file_
system_ strtype - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - output_
file str - File name where to save data source results (after running
pulumi preview
).
- file
System StringType - The type of the file system. Valid values:
standard
,extreme
,cpfs
. - output
File String - File name where to save data source results (after running
pulumi preview
).
getZones Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Zones
List<Pulumi.
Ali Cloud. Nas. Outputs. Get Zones Zone> - A list of availability zone information collection.
- File
System stringType - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Zones
[]Get
Zones Zone - A list of availability zone information collection.
- File
System stringType - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- zones
List<Get
Zones Zone> - A list of availability zone information collection.
- file
System StringType - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- zones
Get
Zones Zone[] - A list of availability zone information collection.
- file
System stringType - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- zones
Sequence[Get
Zones Zone] - A list of availability zone information collection.
- file_
system_ strtype - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- zones List<Property Map>
- A list of availability zone information collection.
- file
System StringType - output
File String
Supporting Types
GetZonesZone
- Instance
Types List<Pulumi.Ali Cloud. Nas. Inputs. Get Zones Zone Instance Type> - A list of instance type information collection
- Zone
Id string - String to filter results by zone id.
- Instance
Types []GetZones Zone Instance Type - A list of instance type information collection
- Zone
Id string - String to filter results by zone id.
- instance
Types List<GetZones Zone Instance Type> - A list of instance type information collection
- zone
Id String - String to filter results by zone id.
- instance
Types GetZones Zone Instance Type[] - A list of instance type information collection
- zone
Id string - String to filter results by zone id.
- instance_
types Sequence[GetZones Zone Instance Type] - A list of instance type information collection
- zone_
id str - String to filter results by zone id.
- instance
Types List<Property Map> - A list of instance type information collection
- zone
Id String - String to filter results by zone id.
GetZonesZoneInstanceType
- Protocol
Type string - File transfer protocol type. Valid values:
- Storage
Type string - The storage type of the nas zones. Valid values:
- Protocol
Type string - File transfer protocol type. Valid values:
- Storage
Type string - The storage type of the nas zones. Valid values:
- protocol
Type String - File transfer protocol type. Valid values:
- storage
Type String - The storage type of the nas zones. Valid values:
- protocol
Type string - File transfer protocol type. Valid values:
- storage
Type string - The storage type of the nas zones. Valid values:
- protocol_
type str - File transfer protocol type. Valid values:
- storage_
type str - The storage type of the nas zones. Valid values:
- protocol
Type String - File transfer protocol type. Valid values:
- storage
Type String - The storage type of the nas zones. Valid values:
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.