spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud
spectrocloud.getPackSimple
Explore with Pulumi AI
spectrocloud 0.23.5 published on Sunday, Apr 20, 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 example = spectrocloud.getPackSimple({
name: "nginx-pack",
version: "1.2.3",
context: "project",
registryUid: "5ee9c5adc172449eeb9c30cf",
type: "helm",
});
export const packId = example.then(example => example.id);
export const packVersion = example.then(example => example.version);
export const packValues = example.then(example => example.values);
import pulumi
import pulumi_spectrocloud as spectrocloud
example = spectrocloud.get_pack_simple(name="nginx-pack",
version="1.2.3",
context="project",
registry_uid="5ee9c5adc172449eeb9c30cf",
type="helm")
pulumi.export("packId", example.id)
pulumi.export("packVersion", example.version)
pulumi.export("packValues", example.values)
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 {
example, err := spectrocloud.GetPackSimple(ctx, &spectrocloud.GetPackSimpleArgs{
Name: "nginx-pack",
Version: pulumi.StringRef("1.2.3"),
Context: pulumi.StringRef("project"),
RegistryUid: pulumi.StringRef("5ee9c5adc172449eeb9c30cf"),
Type: "helm",
}, nil)
if err != nil {
return err
}
ctx.Export("packId", example.Id)
ctx.Export("packVersion", example.Version)
ctx.Export("packValues", example.Values)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var example = Spectrocloud.GetPackSimple.Invoke(new()
{
Name = "nginx-pack",
Version = "1.2.3",
Context = "project",
RegistryUid = "5ee9c5adc172449eeb9c30cf",
Type = "helm",
});
return new Dictionary<string, object?>
{
["packId"] = example.Apply(getPackSimpleResult => getPackSimpleResult.Id),
["packVersion"] = example.Apply(getPackSimpleResult => getPackSimpleResult.Version),
["packValues"] = example.Apply(getPackSimpleResult => getPackSimpleResult.Values),
};
});
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.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 example = SpectrocloudFunctions.getPackSimple(GetPackSimpleArgs.builder()
.name("nginx-pack")
.version("1.2.3")
.context("project")
.registryUid("5ee9c5adc172449eeb9c30cf")
.type("helm")
.build());
ctx.export("packId", example.applyValue(getPackSimpleResult -> getPackSimpleResult.id()));
ctx.export("packVersion", example.applyValue(getPackSimpleResult -> getPackSimpleResult.version()));
ctx.export("packValues", example.applyValue(getPackSimpleResult -> getPackSimpleResult.values()));
}
}
variables:
example:
fn::invoke:
function: spectrocloud:getPackSimple
arguments:
name: nginx-pack
version: 1.2.3
context: project
registryUid: 5ee9c5adc172449eeb9c30cf
type: helm
outputs:
# Output pack details
packId: ${example.id}
packVersion: ${example.version}
packValues: ${example.values}
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 dictionary
The following arguments are supported:
- Name string
- The name of the pack.
- Type string
- The type of Pack. Allowed values are
helm
,manifest
,container
oroperator-instance
. - Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Id string
- The ID of this resource.
- Registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-instance
. - Context string
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Id string
- The ID of this resource.
- Registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-instance
. - context String
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - id String
- The ID of this resource.
- registry
Uid String - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-instance
. - context string
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - id string
- The ID of this resource.
- registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-instance
. - context str
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context 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_uid
to 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
,container
oroperator-instance
. - context String
- Indicates in which context registry should be searched for the pack values. Allowed values are
system
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - id String
- The ID of this resource.
- registry
Uid String - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - registry
Uid String - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - registry
Uid string - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context 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_uid
to 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
,container
oroperator-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
,project
ortenant
. Defaults toproject
.If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - registry
Uid String - The unique identifier (UID) of the registry where the pack is located. Specify
registry_uid
to 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
spectrocloud
Terraform Provider.
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud