get Industrial Pid Loops
suspend fun getIndustrialPidLoops(argument: GetIndustrialPidLoopsPlainArgs): GetIndustrialPidLoopsResult
This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user.
NOTE: Available since v1.117.0. DEPRECATED: This data source has been deprecated from version
1.229.1
.
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);
Content copied to clipboard
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)
Content copied to clipboard
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),
};
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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.loops()[0].id());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Return
A collection of values returned by getIndustrialPidLoops.
Parameters
argument
A collection of arguments for invoking getIndustrialPidLoops.
suspend fun getIndustrialPidLoops(enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pidLoopName: String? = null, pidProjectId: String, status: String? = null): GetIndustrialPidLoopsResult
Return
A collection of values returned by getIndustrialPidLoops.
Parameters
enable Details
ids
A list of Pid Loop IDs.
name Regex
A regex string to filter results by Pid Loop name.
output File
File name where to save data source results (after running pulumi preview
).
pid Loop Name
The name of Pid Loop.
pid Project Id
The pid project id.
status
The status of Pid Loop.
See also
suspend fun getIndustrialPidLoops(argument: suspend GetIndustrialPidLoopsPlainArgsBuilder.() -> Unit): GetIndustrialPidLoopsResult
Return
A collection of values returned by getIndustrialPidLoops.
Parameters
argument
Builder for com.pulumi.alicloud.brain.kotlin.inputs.GetIndustrialPidLoopsPlainArgs.