Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Alibaba Cloud

v3.8.0 published on Monday, Oct 4, 2021 by Pulumi

RegistryEnterpriseInstance

This resource will help you to manager Container Registry Enterprise Edition instances.

For information about Container Registry Enterprise Edition instances and how to use it, see Create a Instance

NOTE: Available in v1.124.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var my_instance = new AliCloud.CR.RegistryEnterpriseInstance("my-instance", new AliCloud.CR.RegistryEnterpriseInstanceArgs
        {
            InstanceName = "test",
            InstanceType = "Standard",
            PaymentType = "Subscription",
            Period = 12,
            RenewPeriod = 12,
            RenewalStatus = "AutoRenewal",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.NewRegistryEnterpriseInstance(ctx, "my_instance", &cr.RegistryEnterpriseInstanceArgs{
			InstanceName:  pulumi.String("test"),
			InstanceType:  pulumi.String("Standard"),
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(12),
			RenewPeriod:   pulumi.Int(12),
			RenewalStatus: pulumi.String("AutoRenewal"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

my_instance = alicloud.cr.RegistryEnterpriseInstance("my-instance",
    instance_name="test",
    instance_type="Standard",
    payment_type="Subscription",
    period=12,
    renew_period=12,
    renewal_status="AutoRenewal")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const my_instance = new alicloud.cr.RegistryEnterpriseInstance("my-instance", {
    instanceName: "test",
    instanceType: "Standard",
    paymentType: "Subscription",
    period: 12,
    renewPeriod: 12,
    renewalStatus: "AutoRenewal",
});

Create a RegistryEnterpriseInstance Resource

new RegistryEnterpriseInstance(name: string, args: RegistryEnterpriseInstanceArgs, opts?: CustomResourceOptions);
@overload
def RegistryEnterpriseInstance(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               custom_oss_bucket: Optional[str] = None,
                               instance_name: Optional[str] = None,
                               instance_type: Optional[str] = None,
                               kms_encrypted_password: Optional[str] = None,
                               kms_encryption_context: Optional[Mapping[str, Any]] = None,
                               password: Optional[str] = None,
                               payment_type: Optional[str] = None,
                               period: Optional[int] = None,
                               renew_period: Optional[int] = None,
                               renewal_status: Optional[str] = None)
@overload
def RegistryEnterpriseInstance(resource_name: str,
                               args: RegistryEnterpriseInstanceArgs,
                               opts: Optional[ResourceOptions] = None)
func NewRegistryEnterpriseInstance(ctx *Context, name string, args RegistryEnterpriseInstanceArgs, opts ...ResourceOption) (*RegistryEnterpriseInstance, error)
public RegistryEnterpriseInstance(string name, RegistryEnterpriseInstanceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args RegistryEnterpriseInstanceArgs
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 RegistryEnterpriseInstanceArgs
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 RegistryEnterpriseInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RegistryEnterpriseInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RegistryEnterpriseInstance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The RegistryEnterpriseInstance resource accepts the following input properties:

InstanceName string
Name of Container Registry Enterprise Edition instance.
InstanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
CustomOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext Dictionary<string, object>
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
Password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
PaymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
Period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
RenewPeriod int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
RenewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
InstanceName string
Name of Container Registry Enterprise Edition instance.
InstanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
CustomOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext map[string]interface{}
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
Password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
PaymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
Period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
RenewPeriod int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
RenewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
instanceName string
Name of Container Registry Enterprise Edition instance.
instanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
customOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
kmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext {[key: string]: any}
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
paymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
period number
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
renewPeriod number
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
renewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
instance_name str
Name of Container Registry Enterprise Edition instance.
instance_type str
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
custom_oss_bucket str
Name of your customized oss bucket. Use this bucket as instance storage if set.
kms_encrypted_password str
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kms_encryption_context Mapping[str, Any]
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
password str
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
payment_type str
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
renew_period int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
renewal_status str
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.

Outputs

All input properties are implicitly available as output properties. Additionally, the RegistryEnterpriseInstance resource produces the following output properties:

CreatedTime string
Time of Container Registry Enterprise Edition instance creation.
EndTime string
Time of Container Registry Enterprise Edition instance expiration.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of Container Registry Enterprise Edition instance.
CreatedTime string
Time of Container Registry Enterprise Edition instance creation.
EndTime string
Time of Container Registry Enterprise Edition instance expiration.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of Container Registry Enterprise Edition instance.
createdTime string
Time of Container Registry Enterprise Edition instance creation.
endTime string
Time of Container Registry Enterprise Edition instance expiration.
id string
The provider-assigned unique ID for this managed resource.
status string
Status of Container Registry Enterprise Edition instance.
created_time str
Time of Container Registry Enterprise Edition instance creation.
end_time str
Time of Container Registry Enterprise Edition instance expiration.
id str
The provider-assigned unique ID for this managed resource.
status str
Status of Container Registry Enterprise Edition instance.

Look up an Existing RegistryEnterpriseInstance Resource

Get an existing RegistryEnterpriseInstance 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?: RegistryEnterpriseInstanceState, opts?: CustomResourceOptions): RegistryEnterpriseInstance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_time: Optional[str] = None,
        custom_oss_bucket: Optional[str] = None,
        end_time: Optional[str] = None,
        instance_name: Optional[str] = None,
        instance_type: Optional[str] = None,
        kms_encrypted_password: Optional[str] = None,
        kms_encryption_context: Optional[Mapping[str, Any]] = None,
        password: Optional[str] = None,
        payment_type: Optional[str] = None,
        period: Optional[int] = None,
        renew_period: Optional[int] = None,
        renewal_status: Optional[str] = None,
        status: Optional[str] = None) -> RegistryEnterpriseInstance
func GetRegistryEnterpriseInstance(ctx *Context, name string, id IDInput, state *RegistryEnterpriseInstanceState, opts ...ResourceOption) (*RegistryEnterpriseInstance, error)
public static RegistryEnterpriseInstance Get(string name, Input<string> id, RegistryEnterpriseInstanceState? 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:

CreatedTime string
Time of Container Registry Enterprise Edition instance creation.
CustomOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
EndTime string
Time of Container Registry Enterprise Edition instance expiration.
InstanceName string
Name of Container Registry Enterprise Edition instance.
InstanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext Dictionary<string, object>
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
Password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
PaymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
Period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
RenewPeriod int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
RenewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
Status string
Status of Container Registry Enterprise Edition instance.
CreatedTime string
Time of Container Registry Enterprise Edition instance creation.
CustomOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
EndTime string
Time of Container Registry Enterprise Edition instance expiration.
InstanceName string
Name of Container Registry Enterprise Edition instance.
InstanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext map[string]interface{}
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
Password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
PaymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
Period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
RenewPeriod int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
RenewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
Status string
Status of Container Registry Enterprise Edition instance.
createdTime string
Time of Container Registry Enterprise Edition instance creation.
customOssBucket string
Name of your customized oss bucket. Use this bucket as instance storage if set.
endTime string
Time of Container Registry Enterprise Edition instance expiration.
instanceName string
Name of Container Registry Enterprise Edition instance.
instanceType string
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
kmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext {[key: string]: any}
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
password string
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
paymentType string
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
period number
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
renewPeriod number
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
renewalStatus string
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
status string
Status of Container Registry Enterprise Edition instance.
created_time str
Time of Container Registry Enterprise Edition instance creation.
custom_oss_bucket str
Name of your customized oss bucket. Use this bucket as instance storage if set.
end_time str
Time of Container Registry Enterprise Edition instance expiration.
instance_name str
Name of Container Registry Enterprise Edition instance.
instance_type str
Type of Container Registry Enterprise Edition instance. Valid values: Basic, Standard, Advanced.
kms_encrypted_password str
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kms_encryption_context Mapping[str, Any]
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
password str
The password of the Instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
payment_type str
Subscription of Container Registry Enterprise Edition instance. Default value: Subscription. Valid values: Subscription.
period int
Service time of Container Registry Enterprise Edition instance. Default value: 12. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, 60. Unit: month.
renew_period int
Renewal period of Container Registry Enterprise Edition instance. Unit: month.
renewal_status str
Renewal status of Container Registry Enterprise Edition instance. Valid values: AutoRenewal, ManualRenewal.
status str
Status of Container Registry Enterprise Edition instance.

Import

Container Registry Enterprise Edition instance can be imported using the id, e.g.

 $ pulumi import alicloud:cr/registryEnterpriseInstance:RegistryEnterpriseInstance default cri-test

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.