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

hsdp.DockerNamespace

Explore with Pulumi AI

Manage HSDP Docker registry namespaces

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 = new hsdp.DockerNamespace("project1", {});
Copy
import pulumi
import pulumi_hsdp as hsdp

project1 = hsdp.DockerNamespace("project1")
Copy
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 {
		_, err := hsdp.NewDockerNamespace(ctx, "project1", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;

return await Deployment.RunAsync(() => 
{
    var project1 = new Hsdp.DockerNamespace("project1");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.DockerNamespace;
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) {
        var project1 = new DockerNamespace("project1");

    }
}
Copy
resources:
  project1:
    type: hsdp:DockerNamespace
Copy

Create DockerNamespace Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DockerNamespace(name: string, args?: DockerNamespaceArgs, opts?: CustomResourceOptions);
@overload
def DockerNamespace(resource_name: str,
                    args: Optional[DockerNamespaceArgs] = None,
                    opts: Optional[ResourceOptions] = None)

@overload
def DockerNamespace(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    docker_namespace_id: Optional[str] = None,
                    name: Optional[str] = None)
func NewDockerNamespace(ctx *Context, name string, args *DockerNamespaceArgs, opts ...ResourceOption) (*DockerNamespace, error)
public DockerNamespace(string name, DockerNamespaceArgs? args = null, CustomResourceOptions? opts = null)
public DockerNamespace(String name, DockerNamespaceArgs args)
public DockerNamespace(String name, DockerNamespaceArgs args, CustomResourceOptions options)
type: hsdp:DockerNamespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args DockerNamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args DockerNamespaceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args DockerNamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args DockerNamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DockerNamespaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var dockerNamespaceResource = new Hsdp.DockerNamespace("dockerNamespaceResource", new()
{
    DockerNamespaceId = "string",
    Name = "string",
});
Copy
example, err := hsdp.NewDockerNamespace(ctx, "dockerNamespaceResource", &hsdp.DockerNamespaceArgs{
DockerNamespaceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var dockerNamespaceResource = new DockerNamespace("dockerNamespaceResource", DockerNamespaceArgs.builder()
    .dockerNamespaceId("string")
    .name("string")
    .build());
Copy
docker_namespace_resource = hsdp.DockerNamespace("dockerNamespaceResource",
    docker_namespace_id="string",
    name="string")
Copy
const dockerNamespaceResource = new hsdp.DockerNamespace("dockerNamespaceResource", {
    dockerNamespaceId: "string",
    name: "string",
});
Copy
type: hsdp:DockerNamespace
properties:
    dockerNamespaceId: string
    name: string
Copy

DockerNamespace Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DockerNamespace resource accepts the following input properties:

DockerNamespaceId string
The id of the namespace
Name string
The name of the namespace to look up
DockerNamespaceId string
The id of the namespace
Name string
The name of the namespace to look up
dockerNamespaceId String
The id of the namespace
name String
The name of the namespace to look up
dockerNamespaceId string
The id of the namespace
name string
The name of the namespace to look up
docker_namespace_id str
The id of the namespace
name str
The name of the namespace to look up
dockerNamespaceId String
The id of the namespace
name String
The name of the namespace to look up

Outputs

All input properties are implicitly available as output properties. Additionally, the DockerNamespace resource produces the following output properties:

CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
IsPublic bool
NumRepos double
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
IsPublic bool
NumRepos float64
createdAt String
id String
The provider-assigned unique ID for this managed resource.
isPublic Boolean
numRepos Double
createdAt string
id string
The provider-assigned unique ID for this managed resource.
isPublic boolean
numRepos number
created_at str
id str
The provider-assigned unique ID for this managed resource.
is_public bool
num_repos float
createdAt String
id String
The provider-assigned unique ID for this managed resource.
isPublic Boolean
numRepos Number

Look up Existing DockerNamespace Resource

Get an existing DockerNamespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DockerNamespaceState, opts?: CustomResourceOptions): DockerNamespace
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        docker_namespace_id: Optional[str] = None,
        is_public: Optional[bool] = None,
        name: Optional[str] = None,
        num_repos: Optional[float] = None) -> DockerNamespace
func GetDockerNamespace(ctx *Context, name string, id IDInput, state *DockerNamespaceState, opts ...ResourceOption) (*DockerNamespace, error)
public static DockerNamespace Get(string name, Input<string> id, DockerNamespaceState? state, CustomResourceOptions? opts = null)
public static DockerNamespace get(String name, Output<String> id, DockerNamespaceState state, CustomResourceOptions options)
resources:  _:    type: hsdp:DockerNamespace    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
DockerNamespaceId string
The id of the namespace
IsPublic bool
Name string
The name of the namespace to look up
NumRepos double
CreatedAt string
DockerNamespaceId string
The id of the namespace
IsPublic bool
Name string
The name of the namespace to look up
NumRepos float64
createdAt String
dockerNamespaceId String
The id of the namespace
isPublic Boolean
name String
The name of the namespace to look up
numRepos Double
createdAt string
dockerNamespaceId string
The id of the namespace
isPublic boolean
name string
The name of the namespace to look up
numRepos number
created_at str
docker_namespace_id str
The id of the namespace
is_public bool
name str
The name of the namespace to look up
num_repos float
createdAt String
dockerNamespaceId String
The id of the namespace
isPublic Boolean
name String
The name of the namespace to look up
numRepos Number

Package Details

Repository
hsdp philips-software/terraform-provider-hsdp
License
Notes
This Pulumi package is based on the hsdp Terraform Provider.