Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.nas.getDataFlows
Explore with Pulumi AI
This data source provides the Nas Data Flows of the current Alibaba Cloud user.
NOTE: Available in v1.153.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.nas.getDataFlows({
fileSystemId: "example_value",
ids: [
"example_value-1",
"example_value-2",
],
});
export const nasDataFlowId1 = ids.then(ids => ids.flows?.[0]?.id);
const status = alicloud.nas.getDataFlows({
fileSystemId: "example_value",
status: "Running",
});
export const nasDataFlowId2 = status.then(status => status.flows?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.nas.get_data_flows(file_system_id="example_value",
ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("nasDataFlowId1", ids.flows[0].id)
status = alicloud.nas.get_data_flows(file_system_id="example_value",
status="Running")
pulumi.export("nasDataFlowId2", status.flows[0].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 {
ids, err := nas.GetDataFlows(ctx, &nas.GetDataFlowsArgs{
FileSystemId: "example_value",
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("nasDataFlowId1", ids.Flows[0].Id)
status, err := nas.GetDataFlows(ctx, &nas.GetDataFlowsArgs{
FileSystemId: "example_value",
Status: pulumi.StringRef("Running"),
}, nil)
if err != nil {
return err
}
ctx.Export("nasDataFlowId2", status.Flows[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Nas.GetDataFlows.Invoke(new()
{
FileSystemId = "example_value",
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
var status = AliCloud.Nas.GetDataFlows.Invoke(new()
{
FileSystemId = "example_value",
Status = "Running",
});
return new Dictionary<string, object?>
{
["nasDataFlowId1"] = ids.Apply(getDataFlowsResult => getDataFlowsResult.Flows[0]?.Id),
["nasDataFlowId2"] = status.Apply(getDataFlowsResult => getDataFlowsResult.Flows[0]?.Id),
};
});
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.GetDataFlowsArgs;
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 = NasFunctions.getDataFlows(GetDataFlowsArgs.builder()
.fileSystemId("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("nasDataFlowId1", ids.applyValue(getDataFlowsResult -> getDataFlowsResult.flows()[0].id()));
final var status = NasFunctions.getDataFlows(GetDataFlowsArgs.builder()
.fileSystemId("example_value")
.status("Running")
.build());
ctx.export("nasDataFlowId2", status.applyValue(getDataFlowsResult -> getDataFlowsResult.flows()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:nas:getDataFlows
Arguments:
fileSystemId: example_value
ids:
- example_value-1
- example_value-2
status:
fn::invoke:
Function: alicloud:nas:getDataFlows
Arguments:
fileSystemId: example_value
status: Running
outputs:
nasDataFlowId1: ${ids.flows[0].id}
nasDataFlowId2: ${status.flows[0].id}
Using getDataFlows
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 getDataFlows(args: GetDataFlowsArgs, opts?: InvokeOptions): Promise<GetDataFlowsResult>
function getDataFlowsOutput(args: GetDataFlowsOutputArgs, opts?: InvokeOptions): Output<GetDataFlowsResult>
def get_data_flows(file_system_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataFlowsResult
def get_data_flows_output(file_system_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataFlowsResult]
func GetDataFlows(ctx *Context, args *GetDataFlowsArgs, opts ...InvokeOption) (*GetDataFlowsResult, error)
func GetDataFlowsOutput(ctx *Context, args *GetDataFlowsOutputArgs, opts ...InvokeOption) GetDataFlowsResultOutput
> Note: This function is named GetDataFlows
in the Go SDK.
public static class GetDataFlows
{
public static Task<GetDataFlowsResult> InvokeAsync(GetDataFlowsArgs args, InvokeOptions? opts = null)
public static Output<GetDataFlowsResult> Invoke(GetDataFlowsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataFlowsResult> getDataFlows(GetDataFlowsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:nas/getDataFlows:getDataFlows
arguments:
# arguments dictionary
The following arguments are supported:
- File
System stringId - The ID of the file system.
- Ids List<string>
- A list of Data Flow IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
- File
System stringId - The ID of the file system.
- Ids []string
- A list of Data Flow IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
- file
System StringId - The ID of the file system.
- ids List<String>
- A list of Data Flow IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
- file
System stringId - The ID of the file system.
- ids string[]
- A list of Data Flow IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
- file_
system_ strid - The ID of the file system.
- ids Sequence[str]
- A list of Data Flow IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
- file
System StringId - The ID of the file system.
- ids List<String>
- A list of Data Flow IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the Data flow. Including:
Starting
,Running
,Updating
,Deleting
,Stopping
,Stopped
,Misconfigured
.
getDataFlows Result
The following output properties are available:
- File
System stringId - Flows
List<Pulumi.
Ali Cloud. Nas. Outputs. Get Data Flows Flow> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Output
File string - Status string
- File
System stringId - Flows
[]Get
Data Flows Flow - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Output
File string - Status string
- file
System StringId - flows
List<Get
Data Flows Flow> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
- file
System stringId - flows
Get
Data Flows Flow[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- output
File string - status string
- file_
system_ strid - flows
Sequence[Get
Data Flows Flow] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- output_
file str - status str
- file
System StringId - flows List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - status String
Supporting Types
GetDataFlowsFlow
- Create
Time string - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- Data
Flow stringId - The ID of the Data Flow.
- Description string
- The Description of data flow.
- Error
Message string - Error message.
- File
System stringId - The ID of the file system.
- File
System stringPath - The path of Fileset in the CPFS file system.
- Fset
Description string - Description of automatic update.
- Fset
Id string - The ID of the Fileset.
- Id string
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - Source
Security stringType - The security protection type of the source storage.
- Source
Storage string - The access path of the source store. Format:
<storage type>://<path>
. - Status string
- The status of the Data flow.
- Throughput int
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
- Create
Time string - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- Data
Flow stringId - The ID of the Data Flow.
- Description string
- The Description of data flow.
- Error
Message string - Error message.
- File
System stringId - The ID of the file system.
- File
System stringPath - The path of Fileset in the CPFS file system.
- Fset
Description string - Description of automatic update.
- Fset
Id string - The ID of the Fileset.
- Id string
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - Source
Security stringType - The security protection type of the source storage.
- Source
Storage string - The access path of the source store. Format:
<storage type>://<path>
. - Status string
- The status of the Data flow.
- Throughput int
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
- create
Time String - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- data
Flow StringId - The ID of the Data Flow.
- description String
- The Description of data flow.
- error
Message String - Error message.
- file
System StringId - The ID of the file system.
- file
System StringPath - The path of Fileset in the CPFS file system.
- fset
Description String - Description of automatic update.
- fset
Id String - The ID of the Fileset.
- id String
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - source
Security StringType - The security protection type of the source storage.
- source
Storage String - The access path of the source store. Format:
<storage type>://<path>
. - status String
- The status of the Data flow.
- throughput Integer
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
- create
Time string - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- data
Flow stringId - The ID of the Data Flow.
- description string
- The Description of data flow.
- error
Message string - Error message.
- file
System stringId - The ID of the file system.
- file
System stringPath - The path of Fileset in the CPFS file system.
- fset
Description string - Description of automatic update.
- fset
Id string - The ID of the Fileset.
- id string
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - source
Security stringType - The security protection type of the source storage.
- source
Storage string - The access path of the source store. Format:
<storage type>://<path>
. - status string
- The status of the Data flow.
- throughput number
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
- create_
time str - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- data_
flow_ strid - The ID of the Data Flow.
- description str
- The Description of data flow.
- error_
message str - Error message.
- file_
system_ strid - The ID of the file system.
- file_
system_ strpath - The path of Fileset in the CPFS file system.
- fset_
description str - Description of automatic update.
- fset_
id str - The ID of the Fileset.
- id str
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - source_
security_ strtype - The security protection type of the source storage.
- source_
storage str - The access path of the source store. Format:
<storage type>://<path>
. - status str
- The status of the Data flow.
- throughput int
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
- create
Time String - The time when Fileset was created. Executing the ISO8601 standard means that the return format is: 'yyyy-MM-ddTHH:mm:ssZ'.
- data
Flow StringId - The ID of the Data Flow.
- description String
- The Description of data flow.
- error
Message String - Error message.
- file
System StringId - The ID of the file system.
- file
System StringPath - The path of Fileset in the CPFS file system.
- fset
Description String - Description of automatic update.
- fset
Id String - The ID of the Fileset.
- id String
- The resource ID of the data flow. The value formats as
<file_system_id>:<data_flow_id>
. - source
Security StringType - The security protection type of the source storage.
- source
Storage String - The access path of the source store. Format:
<storage type>://<path>
. - status String
- The status of the Data flow.
- throughput Number
- The maximum transmission bandwidth of data flow, unit:
MB/s
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.