published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A namespace is a collection of OCI artifact repositories that share related attributes. Namespace names are typically organization team names, product project names, or custom names within an enterprise.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const namespaceDemo = new volcenginecc.cr.NameSpace("NamespaceDemo", {
registry: "test",
name: "testnamespace",
project: "default",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
namespace_demo = volcenginecc.cr.NameSpace("NamespaceDemo",
registry="test",
name="testnamespace",
project="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cr.NewNameSpace(ctx, "NamespaceDemo", &cr.NameSpaceArgs{
Registry: pulumi.String("test"),
Name: pulumi.String("testnamespace"),
Project: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var namespaceDemo = new Volcenginecc.Cr.NameSpace("NamespaceDemo", new()
{
Registry = "test",
Name = "testnamespace",
Project = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cr.NameSpace;
import com.volcengine.volcenginecc.cr.NameSpaceArgs;
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 namespaceDemo = new NameSpace("namespaceDemo", NameSpaceArgs.builder()
.registry("test")
.name("testnamespace")
.project("default")
.build());
}
}
resources:
namespaceDemo:
type: volcenginecc:cr:NameSpace
name: NamespaceDemo
properties:
registry: test
name: testnamespace
project: default
Create NameSpace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NameSpace(name: string, args: NameSpaceArgs, opts?: CustomResourceOptions);@overload
def NameSpace(resource_name: str,
args: NameSpaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NameSpace(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
registry: Optional[str] = None,
project: Optional[str] = None)func NewNameSpace(ctx *Context, name string, args NameSpaceArgs, opts ...ResourceOption) (*NameSpace, error)public NameSpace(string name, NameSpaceArgs args, CustomResourceOptions? opts = null)
public NameSpace(String name, NameSpaceArgs args)
public NameSpace(String name, NameSpaceArgs args, CustomResourceOptions options)
type: volcenginecc:cr:NameSpace
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 NameSpaceArgs
- 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 NameSpaceArgs
- 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 NameSpaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NameSpaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NameSpaceArgs
- 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 nameSpaceResource = new Volcenginecc.Cr.NameSpace("nameSpaceResource", new()
{
Name = "string",
Registry = "string",
Project = "string",
});
example, err := cr.NewNameSpace(ctx, "nameSpaceResource", &cr.NameSpaceArgs{
Name: pulumi.String("string"),
Registry: pulumi.String("string"),
Project: pulumi.String("string"),
})
var nameSpaceResource = new NameSpace("nameSpaceResource", NameSpaceArgs.builder()
.name("string")
.registry("string")
.project("string")
.build());
name_space_resource = volcenginecc.cr.NameSpace("nameSpaceResource",
name="string",
registry="string",
project="string")
const nameSpaceResource = new volcenginecc.cr.NameSpace("nameSpaceResource", {
name: "string",
registry: "string",
project: "string",
});
type: volcenginecc:cr:NameSpace
properties:
name: string
project: string
registry: string
NameSpace 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 NameSpace resource accepts the following input properties:
- Name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- Registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- Project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- Name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- Registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- Project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- name String
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- registry String
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- project String
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- name str
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- registry str
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- project str
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- name String
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- registry String
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- project String
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
Outputs
All input properties are implicitly available as output properties. Additionally, the NameSpace resource produces the following output properties:
- Created
Time string - Namespace creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Created
Time string - Namespace creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- created
Time String - Namespace creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- created
Time string - Namespace creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- created_
time str - Namespace creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- created
Time String - Namespace creation time.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NameSpace Resource
Get an existing NameSpace 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?: NameSpaceState, opts?: CustomResourceOptions): NameSpace@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
registry: Optional[str] = None) -> NameSpacefunc GetNameSpace(ctx *Context, name string, id IDInput, state *NameSpaceState, opts ...ResourceOption) (*NameSpace, error)public static NameSpace Get(string name, Input<string> id, NameSpaceState? state, CustomResourceOptions? opts = null)public static NameSpace get(String name, Output<String> id, NameSpaceState state, CustomResourceOptions options)resources: _: type: volcenginecc:cr:NameSpace 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
Time string - Namespace creation time.
- Name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- Project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- Registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- Created
Time string - Namespace creation time.
- Name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- Project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- Registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- created
Time String - Namespace creation time.
- name String
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- project String
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- registry String
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- created
Time string - Namespace creation time.
- name string
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- project string
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- registry string
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- created_
time str - Namespace creation time.
- name str
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- project str
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- registry str
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
- created
Time String - Namespace creation time.
- name String
- Namespace name. Supports lowercase English letters, numbers, periods (.), hyphens (-), and underscores (_). Punctuation cannot appear at the beginning or end, nor be used consecutively. Length must be between 2 and 90 characters. Standard edition instance: The name must be unique within the same image repository instance. Trial edition instance: The namespace name must be unique across all accounts within the same region. If the namespace name you set is already taken, try another name or purchase a standard edition instance.
- project String
- Name of the project to which the namespace belongs. This parameter is case-sensitive and must not exceed 64 characters. If the parameter is empty, the namespace is associated with the default project.
- registry String
- Specify the image repository instance name. Obtain it via ListRegistries or from the instance list page in the image repository console.
Import
$ pulumi import volcenginecc:cr/nameSpace:NameSpace example "registry|name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
