published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
The OCI artifact repository is used to store container images, Helm Charts, and other OCI (Open Container Initiative) artifacts that comply with open container standards.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const repositoryDemo = new volcenginecc.cr.Repository("RepositoryDemo", {
registry: "test",
namespace: "default",
name: "RepositoryDemo",
description: "RepositoryDemo description",
accessLevel: "Public",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
repository_demo = volcenginecc.cr.Repository("RepositoryDemo",
registry="test",
namespace="default",
name="RepositoryDemo",
description="RepositoryDemo description",
access_level="Public")
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.NewRepository(ctx, "RepositoryDemo", &cr.RepositoryArgs{
Registry: pulumi.String("test"),
Namespace: pulumi.String("default"),
Name: pulumi.String("RepositoryDemo"),
Description: pulumi.String("RepositoryDemo description"),
AccessLevel: pulumi.String("Public"),
})
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 repositoryDemo = new Volcenginecc.Cr.Repository("RepositoryDemo", new()
{
Registry = "test",
Namespace = "default",
Name = "RepositoryDemo",
Description = "RepositoryDemo description",
AccessLevel = "Public",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cr.Repository;
import com.volcengine.volcenginecc.cr.RepositoryArgs;
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 repositoryDemo = new Repository("repositoryDemo", RepositoryArgs.builder()
.registry("test")
.namespace("default")
.name("RepositoryDemo")
.description("RepositoryDemo description")
.accessLevel("Public")
.build());
}
}
resources:
repositoryDemo:
type: volcenginecc:cr:Repository
name: RepositoryDemo
properties:
registry: test
namespace: default
name: RepositoryDemo
description: RepositoryDemo description
accessLevel: Public
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);@overload
def Repository(resource_name: str,
args: RepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
registry: Optional[str] = None,
access_level: Optional[str] = None,
description: Optional[str] = None)func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: volcenginecc:cr:Repository
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 RepositoryArgs
- 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 RepositoryArgs
- 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 RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- 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 repositoryResource = new Volcenginecc.Cr.Repository("repositoryResource", new()
{
Name = "string",
Namespace = "string",
Registry = "string",
AccessLevel = "string",
Description = "string",
});
example, err := cr.NewRepository(ctx, "repositoryResource", &cr.RepositoryArgs{
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Registry: pulumi.String("string"),
AccessLevel: pulumi.String("string"),
Description: pulumi.String("string"),
})
var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
.name("string")
.namespace("string")
.registry("string")
.accessLevel("string")
.description("string")
.build());
repository_resource = volcenginecc.cr.Repository("repositoryResource",
name="string",
namespace="string",
registry="string",
access_level="string",
description="string")
const repositoryResource = new volcenginecc.cr.Repository("repositoryResource", {
name: "string",
namespace: "string",
registry: "string",
accessLevel: "string",
description: "string",
});
type: volcenginecc:cr:Repository
properties:
accessLevel: string
description: string
name: string
namespace: string
registry: string
Repository 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 Repository resource accepts the following input properties:
- Name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- Namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- Registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- Access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- Description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- Name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- Namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- Registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- Access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- Description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- name String
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace String
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry String
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- access
Level String - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- description String
- Image repository description, with a length of 0–300 UTF-8 characters.
- name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- name str
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace str
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry str
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- access_
level str - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- description str
- Image repository description, with a length of 0–300 UTF-8 characters.
- name String
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace String
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry String
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- access
Level String - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- description String
- Image repository description, with a length of 0–300 UTF-8 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- Create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- create
Time String - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- create_
time str - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- create
Time String - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
Look up Existing Repository Resource
Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_level: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
registry: Optional[str] = None,
update_time: Optional[str] = None) -> Repositoryfunc GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)resources: _: type: volcenginecc:cr:Repository 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.
- Access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- Create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- Description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- Name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- Namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- Registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- Update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- Access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- Create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- Description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- Name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- Namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- Registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- Update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- access
Level String - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- create
Time String - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- description String
- Image repository description, with a length of 0–300 UTF-8 characters.
- name String
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace String
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry String
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- update
Time String - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- access
Level string - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- create
Time string - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- description string
- Image repository description, with a length of 0–300 UTF-8 characters.
- name string
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace string
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry string
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- update
Time string - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- access_
level str - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- create_
time str - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- description str
- Image repository description, with a length of 0–300 UTF-8 characters.
- name str
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace str
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry str
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- update_
time str - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
- access
Level String - Access level. Values include: Private: Private OCI artifact repository, accessible only to authorized users. Public: Public OCI artifact repository, accessible to all users. You can specify one or more access levels in a single entry.
- create
Time String - Creation time of the OCI artifact repository. RFC3339 format, UTC+0 time.
- description String
- Image repository description, with a length of 0–300 UTF-8 characters.
- name String
- OCI artifact repository name. The name must be unique within the same namespace. Supports lowercase English letters, numbers, and delimiters (delimiters can be a single '.' or '/', one or more '-', or one or two '_'. Delimiters cannot appear at the beginning or end of the name, nor can they appear consecutively). Length must be between 1 and 128 characters.
- namespace String
- Target namespace name. Obtain the namespace name from the Namespace page of the target instance in the Image Repository Console.
- registry String
- Specify the name of the image repository instance to which the namespace belongs. Obtain the instance name from the Instance List page in the Image Repository Console.
- update
Time String - Last updated time for the OCI artifact repository. RFC3339 format, UTC+0 time.
Import
$ pulumi import volcenginecc:cr/repository:Repository example "registry|namespace|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
