1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. getRegistryHelm
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.getRegistryHelm

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const myHelmRegistry = spectrocloud.getRegistryHelm({
        name: "my-helm-registry",
    });
    export const helmRegistryId = myHelmRegistry.then(myHelmRegistry => myHelmRegistry.id);
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    my_helm_registry = spectrocloud.get_registry_helm(name="my-helm-registry")
    pulumi.export("helmRegistryId", my_helm_registry.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myHelmRegistry, err := spectrocloud.LookupRegistryHelm(ctx, &spectrocloud.LookupRegistryHelmArgs{
    			Name: "my-helm-registry",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("helmRegistryId", myHelmRegistry.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myHelmRegistry = Spectrocloud.GetRegistryHelm.Invoke(new()
        {
            Name = "my-helm-registry",
        });
    
        return new Dictionary<string, object?>
        {
            ["helmRegistryId"] = myHelmRegistry.Apply(getRegistryHelmResult => getRegistryHelmResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.SpectrocloudFunctions;
    import com.pulumi.spectrocloud.inputs.GetRegistryHelmArgs;
    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 myHelmRegistry = SpectrocloudFunctions.getRegistryHelm(GetRegistryHelmArgs.builder()
                .name("my-helm-registry")
                .build());
    
            ctx.export("helmRegistryId", myHelmRegistry.applyValue(getRegistryHelmResult -> getRegistryHelmResult.id()));
        }
    }
    
    variables:
      myHelmRegistry:
        fn::invoke:
          function: spectrocloud:getRegistryHelm
          arguments:
            name: my-helm-registry
    outputs:
      # Output the ID of the retrieved Helm registry
      helmRegistryId: ${myHelmRegistry.id}
    

    Using getRegistryHelm

    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 getRegistryHelm(args: GetRegistryHelmArgs, opts?: InvokeOptions): Promise<GetRegistryHelmResult>
    function getRegistryHelmOutput(args: GetRegistryHelmOutputArgs, opts?: InvokeOptions): Output<GetRegistryHelmResult>
    def get_registry_helm(id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRegistryHelmResult
    def get_registry_helm_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetRegistryHelmResult]
    func LookupRegistryHelm(ctx *Context, args *LookupRegistryHelmArgs, opts ...InvokeOption) (*LookupRegistryHelmResult, error)
    func LookupRegistryHelmOutput(ctx *Context, args *LookupRegistryHelmOutputArgs, opts ...InvokeOption) LookupRegistryHelmResultOutput

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

    public static class GetRegistryHelm 
    {
        public static Task<GetRegistryHelmResult> InvokeAsync(GetRegistryHelmArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryHelmResult> Invoke(GetRegistryHelmInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryHelmResult> getRegistryHelm(GetRegistryHelmArgs args, InvokeOptions options)
    public static Output<GetRegistryHelmResult> getRegistryHelm(GetRegistryHelmArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getRegistryHelm:getRegistryHelm
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Id string
    The ID of this resource.
    Name string
    Id string
    The ID of this resource.
    name String
    id String
    The ID of this resource.
    name string
    id string
    The ID of this resource.
    name str
    id str
    The ID of this resource.
    name String
    id String
    The ID of this resource.

    getRegistryHelm Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Id string
    The ID of this resource.
    Name string
    id String
    The ID of this resource.
    name String
    id string
    The ID of this resource.
    name string
    id str
    The ID of this resource.
    name str
    id String
    The ID of this resource.
    name String

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud