1. Packages
  2. DanubeData
  3. API Docs
  4. getCacheProviders
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
danubedata logo
DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi

    # danubedata.getCacheProviders

    Lists available cache providers (Redis, Valkey, Dragonfly).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as danubedata from "@pulumi/danubedata";
    
    const all = danubedata.getCacheProviders({});
    export const cacheProviders = all.then(all => .map(p => ({
        id: p.id,
        name: p.name,
    })));
    
    import pulumi
    import pulumi_danubedata as danubedata
    
    all = danubedata.get_cache_providers()
    pulumi.export("cacheProviders", [{
        "id": p.id,
        "name": p.name,
    } for p in all.providers])
    
    package main
    
    import (
    	"github.com/AdrianSilaghi/pulumi-danubedata/sdk/go/danubedata"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := danubedata.GetCacheProviders(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cacheProviders", pulumi.MapArray("TODO: For expression"))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DanubeData = Pulumi.DanubeData;
    
    return await Deployment.RunAsync(() => 
    {
        var all = DanubeData.GetCacheProviders.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["cacheProviders"] = .Select(p => 
            {
                return 
                {
                    { "id", p.Id },
                    { "name", p.Name },
                };
            }).ToList(),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.danubedata.DanubedataFunctions;
    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 all = DanubedataFunctions.getCacheProviders();
    
            ctx.export("cacheProviders", "TODO: ForExpression");
        }
    }
    
    Example coming soon!
    

    Using getCacheProviders

    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 getCacheProviders(opts?: InvokeOptions): Promise<GetCacheProvidersResult>
    function getCacheProvidersOutput(opts?: InvokeOptions): Output<GetCacheProvidersResult>
    def get_cache_providers(opts: Optional[InvokeOptions] = None) -> GetCacheProvidersResult
    def get_cache_providers_output(opts: Optional[InvokeOptions] = None) -> Output[GetCacheProvidersResult]
    func GetCacheProviders(ctx *Context, opts ...InvokeOption) (*GetCacheProvidersResult, error)
    func GetCacheProvidersOutput(ctx *Context, opts ...InvokeOption) GetCacheProvidersResultOutput

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

    public static class GetCacheProviders 
    {
        public static Task<GetCacheProvidersResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCacheProvidersResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCacheProvidersResult> getCacheProviders(InvokeOptions options)
    public static Output<GetCacheProvidersResult> getCacheProviders(InvokeOptions options)
    
    fn::invoke:
      function: danubedata:index/getCacheProviders:getCacheProviders
      arguments:
        # arguments dictionary

    getCacheProviders Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Providers List<DanubeData.DanubeData.Outputs.GetCacheProvidersProvider>
    List of cache providers. Each provider contains:
    Id string
    The provider-assigned unique ID for this managed resource.
    Providers []GetCacheProvidersProvider
    List of cache providers. Each provider contains:
    id String
    The provider-assigned unique ID for this managed resource.
    providers List<GetCacheProvidersProvider>
    List of cache providers. Each provider contains:
    id string
    The provider-assigned unique ID for this managed resource.
    providers GetCacheProvidersProvider[]
    List of cache providers. Each provider contains:
    id str
    The provider-assigned unique ID for this managed resource.
    providers Sequence[GetCacheProvidersProvider]
    List of cache providers. Each provider contains:
    id String
    The provider-assigned unique ID for this managed resource.
    providers List<Property Map>
    List of cache providers. Each provider contains:

    Supporting Types

    GetCacheProvidersProvider

    DefaultPort int
    Default port number.
    Description string
    Provider description.
    Id int
    The provider ID.
    Name string
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    Type string
    Provider type identifier.
    Version string
    Default version.
    DefaultPort int
    Default port number.
    Description string
    Provider description.
    Id int
    The provider ID.
    Name string
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    Type string
    Provider type identifier.
    Version string
    Default version.
    defaultPort Integer
    Default port number.
    description String
    Provider description.
    id Integer
    The provider ID.
    name String
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    type String
    Provider type identifier.
    version String
    Default version.
    defaultPort number
    Default port number.
    description string
    Provider description.
    id number
    The provider ID.
    name string
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    type string
    Provider type identifier.
    version string
    Default version.
    default_port int
    Default port number.
    description str
    Provider description.
    id int
    The provider ID.
    name str
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    type str
    Provider type identifier.
    version str
    Default version.
    defaultPort Number
    Default port number.
    description String
    Provider description.
    id Number
    The provider ID.
    name String
    Provider name (e.g., "Redis", "Valkey", "Dragonfly").
    type String
    Provider type identifier.
    version String
    Default version.

    Package Details

    Repository
    danubedata AdrianSilaghi/pulumi-danubedata
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the danubedata Terraform Provider.
    danubedata logo
    DanubeData v0.1.7 published on Sunday, Feb 1, 2026 by AdrianSilaghi
      Meet Neo: Your AI Platform Teammate