Viewing docs for spectrocloud 0.28.3
published on Friday, Mar 6, 2026 by spectrocloud
published on Friday, Mar 6, 2026 by spectrocloud
Viewing docs for spectrocloud 0.28.3
published on Friday, Mar 6, 2026 by spectrocloud
published on Friday, Mar 6, 2026 by spectrocloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
// Data source to retrieve details of a specific SpectroCloud registry by name
const myRegistry = spectrocloud.getRegistry({
name: "my-registry",
});
export const registryId = myRegistry.then(myRegistry => myRegistry.id);
import pulumi
import pulumi_spectrocloud as spectrocloud
# Data source to retrieve details of a specific SpectroCloud registry by name
my_registry = spectrocloud.get_registry(name="my-registry")
pulumi.export("registryId", my_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 {
// Data source to retrieve details of a specific SpectroCloud registry by name
myRegistry, err := spectrocloud.GetRegistry(ctx, &spectrocloud.GetRegistryArgs{
Name: "my-registry",
}, nil)
if err != nil {
return err
}
ctx.Export("registryId", myRegistry.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
// Data source to retrieve details of a specific SpectroCloud registry by name
var myRegistry = Spectrocloud.GetRegistry.Invoke(new()
{
Name = "my-registry",
});
return new Dictionary<string, object?>
{
["registryId"] = myRegistry.Apply(getRegistryResult => getRegistryResult.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.GetRegistryArgs;
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) {
// Data source to retrieve details of a specific SpectroCloud registry by name
final var myRegistry = SpectrocloudFunctions.getRegistry(GetRegistryArgs.builder()
.name("my-registry")
.build());
ctx.export("registryId", myRegistry.id());
}
}
variables:
# Data source to retrieve details of a specific SpectroCloud registry by name
myRegistry:
fn::invoke:
function: spectrocloud:getRegistry
arguments:
name: my-registry
outputs:
# Output the ID of the retrieved registry
registryId: ${myRegistry.id}
Using getRegistry
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 getRegistry(args: GetRegistryArgs, opts?: InvokeOptions): Promise<GetRegistryResult>
function getRegistryOutput(args: GetRegistryOutputArgs, opts?: InvokeOptions): Output<GetRegistryResult>def get_registry(id: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegistryResult
def get_registry_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegistryResult]func GetRegistry(ctx *Context, args *GetRegistryArgs, opts ...InvokeOption) (*GetRegistryResult, error)
func GetRegistryOutput(ctx *Context, args *GetRegistryOutputArgs, opts ...InvokeOption) GetRegistryResultOutput> Note: This function is named GetRegistry in the Go SDK.
public static class GetRegistry
{
public static Task<GetRegistryResult> InvokeAsync(GetRegistryArgs args, InvokeOptions? opts = null)
public static Output<GetRegistryResult> Invoke(GetRegistryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
public static Output<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
fn::invoke:
function: spectrocloud:index/getRegistry:getRegistry
arguments:
# arguments dictionaryThe following arguments are supported:
getRegistry Result
The following output properties are available:
- Id string
- The ID of this resource.
- Name string
- Sync
Status string - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- Type string
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
- Id string
- The ID of this resource.
- Name string
- Sync
Status string - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- Type string
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
- id String
- The ID of this resource.
- name String
- sync
Status String - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- type String
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
- id string
- The ID of this resource.
- name string
- sync
Status string - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- type string
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
- id str
- The ID of this resource.
- name str
- sync_
status str - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- type str
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
- id String
- The ID of this resource.
- name String
- sync
Status String - The synchronization status of the registry. Possible values: 'Completed', 'InProgress', 'Failed', 'Error', etc. Available for Helm registries only.
- type String
- The type of the registry. Possible values are 'oci', 'helm', or 'spectro'. If not provided, the registry type will be inferred from the registry name.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloudTerraform Provider.
Viewing docs for spectrocloud 0.28.3
published on Friday, Mar 6, 2026 by spectrocloud
published on Friday, Mar 6, 2026 by spectrocloud
