Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Repo
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.CR
Assembly: Pulumi.AliCloud.dll
Syntax
public class Repo : CustomResource

Constructors

View Source

Repo(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 Source

Detail

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>
View Source

DomainList

The repository domain list.

Declaration
public Output<RepoDomainList> DomainList { get; }
Property Value
Type Description
Output<RepoDomainList>
View Source

Name

Name of container registry repository.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Namespace

Name of container registry namespace where repository is located.

Declaration
public Output<string> Namespace { get; }
Property Value
Type Description
Output<System.String>
View Source

RepoType

PUBLIC or PRIVATE, repo's visibility.

Declaration
public Output<string> RepoType { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.