1. Packages
  2. Aiven Provider
  3. API Docs
  4. getServiceList
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
aiven logo
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi

    A list of all services in a project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    // Use the `aiven_service_list` data source to query all services in a project.
    const allServices = aiven.getServiceList({
        project: "example-project-name",
    });
    export const serviceNames = allServices.then(allServices => .map(service => (service.name)));
    export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType)));
    const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service)));
    export const kafkaServiceNames = kafkaServices.map(service => (service.name));
    
    import pulumi
    import pulumi_aiven as aiven
    
    # Use the `aiven_service_list` data source to query all services in a project.
    all_services = aiven.get_service_list(project="example-project-name")
    pulumi.export("serviceNames", [service.name for service in all_services.services])
    pulumi.export("serviceTypes", [service.service_type for service in all_services.services])
    kafka_services = [service for service in all_services.services if service.service_type == "kafka"]
    pulumi.export("kafkaServiceNames", [service.name for service in kafka_services])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        // Use the `aiven_service_list` data source to query all services in a project.
        var allServices = Aiven.GetServiceList.Invoke(new()
        {
            Project = "example-project-name",
        });
    
        var kafkaServices = .Where(service => service.ServiceType == "kafka").Select(service => 
        {
            return service;
        }).ToList();
    
        return new Dictionary<string, object?>
        {
            ["serviceNames"] = .Select(service => 
            {
                return service.Name;
            }).ToList(),
            ["serviceTypes"] = .Select(service => 
            {
                return service.ServiceType;
            }).ToList(),
            ["kafkaServiceNames"] = kafkaServices.Select(service => 
            {
                return service.Name;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getServiceList

    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 getServiceList(args: GetServiceListArgs, opts?: InvokeOptions): Promise<GetServiceListResult>
    function getServiceListOutput(args: GetServiceListOutputArgs, opts?: InvokeOptions): Output<GetServiceListResult>
    def get_service_list(project: Optional[str] = None,
                         services: Optional[Sequence[GetServiceListService]] = None,
                         timeouts: Optional[GetServiceListTimeouts] = None,
                         opts: Optional[InvokeOptions] = None) -> GetServiceListResult
    def get_service_list_output(project: Optional[pulumi.Input[str]] = None,
                         services: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceListServiceArgs]]]] = None,
                         timeouts: Optional[pulumi.Input[GetServiceListTimeoutsArgs]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServiceListResult]
    func GetServiceList(ctx *Context, args *GetServiceListArgs, opts ...InvokeOption) (*GetServiceListResult, error)
    func GetServiceListOutput(ctx *Context, args *GetServiceListOutputArgs, opts ...InvokeOption) GetServiceListResultOutput

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

    public static class GetServiceList 
    {
        public static Task<GetServiceListResult> InvokeAsync(GetServiceListArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceListResult> Invoke(GetServiceListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceListResult> getServiceList(GetServiceListArgs args, InvokeOptions options)
    public static Output<GetServiceListResult> getServiceList(GetServiceListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getServiceList:getServiceList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Project string
    Project name.
    Services List<GetServiceListService>
    List of services under the project.
    Timeouts GetServiceListTimeouts
    Project string
    Project name.
    Services []GetServiceListService
    List of services under the project.
    Timeouts GetServiceListTimeouts
    project String
    Project name.
    services List<GetServiceListService>
    List of services under the project.
    timeouts GetServiceListTimeouts
    project string
    Project name.
    services GetServiceListService[]
    List of services under the project.
    timeouts GetServiceListTimeouts
    project str
    Project name.
    services Sequence[GetServiceListService]
    List of services under the project.
    timeouts GetServiceListTimeouts
    project String
    Project name.
    services List<Property Map>
    List of services under the project.
    timeouts Property Map

    getServiceList Result

    The following output properties are available:

    Id string
    Resource ID, equal to project.
    Project string
    Project name.
    Services List<GetServiceListService>
    List of services under the project.
    Timeouts GetServiceListTimeouts
    Id string
    Resource ID, equal to project.
    Project string
    Project name.
    Services []GetServiceListService
    List of services under the project.
    Timeouts GetServiceListTimeouts
    id String
    Resource ID, equal to project.
    project String
    Project name.
    services List<GetServiceListService>
    List of services under the project.
    timeouts GetServiceListTimeouts
    id string
    Resource ID, equal to project.
    project string
    Project name.
    services GetServiceListService[]
    List of services under the project.
    timeouts GetServiceListTimeouts
    id str
    Resource ID, equal to project.
    project str
    Project name.
    services Sequence[GetServiceListService]
    List of services under the project.
    timeouts GetServiceListTimeouts
    id String
    Resource ID, equal to project.
    project String
    Project name.
    services List<Property Map>
    List of services under the project.
    timeouts Property Map

    Supporting Types

    GetServiceListService

    CloudDescription string
    Cloud provider and location.
    CloudName string
    Target cloud.
    CreateTime string
    Service creation timestamp (ISO 8601).
    DiskSpaceMb int
    Megabytes of disk space for data storage.
    NodeCount int
    Number of service nodes in the active plan.
    NodeCpuCount int
    Number of CPUs for each node.
    NodeMemoryMb double
    Megabytes of memory for each node.
    Plan string
    Subscription plan.
    ProjectVpcId string
    Project VPC ID.
    ServiceName string
    Service name.
    ServiceType string
    Service type code.
    ServiceTypeDescription string
    Single line description of the service.
    ServiceUri string
    URI for connecting to the service (may be null).
    State string
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    TerminationProtection bool
    Service is protected against termination and powering off.
    UpdateTime string
    Service last update timestamp (ISO 8601).
    CloudDescription string
    Cloud provider and location.
    CloudName string
    Target cloud.
    CreateTime string
    Service creation timestamp (ISO 8601).
    DiskSpaceMb int
    Megabytes of disk space for data storage.
    NodeCount int
    Number of service nodes in the active plan.
    NodeCpuCount int
    Number of CPUs for each node.
    NodeMemoryMb float64
    Megabytes of memory for each node.
    Plan string
    Subscription plan.
    ProjectVpcId string
    Project VPC ID.
    ServiceName string
    Service name.
    ServiceType string
    Service type code.
    ServiceTypeDescription string
    Single line description of the service.
    ServiceUri string
    URI for connecting to the service (may be null).
    State string
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    TerminationProtection bool
    Service is protected against termination and powering off.
    UpdateTime string
    Service last update timestamp (ISO 8601).
    cloudDescription String
    Cloud provider and location.
    cloudName String
    Target cloud.
    createTime String
    Service creation timestamp (ISO 8601).
    diskSpaceMb Integer
    Megabytes of disk space for data storage.
    nodeCount Integer
    Number of service nodes in the active plan.
    nodeCpuCount Integer
    Number of CPUs for each node.
    nodeMemoryMb Double
    Megabytes of memory for each node.
    plan String
    Subscription plan.
    projectVpcId String
    Project VPC ID.
    serviceName String
    Service name.
    serviceType String
    Service type code.
    serviceTypeDescription String
    Single line description of the service.
    serviceUri String
    URI for connecting to the service (may be null).
    state String
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    terminationProtection Boolean
    Service is protected against termination and powering off.
    updateTime String
    Service last update timestamp (ISO 8601).
    cloudDescription string
    Cloud provider and location.
    cloudName string
    Target cloud.
    createTime string
    Service creation timestamp (ISO 8601).
    diskSpaceMb number
    Megabytes of disk space for data storage.
    nodeCount number
    Number of service nodes in the active plan.
    nodeCpuCount number
    Number of CPUs for each node.
    nodeMemoryMb number
    Megabytes of memory for each node.
    plan string
    Subscription plan.
    projectVpcId string
    Project VPC ID.
    serviceName string
    Service name.
    serviceType string
    Service type code.
    serviceTypeDescription string
    Single line description of the service.
    serviceUri string
    URI for connecting to the service (may be null).
    state string
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    terminationProtection boolean
    Service is protected against termination and powering off.
    updateTime string
    Service last update timestamp (ISO 8601).
    cloud_description str
    Cloud provider and location.
    cloud_name str
    Target cloud.
    create_time str
    Service creation timestamp (ISO 8601).
    disk_space_mb int
    Megabytes of disk space for data storage.
    node_count int
    Number of service nodes in the active plan.
    node_cpu_count int
    Number of CPUs for each node.
    node_memory_mb float
    Megabytes of memory for each node.
    plan str
    Subscription plan.
    project_vpc_id str
    Project VPC ID.
    service_name str
    Service name.
    service_type str
    Service type code.
    service_type_description str
    Single line description of the service.
    service_uri str
    URI for connecting to the service (may be null).
    state str
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    termination_protection bool
    Service is protected against termination and powering off.
    update_time str
    Service last update timestamp (ISO 8601).
    cloudDescription String
    Cloud provider and location.
    cloudName String
    Target cloud.
    createTime String
    Service creation timestamp (ISO 8601).
    diskSpaceMb Number
    Megabytes of disk space for data storage.
    nodeCount Number
    Number of service nodes in the active plan.
    nodeCpuCount Number
    Number of CPUs for each node.
    nodeMemoryMb Number
    Megabytes of memory for each node.
    plan String
    Subscription plan.
    projectVpcId String
    Project VPC ID.
    serviceName String
    Service name.
    serviceType String
    Service type code.
    serviceTypeDescription String
    Single line description of the service.
    serviceUri String
    URI for connecting to the service (may be null).
    state String
    State of the service. The possible values are POWEROFF, REBALANCING, REBUILDING and RUNNING.
    terminationProtection Boolean
    Service is protected against termination and powering off.
    updateTime String
    Service last update timestamp (ISO 8601).

    GetServiceListTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate