RegistryEnterpriseNamespace
This resource will help you to manager Container Registry Enterprise Edition namespaces.
For information about Container Registry Enterprise Edition namespaces and how to use it, see Create a Namespace
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",
});
}
}
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")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",
});Create a RegistryEnterpriseNamespace Resource
new RegistryEnterpriseNamespace(name: string, args: RegistryEnterpriseNamespaceArgs, opts?: CustomResourceOptions);def RegistryEnterpriseNamespace(resource_name, opts=None, auto_create=None, default_visibility=None, instance_id=None, name=None, __props__=None);func NewRegistryEnterpriseNamespace(ctx *Context, name string, args RegistryEnterpriseNamespaceArgs, opts ...ResourceOption) (*RegistryEnterpriseNamespace, error)public RegistryEnterpriseNamespace(string name, RegistryEnterpriseNamespaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegistryEnterpriseNamespaceArgs
- 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 RegistryEnterpriseNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryEnterpriseNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RegistryEnterpriseNamespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RegistryEnterpriseNamespace resource accepts the following input properties:
- Auto
Create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- Default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- Auto
Create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- Default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- auto
Create boolean Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- instance
Id string ID of Container Registry Enterprise Edition instance.
- name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- auto_
create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- default_
visibility str PUBLICorPRIVATE, default repository visibility in this namespace.- instance_
id str ID of Container Registry Enterprise Edition instance.
- name str
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegistryEnterpriseNamespace resource produces the following output properties:
Look up an Existing RegistryEnterpriseNamespace Resource
Get an existing RegistryEnterpriseNamespace 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?: RegistryEnterpriseNamespaceState, opts?: CustomResourceOptions): RegistryEnterpriseNamespacestatic get(resource_name, id, opts=None, auto_create=None, default_visibility=None, instance_id=None, name=None, __props__=None);func GetRegistryEnterpriseNamespace(ctx *Context, name string, id IDInput, state *RegistryEnterpriseNamespaceState, opts ...ResourceOption) (*RegistryEnterpriseNamespace, error)public static RegistryEnterpriseNamespace Get(string name, Input<string> id, RegistryEnterpriseNamespaceState? 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:
- Auto
Create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- Default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- Auto
Create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- Default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- Instance
Id string ID of Container Registry Enterprise Edition instance.
- Name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- auto
Create boolean Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- instance
Id string ID of Container Registry Enterprise Edition instance.
- name string
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
- auto_
create bool Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
- default_
visibility str PUBLICorPRIVATE, default repository visibility in this namespace.- instance_
id str ID of Container Registry Enterprise Edition instance.
- name str
Name of Container Registry Enterprise Edition namespace. It can contain 2 to 30 characters.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.