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

spectrocloud.getRegistryPack

Explore with Pulumi AI

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 myPack = spectrocloud.getRegistryPack({
    name: "my-pack",
});
export const registryPackId = myPack.then(myPack => myPack.id);
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

my_pack = spectrocloud.get_registry_pack(name="my-pack")
pulumi.export("registryPackId", my_pack.id)
Copy
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 {
		myPack, err := spectrocloud.GetRegistryPack(ctx, &spectrocloud.GetRegistryPackArgs{
			Name: "my-pack",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("registryPackId", myPack.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var myPack = Spectrocloud.GetRegistryPack.Invoke(new()
    {
        Name = "my-pack",
    });

    return new Dictionary<string, object?>
    {
        ["registryPackId"] = myPack.Apply(getRegistryPackResult => getRegistryPackResult.Id),
    };
});
Copy
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.GetRegistryPackArgs;
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 myPack = SpectrocloudFunctions.getRegistryPack(GetRegistryPackArgs.builder()
            .name("my-pack")
            .build());

        ctx.export("registryPackId", myPack.applyValue(getRegistryPackResult -> getRegistryPackResult.id()));
    }
}
Copy
variables:
  myPack:
    fn::invoke:
      function: spectrocloud:getRegistryPack
      arguments:
        name: my-pack
outputs:
  # Output the ID of the retrieved registry pack
  registryPackId: ${myPack.id}
Copy

Using getRegistryPack

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 getRegistryPack(args: GetRegistryPackArgs, opts?: InvokeOptions): Promise<GetRegistryPackResult>
function getRegistryPackOutput(args: GetRegistryPackOutputArgs, opts?: InvokeOptions): Output<GetRegistryPackResult>
Copy
def get_registry_pack(id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetRegistryPackResult
def get_registry_pack_output(id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetRegistryPackResult]
Copy
func GetRegistryPack(ctx *Context, args *GetRegistryPackArgs, opts ...InvokeOption) (*GetRegistryPackResult, error)
func GetRegistryPackOutput(ctx *Context, args *GetRegistryPackOutputArgs, opts ...InvokeOption) GetRegistryPackResultOutput
Copy

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

public static class GetRegistryPack 
{
    public static Task<GetRegistryPackResult> InvokeAsync(GetRegistryPackArgs args, InvokeOptions? opts = null)
    public static Output<GetRegistryPackResult> Invoke(GetRegistryPackInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegistryPackResult> getRegistryPack(GetRegistryPackArgs args, InvokeOptions options)
public static Output<GetRegistryPackResult> getRegistryPack(GetRegistryPackArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: spectrocloud:index/getRegistryPack:getRegistryPack
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Id string
The ID of this resource.
Name This property is required. string
Id string
The ID of this resource.
name This property is required. String
id String
The ID of this resource.
name This property is required. string
id string
The ID of this resource.
name This property is required. str
id str
The ID of this resource.
name This property is required. String
id String
The ID of this resource.

getRegistryPack 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 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud