1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. brain
  5. getIndustrialPidProjects
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.brain.getIndustrialPidProjects

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

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

    NOTE: Available in v1.113.0+.

    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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi