spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
spectrocloud.getPackSimple
Explore with Pulumi AI
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
This data resource provides a simpler user experience for searching for a pack in Palette registries.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const registry = spectrocloud.getRegistry({
    name: "Public Repo",
});
const pack = spectrocloud.getPackSimple({
    name: "mongodb-community-operator",
    registryUid: "data.spectrocloud_registry.registry.id",
    type: "operator-instance",
    version: "0.7.6",
});
import pulumi
import pulumi_spectrocloud as spectrocloud
registry = spectrocloud.get_registry(name="Public Repo")
pack = spectrocloud.get_pack_simple(name="mongodb-community-operator",
    registry_uid="data.spectrocloud_registry.registry.id",
    type="operator-instance",
    version="0.7.6")
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 {
		_, err := spectrocloud.GetRegistry(ctx, &spectrocloud.GetRegistryArgs{
			Name: "Public Repo",
		}, nil)
		if err != nil {
			return err
		}
		_, err = spectrocloud.GetPackSimple(ctx, &spectrocloud.GetPackSimpleArgs{
			Name:        "mongodb-community-operator",
			RegistryUid: pulumi.StringRef("data.spectrocloud_registry.registry.id"),
			Type:        "operator-instance",
			Version:     pulumi.StringRef("0.7.6"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() => 
{
    var registry = Spectrocloud.GetRegistry.Invoke(new()
    {
        Name = "Public Repo",
    });
    var pack = Spectrocloud.GetPackSimple.Invoke(new()
    {
        Name = "mongodb-community-operator",
        RegistryUid = "data.spectrocloud_registry.registry.id",
        Type = "operator-instance",
        Version = "0.7.6",
    });
});
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.GetRegistryArgs;
import com.pulumi.spectrocloud.inputs.GetPackSimpleArgs;
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 registry = SpectrocloudFunctions.getRegistry(GetRegistryArgs.builder()
            .name("Public Repo")
            .build());
        final var pack = SpectrocloudFunctions.getPackSimple(GetPackSimpleArgs.builder()
            .name("mongodb-community-operator")
            .registryUid("data.spectrocloud_registry.registry.id")
            .type("operator-instance")
            .version("0.7.6")
            .build());
    }
}
variables:
  registry:
    fn::invoke:
      function: spectrocloud:getRegistry
      arguments:
        name: Public Repo
  pack:
    fn::invoke:
      function: spectrocloud:getPackSimple
      arguments:
        name: mongodb-community-operator
        registryUid: data.spectrocloud_registry.registry.id
        type: operator-instance
        version: 0.7.6
Using getPackSimple
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 getPackSimple(args: GetPackSimpleArgs, opts?: InvokeOptions): Promise<GetPackSimpleResult>
function getPackSimpleOutput(args: GetPackSimpleOutputArgs, opts?: InvokeOptions): Output<GetPackSimpleResult>def get_pack_simple(context: Optional[str] = None,
                    id: Optional[str] = None,
                    name: Optional[str] = None,
                    registry_uid: Optional[str] = None,
                    type: Optional[str] = None,
                    version: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetPackSimpleResult
def get_pack_simple_output(context: Optional[pulumi.Input[str]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    registry_uid: Optional[pulumi.Input[str]] = None,
                    type: Optional[pulumi.Input[str]] = None,
                    version: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetPackSimpleResult]func GetPackSimple(ctx *Context, args *GetPackSimpleArgs, opts ...InvokeOption) (*GetPackSimpleResult, error)
func GetPackSimpleOutput(ctx *Context, args *GetPackSimpleOutputArgs, opts ...InvokeOption) GetPackSimpleResultOutput> Note: This function is named GetPackSimple in the Go SDK.
public static class GetPackSimple 
{
    public static Task<GetPackSimpleResult> InvokeAsync(GetPackSimpleArgs args, InvokeOptions? opts = null)
    public static Output<GetPackSimpleResult> Invoke(GetPackSimpleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPackSimpleResult> getPackSimple(GetPackSimpleArgs args, InvokeOptions options)
public static Output<GetPackSimpleResult> getPackSimple(GetPackSimpleArgs args, InvokeOptions options)
fn::invoke:
  function: spectrocloud:index/getPackSimple:getPackSimple
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the pack.
- Type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- Id string
- The ID of this resource.
- RegistryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- Version string
- The version of the pack.
- Name string
- The name of the pack.
- Type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- Id string
- The ID of this resource.
- RegistryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- Version string
- The version of the pack.
- name String
- The name of the pack.
- type String
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- context String
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- id String
- The ID of this resource.
- registryUid String
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version String
- The version of the pack.
- name string
- The name of the pack.
- type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- id string
- The ID of this resource.
- registryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version string
- The version of the pack.
- name str
- The name of the pack.
- type str
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- context str
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- id str
- The ID of this resource.
- registry_uid str
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version str
- The version of the pack.
- name String
- The name of the pack.
- type String
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- context String
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- id String
- The ID of this resource.
- registryUid String
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version String
- The version of the pack.
getPackSimple Result
The following output properties are available:
- Id string
- The ID of this resource.
- Name string
- The name of the pack.
- Type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- Values string
- This is a stringified YAML object containing the pack configuration details.
- Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- RegistryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- Version string
- The version of the pack.
- Id string
- The ID of this resource.
- Name string
- The name of the pack.
- Type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- Values string
- This is a stringified YAML object containing the pack configuration details.
- Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- RegistryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- Version string
- The version of the pack.
- id String
- The ID of this resource.
- name String
- The name of the pack.
- type String
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- values String
- This is a stringified YAML object containing the pack configuration details.
- context String
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- registryUid String
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version String
- The version of the pack.
- id string
- The ID of this resource.
- name string
- The name of the pack.
- type string
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- values string
- This is a stringified YAML object containing the pack configuration details.
- context string
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- registryUid string
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version string
- The version of the pack.
- id str
- The ID of this resource.
- name str
- The name of the pack.
- type str
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- values str
- This is a stringified YAML object containing the pack configuration details.
- context str
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- registry_uid str
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version str
- The version of the pack.
- id String
- The ID of this resource.
- name String
- The name of the pack.
- type String
- The type of Pack. Allowed values are helm,manifest,containeroroperator-instance.
- values String
- This is a stringified YAML object containing the pack configuration details.
- context String
- Indicates in which context registry should be searched for the pack values. Allowed values are system,projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name.
- registryUid String
- The unique identifier (UID) of the registry where the pack is located. Specify registry_uidto search within a specific registry.
- version String
- The version of the pack.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the spectrocloudTerraform Provider.
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud