1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. brain
  5. getIndustrialPidLoops
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.brain.getIndustrialPidLoops

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user.

    NOTE: Available in v1.117.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.brain.getIndustrialPidLoops({
        pidProjectId: "856c6b8f-ca63-40a4-xxxx-xxxx",
        ids: ["742a3d4e-d8b0-47c8-xxxx-xxxx"],
        nameRegex: "tf-testACC",
    });
    export const firstBrainIndustrialPidLoopId = example.then(example => example.loops?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.brain.get_industrial_pid_loops(pid_project_id="856c6b8f-ca63-40a4-xxxx-xxxx",
        ids=["742a3d4e-d8b0-47c8-xxxx-xxxx"],
        name_regex="tf-testACC")
    pulumi.export("firstBrainIndustrialPidLoopId", example.loops[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/brain"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := brain.GetIndustrialPidLoops(ctx, &brain.GetIndustrialPidLoopsArgs{
    			PidProjectId: "856c6b8f-ca63-40a4-xxxx-xxxx",
    			Ids: []string{
    				"742a3d4e-d8b0-47c8-xxxx-xxxx",
    			},
    			NameRegex: pulumi.StringRef("tf-testACC"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstBrainIndustrialPidLoopId", example.Loops[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Brain.GetIndustrialPidLoops.Invoke(new()
        {
            PidProjectId = "856c6b8f-ca63-40a4-xxxx-xxxx",
            Ids = new[]
            {
                "742a3d4e-d8b0-47c8-xxxx-xxxx",
            },
            NameRegex = "tf-testACC",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstBrainIndustrialPidLoopId"] = example.Apply(getIndustrialPidLoopsResult => getIndustrialPidLoopsResult.Loops[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.brain.BrainFunctions;
    import com.pulumi.alicloud.brain.inputs.GetIndustrialPidLoopsArgs;
    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 example = BrainFunctions.getIndustrialPidLoops(GetIndustrialPidLoopsArgs.builder()
                .pidProjectId("856c6b8f-ca63-40a4-xxxx-xxxx")
                .ids("742a3d4e-d8b0-47c8-xxxx-xxxx")
                .nameRegex("tf-testACC")
                .build());
    
            ctx.export("firstBrainIndustrialPidLoopId", example.applyValue(getIndustrialPidLoopsResult -> getIndustrialPidLoopsResult.loops()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:brain:getIndustrialPidLoops
          Arguments:
            pidProjectId: 856c6b8f-ca63-40a4-xxxx-xxxx
            ids:
              - 742a3d4e-d8b0-47c8-xxxx-xxxx
            nameRegex: tf-testACC
    outputs:
      firstBrainIndustrialPidLoopId: ${example.loops[0].id}
    

    Using getIndustrialPidLoops

    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 getIndustrialPidLoops(args: GetIndustrialPidLoopsArgs, opts?: InvokeOptions): Promise<GetIndustrialPidLoopsResult>
    function getIndustrialPidLoopsOutput(args: GetIndustrialPidLoopsOutputArgs, opts?: InvokeOptions): Output<GetIndustrialPidLoopsResult>
    def get_industrial_pid_loops(enable_details: Optional[bool] = None,
                                 ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 pid_loop_name: Optional[str] = None,
                                 pid_project_id: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetIndustrialPidLoopsResult
    def get_industrial_pid_loops_output(enable_details: Optional[pulumi.Input[bool]] = None,
                                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 pid_loop_name: Optional[pulumi.Input[str]] = None,
                                 pid_project_id: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetIndustrialPidLoopsResult]
    func GetIndustrialPidLoops(ctx *Context, args *GetIndustrialPidLoopsArgs, opts ...InvokeOption) (*GetIndustrialPidLoopsResult, error)
    func GetIndustrialPidLoopsOutput(ctx *Context, args *GetIndustrialPidLoopsOutputArgs, opts ...InvokeOption) GetIndustrialPidLoopsResultOutput

    > Note: This function is named GetIndustrialPidLoops in the Go SDK.

    public static class GetIndustrialPidLoops 
    {
        public static Task<GetIndustrialPidLoopsResult> InvokeAsync(GetIndustrialPidLoopsArgs args, InvokeOptions? opts = null)
        public static Output<GetIndustrialPidLoopsResult> Invoke(GetIndustrialPidLoopsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIndustrialPidLoopsResult> getIndustrialPidLoops(GetIndustrialPidLoopsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PidProjectId string
    The pid project id.
    EnableDetails bool
    Ids List<string>
    A list of Pid Loop IDs.
    NameRegex string
    A regex string to filter results by Pid Loop name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PidLoopName string
    The name of Pid Loop.
    Status string
    The status of Pid Loop.
    PidProjectId string
    The pid project id.
    EnableDetails bool
    Ids []string
    A list of Pid Loop IDs.
    NameRegex string
    A regex string to filter results by Pid Loop name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PidLoopName string
    The name of Pid Loop.
    Status string
    The status of Pid Loop.
    pidProjectId String
    The pid project id.
    enableDetails Boolean
    ids List<String>
    A list of Pid Loop IDs.
    nameRegex String
    A regex string to filter results by Pid Loop name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pidLoopName String
    The name of Pid Loop.
    status String
    The status of Pid Loop.
    pidProjectId string
    The pid project id.
    enableDetails boolean
    ids string[]
    A list of Pid Loop IDs.
    nameRegex string
    A regex string to filter results by Pid Loop name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pidLoopName string
    The name of Pid Loop.
    status string
    The status of Pid Loop.
    pid_project_id str
    The pid project id.
    enable_details bool
    ids Sequence[str]
    A list of Pid Loop IDs.
    name_regex str
    A regex string to filter results by Pid Loop name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    pid_loop_name str
    The name of Pid Loop.
    status str
    The status of Pid Loop.
    pidProjectId String
    The pid project id.
    enableDetails Boolean
    ids List<String>
    A list of Pid Loop IDs.
    nameRegex String
    A regex string to filter results by Pid Loop name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pidLoopName String
    The name of Pid Loop.
    status String
    The status of Pid Loop.

    getIndustrialPidLoops Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Loops List<Pulumi.AliCloud.Brain.Outputs.GetIndustrialPidLoopsLoop>
    Names List<string>
    PidProjectId string
    EnableDetails bool
    NameRegex string
    OutputFile string
    PidLoopName string
    Status string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Loops []GetIndustrialPidLoopsLoop
    Names []string
    PidProjectId string
    EnableDetails bool
    NameRegex string
    OutputFile string
    PidLoopName string
    Status string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    loops List<GetIndustrialPidLoopsLoop>
    names List<String>
    pidProjectId String
    enableDetails Boolean
    nameRegex String
    outputFile String
    pidLoopName String
    status String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    loops GetIndustrialPidLoopsLoop[]
    names string[]
    pidProjectId string
    enableDetails boolean
    nameRegex string
    outputFile string
    pidLoopName string
    status string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    loops Sequence[GetIndustrialPidLoopsLoop]
    names Sequence[str]
    pid_project_id str
    enable_details bool
    name_regex str
    output_file str
    pid_loop_name str
    status str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    loops List<Property Map>
    names List<String>
    pidProjectId String
    enableDetails Boolean
    nameRegex String
    outputFile String
    pidLoopName String
    status String

    Supporting Types

    GetIndustrialPidLoopsLoop

    Id string
    The ID of the Pid Loop.
    PidLoopConfiguration string
    PidLoopDcsType string
    The dcs type of Pid Loop.
    PidLoopDesc string
    PidLoopId string
    The ID of the Pid Loop.
    PidLoopIsCrucial bool
    Whether is crucial Pid Loop.
    PidLoopName string
    The name of Pid Loop.
    PidLoopType string
    The type of Pid Loop.
    PidProjectId string
    The pid project id.
    Status string
    The status of Pid Loop.
    Id string
    The ID of the Pid Loop.
    PidLoopConfiguration string
    PidLoopDcsType string
    The dcs type of Pid Loop.
    PidLoopDesc string
    PidLoopId string
    The ID of the Pid Loop.
    PidLoopIsCrucial bool
    Whether is crucial Pid Loop.
    PidLoopName string
    The name of Pid Loop.
    PidLoopType string
    The type of Pid Loop.
    PidProjectId string
    The pid project id.
    Status string
    The status of Pid Loop.
    id String
    The ID of the Pid Loop.
    pidLoopConfiguration String
    pidLoopDcsType String
    The dcs type of Pid Loop.
    pidLoopDesc String
    pidLoopId String
    The ID of the Pid Loop.
    pidLoopIsCrucial Boolean
    Whether is crucial Pid Loop.
    pidLoopName String
    The name of Pid Loop.
    pidLoopType String
    The type of Pid Loop.
    pidProjectId String
    The pid project id.
    status String
    The status of Pid Loop.
    id string
    The ID of the Pid Loop.
    pidLoopConfiguration string
    pidLoopDcsType string
    The dcs type of Pid Loop.
    pidLoopDesc string
    pidLoopId string
    The ID of the Pid Loop.
    pidLoopIsCrucial boolean
    Whether is crucial Pid Loop.
    pidLoopName string
    The name of Pid Loop.
    pidLoopType string
    The type of Pid Loop.
    pidProjectId string
    The pid project id.
    status string
    The status of Pid Loop.
    id str
    The ID of the Pid Loop.
    pid_loop_configuration str
    pid_loop_dcs_type str
    The dcs type of Pid Loop.
    pid_loop_desc str
    pid_loop_id str
    The ID of the Pid Loop.
    pid_loop_is_crucial bool
    Whether is crucial Pid Loop.
    pid_loop_name str
    The name of Pid Loop.
    pid_loop_type str
    The type of Pid Loop.
    pid_project_id str
    The pid project id.
    status str
    The status of Pid Loop.
    id String
    The ID of the Pid Loop.
    pidLoopConfiguration String
    pidLoopDcsType String
    The dcs type of Pid Loop.
    pidLoopDesc String
    pidLoopId String
    The ID of the Pid Loop.
    pidLoopIsCrucial Boolean
    Whether is crucial Pid Loop.
    pidLoopName String
    The name of Pid Loop.
    pidLoopType String
    The type of Pid Loop.
    pidProjectId String
    The pid project id.
    status String
    The status of Pid Loop.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi