Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getIndustrialPidProjects

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

NOTE: Available in v1.113.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.Brain.GetIndustrialPidProjects.InvokeAsync(new AliCloud.Brain.GetIndustrialPidProjectsArgs
        {
            Ids = 
            {
                "3e74e684-cbb5-xxxx",
            },
            NameRegex = "tf-testAcc",
        }));
        this.FirstBrainIndustrialPidProjectId = example.Apply(example => example.Projects?[0]?.Id);
    }

    [Output("firstBrainIndustrialPidProjectId")]
    public Output<string> FirstBrainIndustrialPidProjectId { get; set; }
}
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.GetIndustrialPidProjects(ctx, &brain.GetIndustrialPidProjectsArgs{
			Ids: []string{
				"3e74e684-cbb5-xxxx",
			},
			NameRegex: pulumi.StringRef("tf-testAcc"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstBrainIndustrialPidProjectId", example.Projects[0].Id)
		return nil
	})
}
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.GetIndustrialPidProjectsArgs;
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.getIndustrialPidProjects(GetIndustrialPidProjectsArgs.builder()
            .ids("3e74e684-cbb5-xxxx")
            .nameRegex("tf-testAcc")
            .build());

        ctx.export("firstBrainIndustrialPidProjectId", example.applyValue(getIndustrialPidProjectsResult -> getIndustrialPidProjectsResult.projects()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.brain.get_industrial_pid_projects(ids=["3e74e684-cbb5-xxxx"],
    name_regex="tf-testAcc")
pulumi.export("firstBrainIndustrialPidProjectId", example.projects[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.brain.getIndustrialPidProjects({
    ids: ["3e74e684-cbb5-xxxx"],
    nameRegex: "tf-testAcc",
});
export const firstBrainIndustrialPidProjectId = example.then(example => example.projects?[0]?.id);
variables:
  example:
    Fn::Invoke:
      Function: alicloud:brain:getIndustrialPidProjects
      Arguments:
        ids:
          - 3e74e684-cbb5-xxxx
        nameRegex: tf-testAcc
outputs:
  firstBrainIndustrialPidProjectId: ${example.projects[0].id}

Using getIndustrialPidProjects

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 getIndustrialPidProjects(args: GetIndustrialPidProjectsArgs, opts?: InvokeOptions): Promise<GetIndustrialPidProjectsResult>
function getIndustrialPidProjectsOutput(args: GetIndustrialPidProjectsOutputArgs, opts?: InvokeOptions): Output<GetIndustrialPidProjectsResult>
def get_industrial_pid_projects(ids: Optional[Sequence[str]] = None,
                                name_regex: Optional[str] = None,
                                output_file: Optional[str] = None,
                                pid_organization_id: Optional[str] = None,
                                pid_project_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIndustrialPidProjectsResult
def get_industrial_pid_projects_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                name_regex: Optional[pulumi.Input[str]] = None,
                                output_file: Optional[pulumi.Input[str]] = None,
                                pid_organization_id: Optional[pulumi.Input[str]] = None,
                                pid_project_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIndustrialPidProjectsResult]
func GetIndustrialPidProjects(ctx *Context, args *GetIndustrialPidProjectsArgs, opts ...InvokeOption) (*GetIndustrialPidProjectsResult, error)
func GetIndustrialPidProjectsOutput(ctx *Context, args *GetIndustrialPidProjectsOutputArgs, opts ...InvokeOption) GetIndustrialPidProjectsResultOutput

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

public static class GetIndustrialPidProjects 
{
    public static Task<GetIndustrialPidProjectsResult> InvokeAsync(GetIndustrialPidProjectsArgs args, InvokeOptions? opts = null)
    public static Output<GetIndustrialPidProjectsResult> Invoke(GetIndustrialPidProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIndustrialPidProjectsResult> getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Pid Project IDs.

NameRegex string

A regex string to filter results by Pid Project name.

OutputFile string
PidOrganizationId string

The ID of Pid Organization.

PidProjectName string

The name of Pid Project.

Ids []string

A list of Pid Project IDs.

NameRegex string

A regex string to filter results by Pid Project name.

OutputFile string
PidOrganizationId string

The ID of Pid Organization.

PidProjectName string

The name of Pid Project.

ids List<String>

A list of Pid Project IDs.

nameRegex String

A regex string to filter results by Pid Project name.

outputFile String
pidOrganizationId String

The ID of Pid Organization.

pidProjectName String

The name of Pid Project.

ids string[]

A list of Pid Project IDs.

nameRegex string

A regex string to filter results by Pid Project name.

outputFile string
pidOrganizationId string

The ID of Pid Organization.

pidProjectName string

The name of Pid Project.

ids Sequence[str]

A list of Pid Project IDs.

name_regex str

A regex string to filter results by Pid Project name.

output_file str
pid_organization_id str

The ID of Pid Organization.

pid_project_name str

The name of Pid Project.

ids List<String>

A list of Pid Project IDs.

nameRegex String

A regex string to filter results by Pid Project name.

outputFile String
pidOrganizationId String

The ID of Pid Organization.

pidProjectName String

The name of Pid Project.

getIndustrialPidProjects Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
Projects List<Pulumi.AliCloud.Brain.Outputs.GetIndustrialPidProjectsProject>
NameRegex string
OutputFile string
PidOrganizationId string
PidProjectName string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
Projects []GetIndustrialPidProjectsProject
NameRegex string
OutputFile string
PidOrganizationId string
PidProjectName string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
projects List<GetIndustrialPidProjectsProject>
nameRegex String
outputFile String
pidOrganizationId String
pidProjectName String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
projects GetIndustrialPidProjectsProject[]
nameRegex string
outputFile string
pidOrganizationId string
pidProjectName string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
projects Sequence[GetIndustrialPidProjectsProject]
name_regex str
output_file str
pid_organization_id str
pid_project_name str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
projects List<Property Map>
nameRegex String
outputFile String
pidOrganizationId String
pidProjectName String

Supporting Types

GetIndustrialPidProjectsProject

Id string

The ID of the Pid Project.

PidOrganizationId string

The ID of Pid Organization.

PidProjectDesc string

The description of Pid Project.

PidProjectId string

The ID of Pid Project.

PidProjectName string

The name of Pid Project.

Id string

The ID of the Pid Project.

PidOrganizationId string

The ID of Pid Organization.

PidProjectDesc string

The description of Pid Project.

PidProjectId string

The ID of Pid Project.

PidProjectName string

The name of Pid Project.

id String

The ID of the Pid Project.

pidOrganizationId String

The ID of Pid Organization.

pidProjectDesc String

The description of Pid Project.

pidProjectId String

The ID of Pid Project.

pidProjectName String

The name of Pid Project.

id string

The ID of the Pid Project.

pidOrganizationId string

The ID of Pid Organization.

pidProjectDesc string

The description of Pid Project.

pidProjectId string

The ID of Pid Project.

pidProjectName string

The name of Pid Project.

id str

The ID of the Pid Project.

pid_organization_id str

The ID of Pid Organization.

pid_project_desc str

The description of Pid Project.

pid_project_id str

The ID of Pid Project.

pid_project_name str

The name of Pid Project.

id String

The ID of the Pid Project.

pidOrganizationId String

The ID of Pid Organization.

pidProjectDesc String

The description of Pid Project.

pidProjectId String

The ID of Pid Project.

pidProjectName String

The name of Pid Project.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.