1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. brain
  5. getIndustrialPidProjects
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.brain.getIndustrialPidProjects

Explore with Pulumi AI

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

NOTE: Available since v1.113.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.getIndustrialPidProjects({
    ids: ["3e74e684-cbb5-xxxx"],
    nameRegex: "tf-testAcc",
});
export const firstBrainIndustrialPidProjectId = example.then(example => example.projects?.[0]?.id);
Copy
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)
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Brain.GetIndustrialPidProjects.Invoke(new()
    {
        Ids = new[]
        {
            "3e74e684-cbb5-xxxx",
        },
        NameRegex = "tf-testAcc",
    });

    return new Dictionary<string, object?>
    {
        ["firstBrainIndustrialPidProjectId"] = example.Apply(getIndustrialPidProjectsResult => getIndustrialPidProjectsResult.Projects[0]?.Id),
    };
});
Copy
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()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:brain:getIndustrialPidProjects
      arguments:
        ids:
          - 3e74e684-cbb5-xxxx
        nameRegex: tf-testAcc
outputs:
  firstBrainIndustrialPidProjectId: ${example.projects[0].id}
Copy

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>
Copy
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]
Copy
func GetIndustrialPidProjects(ctx *Context, args *GetIndustrialPidProjectsArgs, opts ...InvokeOption) (*GetIndustrialPidProjectsResult, error)
func GetIndustrialPidProjectsOutput(ctx *Context, args *GetIndustrialPidProjectsOutputArgs, opts ...InvokeOption) GetIndustrialPidProjectsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIndustrialPidProjectsResult> getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOptions options)
public static Output<GetIndustrialPidProjectsResult> getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Pid Project IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Pid Project name.
OutputFile string
File name where to save data source results (after running pulumi preview).
PidOrganizationId Changes to this property will trigger replacement. string
The ID of Pid Organization.
PidProjectName Changes to this property will trigger replacement. string
The name of Pid Project.
Ids Changes to this property will trigger replacement. []string
A list of Pid Project IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Pid Project name.
OutputFile string
File name where to save data source results (after running pulumi preview).
PidOrganizationId Changes to this property will trigger replacement. string
The ID of Pid Organization.
PidProjectName Changes to this property will trigger replacement. string
The name of Pid Project.
ids Changes to this property will trigger replacement. List<String>
A list of Pid Project IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Pid Project name.
outputFile String
File name where to save data source results (after running pulumi preview).
pidOrganizationId Changes to this property will trigger replacement. String
The ID of Pid Organization.
pidProjectName Changes to this property will trigger replacement. String
The name of Pid Project.
ids Changes to this property will trigger replacement. string[]
A list of Pid Project IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Pid Project name.
outputFile string
File name where to save data source results (after running pulumi preview).
pidOrganizationId Changes to this property will trigger replacement. string
The ID of Pid Organization.
pidProjectName Changes to this property will trigger replacement. string
The name of Pid Project.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Pid Project IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Pid Project name.
output_file str
File name where to save data source results (after running pulumi preview).
pid_organization_id Changes to this property will trigger replacement. str
The ID of Pid Organization.
pid_project_name Changes to this property will trigger replacement. str
The name of Pid Project.
ids Changes to this property will trigger replacement. List<String>
A list of Pid Project IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Pid Project name.
outputFile String
File name where to save data source results (after running pulumi preview).
pidOrganizationId Changes to this property will trigger replacement. String
The ID of Pid Organization.
pidProjectName Changes to this property will trigger replacement. 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>
A list of Pid Project names.
Projects List<Pulumi.AliCloud.Brain.Outputs.GetIndustrialPidProjectsProject>
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
NameRegex string
OutputFile string
PidOrganizationId string
The ID of Pid Organization.
PidProjectName string
The name of Pid Project.
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
A list of Pid Project names.
Projects []GetIndustrialPidProjectsProject
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
NameRegex string
OutputFile string
PidOrganizationId string
The ID of Pid Organization.
PidProjectName string
The name of Pid Project.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Pid Project names.
projects List<GetIndustrialPidProjectsProject>
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
nameRegex String
outputFile String
pidOrganizationId String
The ID of Pid Organization.
pidProjectName String
The name of Pid Project.
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
A list of Pid Project names.
projects GetIndustrialPidProjectsProject[]
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
nameRegex string
outputFile string
pidOrganizationId string
The ID of Pid Organization.
pidProjectName string
The name of Pid Project.
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
A list of Pid Project names.
projects Sequence[GetIndustrialPidProjectsProject]
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
name_regex str
output_file str
pid_organization_id str
The ID of Pid Organization.
pid_project_name str
The name of Pid Project.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Pid Project names.
projects List<Property Map>
A list of Brain Industrial Pid Projects. Each element contains the following attributes:
nameRegex String
outputFile String
pidOrganizationId String
The ID of Pid Organization.
pidProjectName String
The name of Pid Project.

Supporting Types

GetIndustrialPidProjectsProject

Id This property is required. string
The ID of the Pid Project.
PidOrganizationId This property is required. string
The ID of Pid Organization.
PidProjectDesc This property is required. string
The description of Pid Project.
PidProjectId This property is required. string
The ID of Pid Project.
PidProjectName This property is required. string
The name of Pid Project.
Id This property is required. string
The ID of the Pid Project.
PidOrganizationId This property is required. string
The ID of Pid Organization.
PidProjectDesc This property is required. string
The description of Pid Project.
PidProjectId This property is required. string
The ID of Pid Project.
PidProjectName This property is required. string
The name of Pid Project.
id This property is required. String
The ID of the Pid Project.
pidOrganizationId This property is required. String
The ID of Pid Organization.
pidProjectDesc This property is required. String
The description of Pid Project.
pidProjectId This property is required. String
The ID of Pid Project.
pidProjectName This property is required. String
The name of Pid Project.
id This property is required. string
The ID of the Pid Project.
pidOrganizationId This property is required. string
The ID of Pid Organization.
pidProjectDesc This property is required. string
The description of Pid Project.
pidProjectId This property is required. string
The ID of Pid Project.
pidProjectName This property is required. string
The name of Pid Project.
id This property is required. str
The ID of the Pid Project.
pid_organization_id This property is required. str
The ID of Pid Organization.
pid_project_desc This property is required. str
The description of Pid Project.
pid_project_id This property is required. str
The ID of Pid Project.
pid_project_name This property is required. str
The name of Pid Project.
id This property is required. String
The ID of the Pid Project.
pidOrganizationId This property is required. String
The ID of Pid Organization.
pidProjectDesc This property is required. String
The description of Pid Project.
pidProjectId This property is required. String
The ID of Pid Project.
pidProjectName This property is required. String
The name of Pid Project.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.