Viewing docs for Aiven v6.50.0
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 2026 by Pulumi
Viewing docs for Aiven v6.50.0
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 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 dictionaryThe following arguments are supported:
- Project string
- Project name.
- Services
List<Get
Service List Service> - List of services under the project.
- Timeouts
Get
Service List Timeouts
- Project string
- Project name.
- Services
[]Get
Service List Service - List of services under the project.
- Timeouts
Get
Service List Timeouts
- project String
- Project name.
- services
List<Get
Service List Service> - List of services under the project.
- timeouts
Get
Service List Timeouts
- project string
- Project name.
- services
Get
Service List Service[] - List of services under the project.
- timeouts
Get
Service List Timeouts
- project str
- Project name.
- services
Sequence[Get
Service List Service] - List of services under the project.
- timeouts
Get
Service List Timeouts
- 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<Get
Service List Service> - List of services under the project.
- Timeouts
Get
Service List Timeouts
- Id string
- Resource ID, equal to
project. - Project string
- Project name.
- Services
[]Get
Service List Service - List of services under the project.
- Timeouts
Get
Service List Timeouts
- id String
- Resource ID, equal to
project. - project String
- Project name.
- services
List<Get
Service List Service> - List of services under the project.
- timeouts
Get
Service List Timeouts
- id string
- Resource ID, equal to
project. - project string
- Project name.
- services
Get
Service List Service[] - List of services under the project.
- timeouts
Get
Service List Timeouts
- id str
- Resource ID, equal to
project. - project str
- Project name.
- services
Sequence[Get
Service List Service] - List of services under the project.
- timeouts
Get
Service List Timeouts
- 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
- Cloud
Description string - Cloud provider and location.
- Cloud
Name string - Target cloud.
- Create
Time string - Service creation timestamp (ISO 8601).
- Disk
Space intMb - Megabytes of disk space for data storage.
- Node
Count int - Number of service nodes in the active plan.
- Node
Cpu intCount - Number of CPUs for each node.
- Node
Memory doubleMb - Megabytes of memory for each node.
- Plan string
- Subscription plan.
- Project
Vpc stringId - Project VPC ID.
- Service
Name string - Service name.
- Service
Type string - Service type code.
- Service
Type stringDescription - Single line description of the service.
- Service
Uri string - URI for connecting to the service (may be null).
- State string
- State of the service. The possible values are
POWEROFF,REBALANCING,REBUILDINGandRUNNING. - Termination
Protection bool - Service is protected against termination and powering off.
- Update
Time string - Service last update timestamp (ISO 8601).
- Cloud
Description string - Cloud provider and location.
- Cloud
Name string - Target cloud.
- Create
Time string - Service creation timestamp (ISO 8601).
- Disk
Space intMb - Megabytes of disk space for data storage.
- Node
Count int - Number of service nodes in the active plan.
- Node
Cpu intCount - Number of CPUs for each node.
- Node
Memory float64Mb - Megabytes of memory for each node.
- Plan string
- Subscription plan.
- Project
Vpc stringId - Project VPC ID.
- Service
Name string - Service name.
- Service
Type string - Service type code.
- Service
Type stringDescription - Single line description of the service.
- Service
Uri string - URI for connecting to the service (may be null).
- State string
- State of the service. The possible values are
POWEROFF,REBALANCING,REBUILDINGandRUNNING. - Termination
Protection bool - Service is protected against termination and powering off.
- Update
Time string - Service last update timestamp (ISO 8601).
- cloud
Description String - Cloud provider and location.
- cloud
Name String - Target cloud.
- create
Time String - Service creation timestamp (ISO 8601).
- disk
Space IntegerMb - Megabytes of disk space for data storage.
- node
Count Integer - Number of service nodes in the active plan.
- node
Cpu IntegerCount - Number of CPUs for each node.
- node
Memory DoubleMb - Megabytes of memory for each node.
- plan String
- Subscription plan.
- project
Vpc StringId - Project VPC ID.
- service
Name String - Service name.
- service
Type String - Service type code.
- service
Type StringDescription - Single line description of the service.
- service
Uri String - URI for connecting to the service (may be null).
- state String
- State of the service. The possible values are
POWEROFF,REBALANCING,REBUILDINGandRUNNING. - termination
Protection Boolean - Service is protected against termination and powering off.
- update
Time String - Service last update timestamp (ISO 8601).
- cloud
Description string - Cloud provider and location.
- cloud
Name string - Target cloud.
- create
Time string - Service creation timestamp (ISO 8601).
- disk
Space numberMb - Megabytes of disk space for data storage.
- node
Count number - Number of service nodes in the active plan.
- node
Cpu numberCount - Number of CPUs for each node.
- node
Memory numberMb - Megabytes of memory for each node.
- plan string
- Subscription plan.
- project
Vpc stringId - Project VPC ID.
- service
Name string - Service name.
- service
Type string - Service type code.
- service
Type stringDescription - Single line description of the service.
- service
Uri string - URI for connecting to the service (may be null).
- state string
- State of the service. The possible values are
POWEROFF,REBALANCING,REBUILDINGandRUNNING. - termination
Protection boolean - Service is protected against termination and powering off.
- update
Time 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_ intmb - Megabytes of disk space for data storage.
- node_
count int - Number of service nodes in the active plan.
- node_
cpu_ intcount - Number of CPUs for each node.
- node_
memory_ floatmb - Megabytes of memory for each node.
- plan str
- Subscription plan.
- project_
vpc_ strid - Project VPC ID.
- service_
name str - Service name.
- service_
type str - Service type code.
- service_
type_ strdescription - 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,REBUILDINGandRUNNING. - termination_
protection bool - Service is protected against termination and powering off.
- update_
time str - Service last update timestamp (ISO 8601).
- cloud
Description String - Cloud provider and location.
- cloud
Name String - Target cloud.
- create
Time String - Service creation timestamp (ISO 8601).
- disk
Space NumberMb - Megabytes of disk space for data storage.
- node
Count Number - Number of service nodes in the active plan.
- node
Cpu NumberCount - Number of CPUs for each node.
- node
Memory NumberMb - Megabytes of memory for each node.
- plan String
- Subscription plan.
- project
Vpc StringId - Project VPC ID.
- service
Name String - Service name.
- service
Type String - Service type code.
- service
Type StringDescription - Single line description of the service.
- service
Uri String - URI for connecting to the service (may be null).
- state String
- State of the service. The possible values are
POWEROFF,REBALANCING,REBUILDINGandRUNNING. - termination
Protection Boolean - Service is protected against termination and powering off.
- update
Time 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
aivenTerraform Provider.
Viewing docs for Aiven v6.50.0
published on Friday, Feb 27, 2026 by Pulumi
published on Friday, Feb 27, 2026 by Pulumi
