Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.26.0 published on Friday, Jul 29, 2022 by Pulumi

getIndustrialPidOrganizations

This data source provides the Brain Industrial Pid Organizations 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.GetIndustrialPidOrganizations.InvokeAsync(new AliCloud.Brain.GetIndustrialPidOrganizationsArgs
        {
            Ids = 
            {
                "3e74e684-cbb5-xxxx",
            },
            NameRegex = "tf-testAcc",
        }));
        this.FirstBrainIndustrialPidOrganizationId = example.Apply(example => example.Organizations?[0]?.Id);
    }

    [Output("firstBrainIndustrialPidOrganizationId")]
    public Output<string> FirstBrainIndustrialPidOrganizationId { 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.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
	})
}

Coming soon!

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)
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);

Coming soon!

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
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
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
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
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
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
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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.