hsdp.DockerNamespace
Explore with Pulumi AI
Manage HSDP Docker registry namespaces
This resource only works when
HSDP_UAA_USERNAME
andHSDP_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", {});
import pulumi
import pulumi_hsdp as hsdp
project1 = hsdp.DockerNamespace("project1")
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var project1 = new Hsdp.DockerNamespace("project1");
});
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");
}
}
resources:
project1:
type: hsdp:DockerNamespace
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := hsdp.NewDockerNamespace(ctx, "dockerNamespaceResource", &hsdp.DockerNamespaceArgs{
DockerNamespaceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var dockerNamespaceResource = new DockerNamespace("dockerNamespaceResource", DockerNamespaceArgs.builder()
.dockerNamespaceId("string")
.name("string")
.build());
docker_namespace_resource = hsdp.DockerNamespace("dockerNamespaceResource",
docker_namespace_id="string",
name="string")
const dockerNamespaceResource = new hsdp.DockerNamespace("dockerNamespaceResource", {
dockerNamespaceId: "string",
name: "string",
});
type: hsdp:DockerNamespace
properties:
dockerNamespaceId: string
name: string
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:
- Docker
Namespace stringId - The id of the namespace
- Name string
- The name of the namespace to look up
- Docker
Namespace stringId - The id of the namespace
- Name string
- The name of the namespace to look up
- docker
Namespace StringId - The id of the namespace
- name String
- The name of the namespace to look up
- docker
Namespace stringId - The id of the namespace
- name string
- The name of the namespace to look up
- docker_
namespace_ strid - The id of the namespace
- name str
- The name of the namespace to look up
- docker
Namespace StringId - 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:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- is_
public bool - num_
repos float
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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Created
At string - Docker
Namespace stringId - The id of the namespace
- Is
Public bool - Name string
- The name of the namespace to look up
- Num
Repos double
- Created
At string - Docker
Namespace stringId - The id of the namespace
- Is
Public bool - Name string
- The name of the namespace to look up
- Num
Repos float64
- created
At String - docker
Namespace StringId - The id of the namespace
- is
Public Boolean - name String
- The name of the namespace to look up
- num
Repos Double
- created
At string - docker
Namespace stringId - The id of the namespace
- is
Public boolean - name string
- The name of the namespace to look up
- num
Repos number
- created_
at str - docker_
namespace_ strid - The id of the namespace
- is_
public bool - name str
- The name of the namespace to look up
- num_
repos float
- created
At String - docker
Namespace StringId - The id of the namespace
- is
Public Boolean - name String
- The name of the namespace to look up
- num
Repos Number
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.