GetProtocols

Provide a data source to retrieve the type of protocol used to create NAS file system.

NOTE: Available in 1.42.0

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Nas.GetProtocols.InvokeAsync(new AliCloud.Nas.GetProtocolsArgs
        {
            OutputFile = "protocols.txt",
            Type = "Performance",
            ZoneId = "cn-beijing-e",
        }));
        this.NasProtocolsProtocol = @default.Apply(@default => @default.Protocols[0]);
    }

    [Output("nasProtocolsProtocol")]
    public Output<string> NasProtocolsProtocol { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.nas.get_protocols(output_file="protocols.txt",
    type="Performance",
    zone_id="cn-beijing-e")
pulumi.export("nasProtocolsProtocol", default.protocols[0])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultProtocols = pulumi.output(alicloud.nas.getProtocols({
    outputFile: "protocols.txt",
    type: "Performance",
    zoneId: "cn-beijing-e",
}, { async: true }));

export const nasProtocolsProtocol = defaultProtocols.protocols[0];

Using GetProtocols

function getProtocols(args: GetProtocolsArgs, opts?: InvokeOptions): Promise<GetProtocolsResult>
function  get_protocols(output_file=None, type=None, zone_id=None, opts=None)
func GetProtocols(ctx *Context, args *GetProtocolsArgs, opts ...InvokeOption) (*GetProtocolsResult, error)
public static class GetProtocols {
    public static Task<GetProtocolsResult> InvokeAsync(GetProtocolsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Type string

The file system type. Valid Values: Performance and Capacity.

OutputFile string
ZoneId string

String to filter results by zone id.

Type string

The file system type. Valid Values: Performance and Capacity.

OutputFile string
ZoneId string

String to filter results by zone id.

type string

The file system type. Valid Values: Performance and Capacity.

outputFile string
zoneId string

String to filter results by zone id.

type str

The file system type. Valid Values: Performance and Capacity.

output_file str
zone_id str

String to filter results by zone id.

GetProtocols Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Protocols List<string>

A list of supported protocol type..

Type string
OutputFile string
ZoneId string
Id string

The provider-assigned unique ID for this managed resource.

Protocols []string

A list of supported protocol type..

Type string
OutputFile string
ZoneId string
id string

The provider-assigned unique ID for this managed resource.

protocols string[]

A list of supported protocol type..

type string
outputFile string
zoneId string
id str

The provider-assigned unique ID for this managed resource.

protocols List[str]

A list of supported protocol type..

type str
output_file str
zone_id str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.