1. Packages
  2. Packages
  3. Spectrocloud Provider
  4. API Docs
  5. getRegistryOci
Viewing docs for spectrocloud 0.29.0
published on Sunday, May 3, 2026 by spectrocloud
Viewing docs for spectrocloud 0.29.0
published on Sunday, May 3, 2026 by spectrocloud

    Data source for looking up an OCI registry by name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const example = spectrocloud.getRegistryOci({
        name: "my-oci-registry",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    example = spectrocloud.get_registry_oci(name="my-oci-registry")
    
    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.LookupRegistryOci(ctx, &spectrocloud.LookupRegistryOciArgs{
    			Name: "my-oci-registry",
    		}, 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 example = Spectrocloud.GetRegistryOci.Invoke(new()
        {
            Name = "my-oci-registry",
        });
    
    });
    
    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.GetRegistryOciArgs;
    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.getRegistryOci(GetRegistryOciArgs.builder()
                .name("my-oci-registry")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: spectrocloud:getRegistryOci
          arguments:
            name: my-oci-registry
    

    Using getRegistryOci

    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 getRegistryOci(args: GetRegistryOciArgs, opts?: InvokeOptions): Promise<GetRegistryOciResult>
    function getRegistryOciOutput(args: GetRegistryOciOutputArgs, opts?: InvokeOptions): Output<GetRegistryOciResult>
    def get_registry_oci(id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetRegistryOciResult
    def get_registry_oci_output(id: pulumi.Input[Optional[str]] = None,
                         name: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetRegistryOciResult]
    func LookupRegistryOci(ctx *Context, args *LookupRegistryOciArgs, opts ...InvokeOption) (*LookupRegistryOciResult, error)
    func LookupRegistryOciOutput(ctx *Context, args *LookupRegistryOciOutputArgs, opts ...InvokeOption) LookupRegistryOciResultOutput

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

    public static class GetRegistryOci 
    {
        public static Task<GetRegistryOciResult> InvokeAsync(GetRegistryOciArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryOciResult> Invoke(GetRegistryOciInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryOciResult> getRegistryOci(GetRegistryOciArgs args, InvokeOptions options)
    public static Output<GetRegistryOciResult> getRegistryOci(GetRegistryOciArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getRegistryOci:getRegistryOci
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the OCI registry.
    Id string
    The unique identifier of the OCI registry.
    Name string
    The name of the OCI registry.
    Id string
    The unique identifier of the OCI registry.
    name String
    The name of the OCI registry.
    id String
    The unique identifier of the OCI registry.
    name string
    The name of the OCI registry.
    id string
    The unique identifier of the OCI registry.
    name str
    The name of the OCI registry.
    id str
    The unique identifier of the OCI registry.
    name String
    The name of the OCI registry.
    id String
    The unique identifier of the OCI registry.

    getRegistryOci Result

    The following output properties are available:

    Id string
    The unique identifier of the OCI registry.
    Name string
    The name of the OCI registry.
    Id string
    The unique identifier of the OCI registry.
    Name string
    The name of the OCI registry.
    id String
    The unique identifier of the OCI registry.
    name String
    The name of the OCI registry.
    id string
    The unique identifier of the OCI registry.
    name string
    The name of the OCI registry.
    id str
    The unique identifier of the OCI registry.
    name str
    The name of the OCI registry.
    id String
    The unique identifier of the OCI registry.
    name String
    The name of the OCI registry.

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    Viewing docs for spectrocloud 0.29.0
    published on Sunday, May 3, 2026 by spectrocloud
      Try Pulumi Cloud free. Your team will thank you.