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

alicloud.brain.getIndustrialPidOrganizations

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 Organizations 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.getIndustrialPidOrganizations({
        ids: ["3e74e684-cbb5-xxxx"],
        nameRegex: "tf-testAcc",
    });
    export const firstBrainIndustrialPidOrganizationId = example.then(example => example.organizations?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.brain.get_industrial_pid_organizations(ids=["3e74e684-cbb5-xxxx"],
        name_regex="tf-testAcc")
    pulumi.export("firstBrainIndustrialPidOrganizationId", example.organizations[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.GetIndustrialPidOrganizations(ctx, &brain.GetIndustrialPidOrganizationsArgs{
    			Ids: []string{
    				"3e74e684-cbb5-xxxx",
    			},
    			NameRegex: pulumi.StringRef("tf-testAcc"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstBrainIndustrialPidOrganizationId", example.Organizations[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.GetIndustrialPidOrganizations.Invoke(new()
        {
            Ids = new[]
            {
                "3e74e684-cbb5-xxxx",
            },
            NameRegex = "tf-testAcc",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstBrainIndustrialPidOrganizationId"] = example.Apply(getIndustrialPidOrganizationsResult => getIndustrialPidOrganizationsResult.Organizations[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.GetIndustrialPidOrganizationsArgs;
    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.getIndustrialPidOrganizations(GetIndustrialPidOrganizationsArgs.builder()
                .ids("3e74e684-cbb5-xxxx")
                .nameRegex("tf-testAcc")
                .build());
    
            ctx.export("firstBrainIndustrialPidOrganizationId", example.applyValue(getIndustrialPidOrganizationsResult -> getIndustrialPidOrganizationsResult.organizations()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:brain:getIndustrialPidOrganizations
          Arguments:
            ids:
              - 3e74e684-cbb5-xxxx
            nameRegex: tf-testAcc
    outputs:
      firstBrainIndustrialPidOrganizationId: ${example.organizations[0].id}
    

    Using getIndustrialPidOrganizations

    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 getIndustrialPidOrganizations(args: GetIndustrialPidOrganizationsArgs, opts?: InvokeOptions): Promise<GetIndustrialPidOrganizationsResult>
    function getIndustrialPidOrganizationsOutput(args: GetIndustrialPidOrganizationsOutputArgs, opts?: InvokeOptions): Output<GetIndustrialPidOrganizationsResult>
    def get_industrial_pid_organizations(ids: Optional[Sequence[str]] = None,
                                         name_regex: Optional[str] = None,
                                         output_file: Optional[str] = None,
                                         parent_organization_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetIndustrialPidOrganizationsResult
    def get_industrial_pid_organizations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                         name_regex: Optional[pulumi.Input[str]] = None,
                                         output_file: Optional[pulumi.Input[str]] = None,
                                         parent_organization_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetIndustrialPidOrganizationsResult]
    func GetIndustrialPidOrganizations(ctx *Context, args *GetIndustrialPidOrganizationsArgs, opts ...InvokeOption) (*GetIndustrialPidOrganizationsResult, error)
    func GetIndustrialPidOrganizationsOutput(ctx *Context, args *GetIndustrialPidOrganizationsOutputArgs, opts ...InvokeOption) GetIndustrialPidOrganizationsResultOutput

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

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

    The following arguments are supported:

    Ids List<string>
    A list of Pid Organization IDs.
    NameRegex string
    A regex string to filter results by Pid Organization name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ParentOrganizationId string
    The parent organization id.
    Ids []string
    A list of Pid Organization IDs.
    NameRegex string
    A regex string to filter results by Pid Organization name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ParentOrganizationId string
    The parent organization id.
    ids List<String>
    A list of Pid Organization IDs.
    nameRegex String
    A regex string to filter results by Pid Organization name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    parentOrganizationId String
    The parent organization id.
    ids string[]
    A list of Pid Organization IDs.
    nameRegex string
    A regex string to filter results by Pid Organization name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    parentOrganizationId string
    The parent organization id.
    ids Sequence[str]
    A list of Pid Organization IDs.
    name_regex str
    A regex string to filter results by Pid Organization name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    parent_organization_id str
    The parent organization id.
    ids List<String>
    A list of Pid Organization IDs.
    nameRegex String
    A regex string to filter results by Pid Organization name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    parentOrganizationId String
    The parent organization id.

    getIndustrialPidOrganizations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    Organizations List<Pulumi.AliCloud.Brain.Outputs.GetIndustrialPidOrganizationsOrganization>
    NameRegex string
    OutputFile string
    ParentOrganizationId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    Organizations []GetIndustrialPidOrganizationsOrganization
    NameRegex string
    OutputFile string
    ParentOrganizationId string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    organizations List<GetIndustrialPidOrganizationsOrganization>
    nameRegex String
    outputFile String
    parentOrganizationId String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    organizations GetIndustrialPidOrganizationsOrganization[]
    nameRegex string
    outputFile string
    parentOrganizationId string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    organizations Sequence[GetIndustrialPidOrganizationsOrganization]
    name_regex str
    output_file str
    parent_organization_id str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    organizations List<Property Map>
    nameRegex String
    outputFile String
    parentOrganizationId String

    Supporting Types

    GetIndustrialPidOrganizationsOrganization

    Id string
    The ID of the Pid Organization.
    ParentPidOrganizationId string
    The parent organization id.
    PidOrganizationId string
    The organization id.
    PidOrganizationLevel int
    The organization level.
    PidOrganizationName string
    The organization name.
    Id string
    The ID of the Pid Organization.
    ParentPidOrganizationId string
    The parent organization id.
    PidOrganizationId string
    The organization id.
    PidOrganizationLevel int
    The organization level.
    PidOrganizationName string
    The organization name.
    id String
    The ID of the Pid Organization.
    parentPidOrganizationId String
    The parent organization id.
    pidOrganizationId String
    The organization id.
    pidOrganizationLevel Integer
    The organization level.
    pidOrganizationName String
    The organization name.
    id string
    The ID of the Pid Organization.
    parentPidOrganizationId string
    The parent organization id.
    pidOrganizationId string
    The organization id.
    pidOrganizationLevel number
    The organization level.
    pidOrganizationName string
    The organization name.
    id str
    The ID of the Pid Organization.
    parent_pid_organization_id str
    The parent organization id.
    pid_organization_id str
    The organization id.
    pid_organization_level int
    The organization level.
    pid_organization_name str
    The organization name.
    id String
    The ID of the Pid Organization.
    parentPidOrganizationId String
    The parent organization id.
    pidOrganizationId String
    The organization id.
    pidOrganizationLevel Number
    The organization level.
    pidOrganizationName String
    The organization name.

    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