1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getDockerNamespace
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getDockerNamespace

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Retrieve details on a HSDP Docker Registry namespace

    This resource only works when HSDP_UAA_USERNAME and HSDP_UAA_PASSWORD values matching provider arguments are set

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const project1 = hsdp.getDockerNamespace({
        name: "project1",
    });
    export const repositories = project1.then(project1 => project1.repositories);
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    project1 = hsdp.get_docker_namespace(name="project1")
    pulumi.export("repositories", project1.repositories)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project1, err := hsdp.LookupDockerNamespace(ctx, &hsdp.LookupDockerNamespaceArgs{
    			Name: "project1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("repositories", project1.Repositories)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var project1 = Hsdp.GetDockerNamespace.Invoke(new()
        {
            Name = "project1",
        });
    
        return new Dictionary<string, object?>
        {
            ["repositories"] = project1.Apply(getDockerNamespaceResult => getDockerNamespaceResult.Repositories),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetDockerNamespaceArgs;
    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 project1 = HsdpFunctions.getDockerNamespace(GetDockerNamespaceArgs.builder()
                .name("project1")
                .build());
    
            ctx.export("repositories", project1.applyValue(getDockerNamespaceResult -> getDockerNamespaceResult.repositories()));
        }
    }
    
    variables:
      project1:
        fn::invoke:
          function: hsdp:getDockerNamespace
          arguments:
            name: project1
    outputs:
      repositories: ${project1.repositories}
    

    Using getDockerNamespace

    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 getDockerNamespace(args: GetDockerNamespaceArgs, opts?: InvokeOptions): Promise<GetDockerNamespaceResult>
    function getDockerNamespaceOutput(args: GetDockerNamespaceOutputArgs, opts?: InvokeOptions): Output<GetDockerNamespaceResult>
    def get_docker_namespace(id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDockerNamespaceResult
    def get_docker_namespace_output(id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDockerNamespaceResult]
    func LookupDockerNamespace(ctx *Context, args *LookupDockerNamespaceArgs, opts ...InvokeOption) (*LookupDockerNamespaceResult, error)
    func LookupDockerNamespaceOutput(ctx *Context, args *LookupDockerNamespaceOutputArgs, opts ...InvokeOption) LookupDockerNamespaceResultOutput

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

    public static class GetDockerNamespace 
    {
        public static Task<GetDockerNamespaceResult> InvokeAsync(GetDockerNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetDockerNamespaceResult> Invoke(GetDockerNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDockerNamespaceResult> getDockerNamespace(GetDockerNamespaceArgs args, InvokeOptions options)
    public static Output<GetDockerNamespaceResult> getDockerNamespace(GetDockerNamespaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getDockerNamespace:getDockerNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the namespace to look up
    Id string
    The id of the namespace
    Name string
    The name of the namespace to look up
    Id string
    The id of the namespace
    name String
    The name of the namespace to look up
    id String
    The id of the namespace
    name string
    The name of the namespace to look up
    id string
    The id of the namespace
    name str
    The name of the namespace to look up
    id str
    The id of the namespace
    name String
    The name of the namespace to look up
    id String
    The id of the namespace

    getDockerNamespace Result

    The following output properties are available:

    CreatedAt string
    When the namespace was created
    Id string
    The id of the namespace
    IsPublic bool
    If the repo is public or not
    Name string
    NumRepos double
    Repositories List<string>
    (list(string)) The list of repositories in this namespace
    CreatedAt string
    When the namespace was created
    Id string
    The id of the namespace
    IsPublic bool
    If the repo is public or not
    Name string
    NumRepos float64
    Repositories []string
    (list(string)) The list of repositories in this namespace
    createdAt String
    When the namespace was created
    id String
    The id of the namespace
    isPublic Boolean
    If the repo is public or not
    name String
    numRepos Double
    repositories List<String>
    (list(string)) The list of repositories in this namespace
    createdAt string
    When the namespace was created
    id string
    The id of the namespace
    isPublic boolean
    If the repo is public or not
    name string
    numRepos number
    repositories string[]
    (list(string)) The list of repositories in this namespace
    created_at str
    When the namespace was created
    id str
    The id of the namespace
    is_public bool
    If the repo is public or not
    name str
    num_repos float
    repositories Sequence[str]
    (list(string)) The list of repositories in this namespace
    createdAt String
    When the namespace was created
    id String
    The id of the namespace
    isPublic Boolean
    If the repo is public or not
    name String
    numRepos Number
    repositories List<String>
    (list(string)) The list of repositories in this namespace

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software