Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.brain.getIndustrialPidOrganizations
Explore with Pulumi AI
This data source provides the Brain Industrial Pid Organizations 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.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.
- Name
Regex string - A regex string to filter results by Pid Organization name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Parent
Organization stringId - The parent organization id.
- Ids []string
- A list of Pid Organization IDs.
- Name
Regex string - A regex string to filter results by Pid Organization name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Parent
Organization stringId - The parent organization id.
- ids List<String>
- A list of Pid Organization IDs.
- name
Regex String - A regex string to filter results by Pid Organization name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - parent
Organization StringId - The parent organization id.
- ids string[]
- A list of Pid Organization IDs.
- name
Regex string - A regex string to filter results by Pid Organization name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - parent
Organization stringId - 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_ strid - The parent organization id.
- ids List<String>
- A list of Pid Organization IDs.
- name
Regex String - A regex string to filter results by Pid Organization name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - parent
Organization StringId - 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>
- A list of Pid Organization names.
- Organizations
List<Pulumi.
Ali Cloud. Brain. Outputs. Get Industrial Pid Organizations Organization> - A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- Name
Regex string - Output
File string - Parent
Organization stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Pid Organization names.
- Organizations
[]Get
Industrial Pid Organizations Organization - A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- Name
Regex string - Output
File string - Parent
Organization stringId
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Pid Organization names.
- organizations
List<Get
Industrial Pid Organizations Organization> - A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- name
Regex String - output
File String - parent
Organization StringId
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Pid Organization names.
- organizations
Get
Industrial Pid Organizations Organization[] - A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- name
Regex string - output
File string - parent
Organization stringId
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Pid Organization names.
- organizations
Sequence[Get
Industrial Pid Organizations Organization] - A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- name_
regex str - output_
file str - parent_
organization_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Pid Organization names.
- organizations List<Property Map>
- A list of Brain Industrial Pid Organizations. Each element contains the following attributes:
- name
Regex String - output
File String - parent
Organization StringId
Supporting Types
GetIndustrialPidOrganizationsOrganization
- Id string
- The ID of the Pid Organization.
- Parent
Pid stringOrganization Id - The parent organization id.
- Pid
Organization stringId - The organization id.
- Pid
Organization intLevel - The organization level.
- Pid
Organization stringName - The organization name.
- Id string
- The ID of the Pid Organization.
- Parent
Pid stringOrganization Id - The parent organization id.
- Pid
Organization stringId - The organization id.
- Pid
Organization intLevel - The organization level.
- Pid
Organization stringName - The organization name.
- id String
- The ID of the Pid Organization.
- parent
Pid StringOrganization Id - The parent organization id.
- pid
Organization StringId - The organization id.
- pid
Organization IntegerLevel - The organization level.
- pid
Organization StringName - The organization name.
- id string
- The ID of the Pid Organization.
- parent
Pid stringOrganization Id - The parent organization id.
- pid
Organization stringId - The organization id.
- pid
Organization numberLevel - The organization level.
- pid
Organization stringName - The organization name.
- id str
- The ID of the Pid Organization.
- parent_
pid_ strorganization_ id - The parent organization id.
- pid_
organization_ strid - The organization id.
- pid_
organization_ intlevel - The organization level.
- pid_
organization_ strname - The organization name.
- id String
- The ID of the Pid Organization.
- parent
Pid StringOrganization Id - The parent organization id.
- pid
Organization StringId - The organization id.
- pid
Organization NumberLevel - The organization level.
- pid
Organization StringName - 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.