RegistryEnterpriseRepo
This resource will help you to manager Container Registry Enterprise Edition repositories.
For information about Container Registry Enterprise Edition repository and how to use it, see Create a Repository
NOTE: Available in v1.86.0+.
NOTE: You need to set your registry password in Container Registry Enterprise Edition console before use this resource.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var my_namespace = new AliCloud.CS.RegistryEnterpriseNamespace("my-namespace", new AliCloud.CS.RegistryEnterpriseNamespaceArgs
{
AutoCreate = false,
DefaultVisibility = "PUBLIC",
InstanceId = "cri-xxx",
});
var my_repo = new AliCloud.CS.RegistryEnterpriseRepo("my-repo", new AliCloud.CS.RegistryEnterpriseRepoArgs
{
Detail = "this is a public repo",
InstanceId = my_namespace.InstanceId,
Namespace = my_namespace.Name,
RepoType = "PUBLIC",
Summary = "this is summary of my new repo",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
my_namespace = alicloud.cs.RegistryEnterpriseNamespace("my-namespace",
auto_create=False,
default_visibility="PUBLIC",
instance_id="cri-xxx")
my_repo = alicloud.cs.RegistryEnterpriseRepo("my-repo",
detail="this is a public repo",
instance_id=my_namespace.instance_id,
namespace=my_namespace.name,
repo_type="PUBLIC",
summary="this is summary of my new repo")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const my_namespace = new alicloud.cs.RegistryEnterpriseNamespace("my-namespace", {
autoCreate: false,
defaultVisibility: "PUBLIC",
instanceId: "cri-xxx",
});
const my_repo = new alicloud.cs.RegistryEnterpriseRepo("my-repo", {
detail: "this is a public repo",
instanceId: my_namespace.instanceId,
namespace: my_namespace.name,
repoType: "PUBLIC",
summary: "this is summary of my new repo",
});Create a RegistryEnterpriseRepo Resource
new RegistryEnterpriseRepo(name: string, args: RegistryEnterpriseRepoArgs, opts?: CustomResourceOptions);def RegistryEnterpriseRepo(resource_name, opts=None, detail=None, instance_id=None, name=None, namespace=None, repo_type=None, summary=None, __props__=None);func NewRegistryEnterpriseRepo(ctx *Context, name string, args RegistryEnterpriseRepoArgs, opts ...ResourceOption) (*RegistryEnterpriseRepo, error)public RegistryEnterpriseRepo(string name, RegistryEnterpriseRepoArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegistryEnterpriseRepoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RegistryEnterpriseRepoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryEnterpriseRepoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RegistryEnterpriseRepo Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RegistryEnterpriseRepo resource accepts the following input properties:
- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- Repo
Type string PUBLICorPRIVATE, repo’s visibility.- Summary string
The repository general information. It can contain 1 to 100 characters.
- Detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- Name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- Repo
Type string PUBLICorPRIVATE, repo’s visibility.- Summary string
The repository general information. It can contain 1 to 100 characters.
- Detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- Name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- instance
Id string ID of Container Registry Enterprise Edition instance.
- namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- repo
Type string PUBLICorPRIVATE, repo’s visibility.- summary string
The repository general information. It can contain 1 to 100 characters.
- detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- instance_
id str ID of Container Registry Enterprise Edition instance.
- namespace str
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- repo_
type str PUBLICorPRIVATE, repo’s visibility.- summary str
The repository general information. It can contain 1 to 100 characters.
- detail str
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- name str
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegistryEnterpriseRepo resource produces the following output properties:
Look up an Existing RegistryEnterpriseRepo Resource
Get an existing RegistryEnterpriseRepo 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?: RegistryEnterpriseRepoState, opts?: CustomResourceOptions): RegistryEnterpriseRepostatic get(resource_name, id, opts=None, detail=None, instance_id=None, name=None, namespace=None, repo_id=None, repo_type=None, summary=None, __props__=None);func GetRegistryEnterpriseRepo(ctx *Context, name string, id IDInput, state *RegistryEnterpriseRepoState, opts ...ResourceOption) (*RegistryEnterpriseRepo, error)public static RegistryEnterpriseRepo Get(string name, Input<string> id, RegistryEnterpriseRepoState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- Namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- Repo
Id string The uuid of Container Registry Enterprise Edition repository.
- Repo
Type string PUBLICorPRIVATE, repo’s visibility.- Summary string
The repository general information. It can contain 1 to 100 characters.
- Detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- Namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- Repo
Id string The uuid of Container Registry Enterprise Edition repository.
- Repo
Type string PUBLICorPRIVATE, repo’s visibility.- Summary string
The repository general information. It can contain 1 to 100 characters.
- detail string
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- instance
Id string ID of Container Registry Enterprise Edition instance.
- name string
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- namespace string
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- repo
Id string The uuid of Container Registry Enterprise Edition repository.
- repo
Type string PUBLICorPRIVATE, repo’s visibility.- summary string
The repository general information. It can contain 1 to 100 characters.
- detail str
The repository specific information. MarkDown format is supported, and the length limit is 2000.
- instance_
id str ID of Container Registry Enterprise Edition instance.
- name str
Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters.
- namespace str
Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters.
- repo_
id str The uuid of Container Registry Enterprise Edition repository.
- repo_
type str PUBLICorPRIVATE, repo’s visibility.- summary str
The repository general information. It can contain 1 to 100 characters.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.