Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.cfg.getAggregators
Explore with Pulumi AI
This data source provides the Config Aggregators of the current Alibaba Cloud user.
NOTE: Available since v1.124.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cfg.getAggregators({
    ids: ["ca-3ce2626622af0005****"],
    nameRegex: "the_resource_name",
});
export const firstConfigAggregatorId = example.then(example => example.aggregators?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cfg.get_aggregators(ids=["ca-3ce2626622af0005****"],
    name_regex="the_resource_name")
pulumi.export("firstConfigAggregatorId", example.aggregators[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cfg.GetAggregators(ctx, &cfg.GetAggregatorsArgs{
			Ids: []string{
				"ca-3ce2626622af0005****",
			},
			NameRegex: pulumi.StringRef("the_resource_name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstConfigAggregatorId", example.Aggregators[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Cfg.GetAggregators.Invoke(new()
    {
        Ids = new[]
        {
            "ca-3ce2626622af0005****",
        },
        NameRegex = "the_resource_name",
    });
    return new Dictionary<string, object?>
    {
        ["firstConfigAggregatorId"] = example.Apply(getAggregatorsResult => getAggregatorsResult.Aggregators[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cfg.CfgFunctions;
import com.pulumi.alicloud.cfg.inputs.GetAggregatorsArgs;
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 = CfgFunctions.getAggregators(GetAggregatorsArgs.builder()
            .ids("ca-3ce2626622af0005****")
            .nameRegex("the_resource_name")
            .build());
        ctx.export("firstConfigAggregatorId", example.applyValue(getAggregatorsResult -> getAggregatorsResult.aggregators()[0].id()));
    }
}
variables:
  example:
    fn::invoke:
      function: alicloud:cfg:getAggregators
      arguments:
        ids:
          - ca-3ce2626622af0005****
        nameRegex: the_resource_name
outputs:
  firstConfigAggregatorId: ${example.aggregators[0].id}
Using getAggregators
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 getAggregators(args: GetAggregatorsArgs, opts?: InvokeOptions): Promise<GetAggregatorsResult>
function getAggregatorsOutput(args: GetAggregatorsOutputArgs, opts?: InvokeOptions): Output<GetAggregatorsResult>def get_aggregators(enable_details: Optional[bool] = None,
                    ids: Optional[Sequence[str]] = None,
                    name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    status: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAggregatorsResult
def get_aggregators_output(enable_details: Optional[pulumi.Input[bool]] = None,
                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    status: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAggregatorsResult]func GetAggregators(ctx *Context, args *GetAggregatorsArgs, opts ...InvokeOption) (*GetAggregatorsResult, error)
func GetAggregatorsOutput(ctx *Context, args *GetAggregatorsOutputArgs, opts ...InvokeOption) GetAggregatorsResultOutput> Note: This function is named GetAggregators in the Go SDK.
public static class GetAggregators 
{
    public static Task<GetAggregatorsResult> InvokeAsync(GetAggregatorsArgs args, InvokeOptions? opts = null)
    public static Output<GetAggregatorsResult> Invoke(GetAggregatorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAggregatorsResult> getAggregators(GetAggregatorsArgs args, InvokeOptions options)
public static Output<GetAggregatorsResult> getAggregators(GetAggregatorsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:cfg/getAggregators:getAggregators
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids List<string>
 - A list of aggregator ids.
 - Name
Regex string - A regex string to filter results by aggregator name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids []string
 - A list of aggregator ids.
 - Name
Regex string - A regex string to filter results by aggregator name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of aggregator ids.
 - name
Regex String - A regex string to filter results by aggregator name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - status String
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- enable
Details boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids string[]
 - A list of aggregator ids.
 - name
Regex string - A regex string to filter results by aggregator name.
 - output
File string - File name where to save data source results (after running 
pulumi preview). - status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- enable_
details bool - Default to 
false. Set it totruecan output more details about resource attributes. - ids Sequence[str]
 - A list of aggregator ids.
 - name_
regex str - A regex string to filter results by aggregator name.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). - status str
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of aggregator ids.
 - name
Regex String - A regex string to filter results by aggregator name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - status String
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
getAggregators Result
The following output properties are available:
- Aggregators
List<Pulumi.
Ali Cloud. Cfg. Outputs. Get Aggregators Aggregator>  - A list of config aggregators. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - A list of Aggregator names.
 - Enable
Details bool - Name
Regex string - Output
File string - Status string
 - The status of the resource.
 
- Aggregators
[]Get
Aggregators Aggregator  - A list of config aggregators. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - A list of Aggregator names.
 - Enable
Details bool - Name
Regex string - Output
File string - Status string
 - The status of the resource.
 
- aggregators
List<Get
Aggregators Aggregator>  - A list of config aggregators. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - A list of Aggregator names.
 - enable
Details Boolean - name
Regex String - output
File String - status String
 - The status of the resource.
 
- aggregators
Get
Aggregators Aggregator[]  - A list of config aggregators. Each element contains the following attributes:
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - A list of Aggregator names.
 - enable
Details boolean - name
Regex string - output
File string - status string
 - The status of the resource.
 
- aggregators
Sequence[Get
Aggregators Aggregator]  - A list of config aggregators. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - names Sequence[str]
 - A list of Aggregator names.
 - enable_
details bool - name_
regex str - output_
file str - status str
 - The status of the resource.
 
- aggregators List<Property Map>
 - A list of config aggregators. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - A list of Aggregator names.
 - enable
Details Boolean - name
Regex String - output
File String - status String
 - The status of the resource.
 
Supporting Types
GetAggregatorsAggregator  
- Account
Id string - Aggregator account uid.
 - Aggregator
Accounts List<Pulumi.Ali Cloud. Cfg. Inputs. Get Aggregators Aggregator Aggregator Account>  - Account information in aggregator.
 - Aggregator
Id string - The id of aggregator.
 - Aggregator
Name string - The name of aggregator.
 - Aggregator
Type string - The type of aggregator.
 - Description string
 - The description of aggregator.
 - Id string
 - The id of the aggregator.
 - Status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- Account
Id string - Aggregator account uid.
 - Aggregator
Accounts []GetAggregators Aggregator Aggregator Account  - Account information in aggregator.
 - Aggregator
Id string - The id of aggregator.
 - Aggregator
Name string - The name of aggregator.
 - Aggregator
Type string - The type of aggregator.
 - Description string
 - The description of aggregator.
 - Id string
 - The id of the aggregator.
 - Status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- account
Id String - Aggregator account uid.
 - aggregator
Accounts List<GetAggregators Aggregator Aggregator Account>  - Account information in aggregator.
 - aggregator
Id String - The id of aggregator.
 - aggregator
Name String - The name of aggregator.
 - aggregator
Type String - The type of aggregator.
 - description String
 - The description of aggregator.
 - id String
 - The id of the aggregator.
 - status String
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- account
Id string - Aggregator account uid.
 - aggregator
Accounts GetAggregators Aggregator Aggregator Account[]  - Account information in aggregator.
 - aggregator
Id string - The id of aggregator.
 - aggregator
Name string - The name of aggregator.
 - aggregator
Type string - The type of aggregator.
 - description string
 - The description of aggregator.
 - id string
 - The id of the aggregator.
 - status string
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- account_
id str - Aggregator account uid.
 - aggregator_
accounts Sequence[GetAggregators Aggregator Aggregator Account]  - Account information in aggregator.
 - aggregator_
id str - The id of aggregator.
 - aggregator_
name str - The name of aggregator.
 - aggregator_
type str - The type of aggregator.
 - description str
 - The description of aggregator.
 - id str
 - The id of the aggregator.
 - status str
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
- account
Id String - Aggregator account uid.
 - aggregator
Accounts List<Property Map> - Account information in aggregator.
 - aggregator
Id String - The id of aggregator.
 - aggregator
Name String - The name of aggregator.
 - aggregator
Type String - The type of aggregator.
 - description String
 - The description of aggregator.
 - id String
 - The id of the aggregator.
 - status String
 - The status of the resource. Valid Values: 
0: creating1: normal2: deleting. 
GetAggregatorsAggregatorAggregatorAccount    
- Account
Id string - Aggregator account uid.
 - Account
Name string - Aggregator account name.
 - Account
Type string - Aggregator account source type.
 
- Account
Id string - Aggregator account uid.
 - Account
Name string - Aggregator account name.
 - Account
Type string - Aggregator account source type.
 
- account
Id String - Aggregator account uid.
 - account
Name String - Aggregator account name.
 - account
Type String - Aggregator account source type.
 
- account
Id string - Aggregator account uid.
 - account
Name string - Aggregator account name.
 - account
Type string - Aggregator account source type.
 
- account_
id str - Aggregator account uid.
 - account_
name str - Aggregator account name.
 - account_
type str - Aggregator account source type.
 
- account
Id String - Aggregator account uid.
 - account
Name String - Aggregator account name.
 - account
Type String - Aggregator account source type.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.