Class Repo
This resource will help you to manager Container Registry repositories.
NOTE: Available in v1.35.0+.
NOTE: You need to set your registry password in Container Registry console before use this resource.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var my_namespace = new AliCloud.CR.Namespace("my-namespace", new AliCloud.CR.NamespaceArgs
{
AutoCreate = false,
DefaultVisibility = "PUBLIC",
});
var my_repo = new AliCloud.CR.Repo("my-repo", new AliCloud.CR.RepoArgs
{
Detail = "this is a public repo",
Namespace = my_namespace.Name,
RepoType = "PUBLIC",
Summary = "this is summary of my new repo",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.CR
Assembly: Pulumi.AliCloud.dll
Syntax
public class Repo : CustomResource
Constructors
View SourceRepo(String, RepoArgs, CustomResourceOptions)
Create a Repo resource with the given unique name, arguments, and options.
Declaration
public Repo(string name, RepoArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RepoArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDetail
The repository specific information. MarkDown format is supported, and the length limit is 2000.
Declaration
public Output<string> Detail { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DomainList
The repository domain list.
Declaration
public Output<RepoDomainList> DomainList { get; }
Property Value
| Type | Description |
|---|---|
| Output<RepoDomainList> |
Name
Name of container registry repository.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Namespace
Name of container registry namespace where repository is located.
Declaration
public Output<string> Namespace { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RepoType
PUBLIC or PRIVATE, repo's visibility.
Declaration
public Output<string> RepoType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Summary
The repository general information. It can contain 1 to 80 characters.
Declaration
public Output<string> Summary { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, RepoState, CustomResourceOptions)
Get an existing Repo resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Repo Get(string name, Input<string> id, RepoState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RepoState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Repo |