1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cr
  5. RegistryEnterpriseInstance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cr.RegistryEnterpriseInstance

Explore with Pulumi AI

Provides a CR Instance resource.

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

NOTE: Available since v1.124.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new random.index.Integer("default", {
    min: 10000000,
    max: 99999999,
});
const defaultRegistryEnterpriseInstance = new alicloud.cr.RegistryEnterpriseInstance("default", {
    paymentType: "Subscription",
    period: 1,
    renewPeriod: 0,
    renewalStatus: "ManualRenewal",
    instanceType: "Advanced",
    instanceName: `${name}-${_default.result}`,
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = random.index.Integer("default",
    min=10000000,
    max=99999999)
default_registry_enterprise_instance = alicloud.cr.RegistryEnterpriseInstance("default",
    payment_type="Subscription",
    period=1,
    renew_period=0,
    renewal_status="ManualRenewal",
    instance_type="Advanced",
    instance_name=f"{name}-{default['result']}")
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000000,
			Max: 99999999,
		})
		if err != nil {
			return err
		}
		_, err = cr.NewRegistryEnterpriseInstance(ctx, "default", &cr.RegistryEnterpriseInstanceArgs{
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(1),
			RenewPeriod:   pulumi.Int(0),
			RenewalStatus: pulumi.String("ManualRenewal"),
			InstanceType:  pulumi.String("Advanced"),
			InstanceName:  pulumi.Sprintf("%v-%v", name, _default.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var @default = new Random.Index.Integer("default", new()
    {
        Min = 10000000,
        Max = 99999999,
    });

    var defaultRegistryEnterpriseInstance = new AliCloud.CR.RegistryEnterpriseInstance("default", new()
    {
        PaymentType = "Subscription",
        Period = 1,
        RenewPeriod = 0,
        RenewalStatus = "ManualRenewal",
        InstanceType = "Advanced",
        InstanceName = $"{name}-{@default.Result}",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstance;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        var default_ = new Integer("default", IntegerArgs.builder()
            .min(10000000)
            .max(99999999)
            .build());

        var defaultRegistryEnterpriseInstance = new RegistryEnterpriseInstance("defaultRegistryEnterpriseInstance", RegistryEnterpriseInstanceArgs.builder()
            .paymentType("Subscription")
            .period(1)
            .renewPeriod(0)
            .renewalStatus("ManualRenewal")
            .instanceType("Advanced")
            .instanceName(String.format("%s-%s", name,default_.result()))
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
resources:
  default:
    type: random:integer
    properties:
      min: 1e+07
      max: 9.9999999e+07
  defaultRegistryEnterpriseInstance:
    type: alicloud:cr:RegistryEnterpriseInstance
    name: default
    properties:
      paymentType: Subscription
      period: 1
      renewPeriod: 0
      renewalStatus: ManualRenewal
      instanceType: Advanced
      instanceName: ${name}-${default.result}
Copy

Create RegistryEnterpriseInstance Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RegistryEnterpriseInstance(name: string, args: RegistryEnterpriseInstanceArgs, opts?: CustomResourceOptions);
@overload
def RegistryEnterpriseInstance(resource_name: str,
                               args: RegistryEnterpriseInstanceArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def RegistryEnterpriseInstance(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               instance_name: Optional[str] = None,
                               payment_type: Optional[str] = None,
                               instance_type: Optional[str] = None,
                               kms_encryption_context: Optional[Mapping[str, str]] = None,
                               image_scanner: Optional[str] = None,
                               kms_encrypted_password: Optional[str] = None,
                               custom_oss_bucket: Optional[str] = None,
                               password: Optional[str] = None,
                               default_oss_bucket: Optional[str] = None,
                               period: Optional[int] = None,
                               renew_period: Optional[int] = None,
                               renewal_status: Optional[str] = None,
                               resource_group_id: Optional[str] = None)
func NewRegistryEnterpriseInstance(ctx *Context, name string, args RegistryEnterpriseInstanceArgs, opts ...ResourceOption) (*RegistryEnterpriseInstance, error)
public RegistryEnterpriseInstance(string name, RegistryEnterpriseInstanceArgs args, CustomResourceOptions? opts = null)
public RegistryEnterpriseInstance(String name, RegistryEnterpriseInstanceArgs args)
public RegistryEnterpriseInstance(String name, RegistryEnterpriseInstanceArgs args, CustomResourceOptions options)
type: alicloud:cr:RegistryEnterpriseInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RegistryEnterpriseInstanceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var registryEnterpriseInstanceResource = new AliCloud.CR.RegistryEnterpriseInstance("registryEnterpriseInstanceResource", new()
{
    InstanceName = "string",
    PaymentType = "string",
    InstanceType = "string",
    KmsEncryptionContext = 
    {
        { "string", "string" },
    },
    ImageScanner = "string",
    KmsEncryptedPassword = "string",
    CustomOssBucket = "string",
    Password = "string",
    DefaultOssBucket = "string",
    Period = 0,
    RenewPeriod = 0,
    RenewalStatus = "string",
    ResourceGroupId = "string",
});
Copy
example, err := cr.NewRegistryEnterpriseInstance(ctx, "registryEnterpriseInstanceResource", &cr.RegistryEnterpriseInstanceArgs{
	InstanceName: pulumi.String("string"),
	PaymentType:  pulumi.String("string"),
	InstanceType: pulumi.String("string"),
	KmsEncryptionContext: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ImageScanner:         pulumi.String("string"),
	KmsEncryptedPassword: pulumi.String("string"),
	CustomOssBucket:      pulumi.String("string"),
	Password:             pulumi.String("string"),
	DefaultOssBucket:     pulumi.String("string"),
	Period:               pulumi.Int(0),
	RenewPeriod:          pulumi.Int(0),
	RenewalStatus:        pulumi.String("string"),
	ResourceGroupId:      pulumi.String("string"),
})
Copy
var registryEnterpriseInstanceResource = new RegistryEnterpriseInstance("registryEnterpriseInstanceResource", RegistryEnterpriseInstanceArgs.builder()
    .instanceName("string")
    .paymentType("string")
    .instanceType("string")
    .kmsEncryptionContext(Map.of("string", "string"))
    .imageScanner("string")
    .kmsEncryptedPassword("string")
    .customOssBucket("string")
    .password("string")
    .defaultOssBucket("string")
    .period(0)
    .renewPeriod(0)
    .renewalStatus("string")
    .resourceGroupId("string")
    .build());
Copy
registry_enterprise_instance_resource = alicloud.cr.RegistryEnterpriseInstance("registryEnterpriseInstanceResource",
    instance_name="string",
    payment_type="string",
    instance_type="string",
    kms_encryption_context={
        "string": "string",
    },
    image_scanner="string",
    kms_encrypted_password="string",
    custom_oss_bucket="string",
    password="string",
    default_oss_bucket="string",
    period=0,
    renew_period=0,
    renewal_status="string",
    resource_group_id="string")
Copy
const registryEnterpriseInstanceResource = new alicloud.cr.RegistryEnterpriseInstance("registryEnterpriseInstanceResource", {
    instanceName: "string",
    paymentType: "string",
    instanceType: "string",
    kmsEncryptionContext: {
        string: "string",
    },
    imageScanner: "string",
    kmsEncryptedPassword: "string",
    customOssBucket: "string",
    password: "string",
    defaultOssBucket: "string",
    period: 0,
    renewPeriod: 0,
    renewalStatus: "string",
    resourceGroupId: "string",
});
Copy
type: alicloud:cr:RegistryEnterpriseInstance
properties:
    customOssBucket: string
    defaultOssBucket: string
    imageScanner: string
    instanceName: string
    instanceType: string
    kmsEncryptedPassword: string
    kmsEncryptionContext:
        string: string
    password: string
    paymentType: string
    period: 0
    renewPeriod: 0
    renewalStatus: string
    resourceGroupId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RegistryEnterpriseInstance resource accepts the following input properties:

InstanceName
This property is required.
Changes to this property will trigger replacement.
string
InstanceName
InstanceType This property is required. string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
Payment type, value:

  • Subscription: Prepaid.
CustomOssBucket string
Custom OSS Bucket name
DefaultOssBucket string
Whether to use the default OSS Bucket. Value:
ImageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext Dictionary<string, string>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
Period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

RenewPeriod Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

RenewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

ResourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

InstanceName
This property is required.
Changes to this property will trigger replacement.
string
InstanceName
InstanceType This property is required. string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
Payment type, value:

  • Subscription: Prepaid.
CustomOssBucket string
Custom OSS Bucket name
DefaultOssBucket string
Whether to use the default OSS Bucket. Value:
ImageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext map[string]string
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
Period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

RenewPeriod Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

RenewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

ResourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

instanceName
This property is required.
Changes to this property will trigger replacement.
String
InstanceName
instanceType This property is required. String
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
paymentType
This property is required.
Changes to this property will trigger replacement.
String
Payment type, value:

  • Subscription: Prepaid.
customOssBucket String
Custom OSS Bucket name
defaultOssBucket String
Whether to use the default OSS Bucket. Value:
imageScanner String
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
kmsEncryptedPassword String
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext Map<String,String>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
period Integer

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

renewPeriod Changes to this property will trigger replacement. Integer

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. String

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId String

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

instanceName
This property is required.
Changes to this property will trigger replacement.
string
InstanceName
instanceType This property is required. string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
paymentType
This property is required.
Changes to this property will trigger replacement.
string
Payment type, value:

  • Subscription: Prepaid.
customOssBucket string
Custom OSS Bucket name
defaultOssBucket string
Whether to use the default OSS Bucket. Value:
imageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
kmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext {[key: string]: string}
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
period number

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

renewPeriod Changes to this property will trigger replacement. number

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

instance_name
This property is required.
Changes to this property will trigger replacement.
str
InstanceName
instance_type This property is required. str
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
payment_type
This property is required.
Changes to this property will trigger replacement.
str
Payment type, value:

  • Subscription: Prepaid.
custom_oss_bucket str
Custom OSS Bucket name
default_oss_bucket str
Whether to use the default OSS Bucket. Value:
image_scanner str
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
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, str]
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

renew_period Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewal_status Changes to this property will trigger replacement. str

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resource_group_id str

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

instanceName
This property is required.
Changes to this property will trigger replacement.
String
InstanceName
instanceType This property is required. String
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
paymentType
This property is required.
Changes to this property will trigger replacement.
String
Payment type, value:

  • Subscription: Prepaid.
customOssBucket String
Custom OSS Bucket name
defaultOssBucket String
Whether to use the default OSS Bucket. Value:
imageScanner String
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
kmsEncryptedPassword String
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext Map<String>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
period Number

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

renewPeriod Changes to this property will trigger replacement. Number

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. String

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId String

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

Outputs

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

CreateTime string
The creation time of the resource
CreatedTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

EndTime string
Expiration Time
Id string
The provider-assigned unique ID for this managed resource.
InstanceEndpoints List<Pulumi.AliCloud.CR.Outputs.RegistryEnterpriseInstanceInstanceEndpoint>
(Available since v1.240.0) Instance Network Access Endpoint List
RegionId string
RegionId
Status string
Instance Status
CreateTime string
The creation time of the resource
CreatedTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

EndTime string
Expiration Time
Id string
The provider-assigned unique ID for this managed resource.
InstanceEndpoints []RegistryEnterpriseInstanceInstanceEndpoint
(Available since v1.240.0) Instance Network Access Endpoint List
RegionId string
RegionId
Status string
Instance Status
createTime String
The creation time of the resource
createdTime String
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

endTime String
Expiration Time
id String
The provider-assigned unique ID for this managed resource.
instanceEndpoints List<RegistryEnterpriseInstanceInstanceEndpoint>
(Available since v1.240.0) Instance Network Access Endpoint List
regionId String
RegionId
status String
Instance Status
createTime string
The creation time of the resource
createdTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

endTime string
Expiration Time
id string
The provider-assigned unique ID for this managed resource.
instanceEndpoints RegistryEnterpriseInstanceInstanceEndpoint[]
(Available since v1.240.0) Instance Network Access Endpoint List
regionId string
RegionId
status string
Instance Status
create_time str
The creation time of the resource
created_time str
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

end_time str
Expiration Time
id str
The provider-assigned unique ID for this managed resource.
instance_endpoints Sequence[RegistryEnterpriseInstanceInstanceEndpoint]
(Available since v1.240.0) Instance Network Access Endpoint List
region_id str
RegionId
status str
Instance Status
createTime String
The creation time of the resource
createdTime String
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

endTime String
Expiration Time
id String
The provider-assigned unique ID for this managed resource.
instanceEndpoints List<Property Map>
(Available since v1.240.0) Instance Network Access Endpoint List
regionId String
RegionId
status String
Instance Status

Look up 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,
        create_time: Optional[str] = None,
        created_time: Optional[str] = None,
        custom_oss_bucket: Optional[str] = None,
        default_oss_bucket: Optional[str] = None,
        end_time: Optional[str] = None,
        image_scanner: Optional[str] = None,
        instance_endpoints: Optional[Sequence[RegistryEnterpriseInstanceInstanceEndpointArgs]] = None,
        instance_name: Optional[str] = None,
        instance_type: Optional[str] = None,
        kms_encrypted_password: Optional[str] = None,
        kms_encryption_context: Optional[Mapping[str, str]] = None,
        password: Optional[str] = None,
        payment_type: Optional[str] = None,
        period: Optional[int] = None,
        region_id: Optional[str] = None,
        renew_period: Optional[int] = None,
        renewal_status: Optional[str] = None,
        resource_group_id: 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)
public static RegistryEnterpriseInstance get(String name, Output<String> id, RegistryEnterpriseInstanceState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cr:RegistryEnterpriseInstance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreateTime string
The creation time of the resource
CreatedTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

CustomOssBucket string
Custom OSS Bucket name
DefaultOssBucket string
Whether to use the default OSS Bucket. Value:
EndTime string
Expiration Time
ImageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
InstanceEndpoints List<Pulumi.AliCloud.CR.Inputs.RegistryEnterpriseInstanceInstanceEndpoint>
(Available since v1.240.0) Instance Network Access Endpoint List
InstanceName Changes to this property will trigger replacement. string
InstanceName
InstanceType string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext Dictionary<string, string>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
PaymentType Changes to this property will trigger replacement. string
Payment type, value:

  • Subscription: Prepaid.
Period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

RegionId string
RegionId
RenewPeriod Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

RenewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

ResourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

Status string
Instance Status
CreateTime string
The creation time of the resource
CreatedTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

CustomOssBucket string
Custom OSS Bucket name
DefaultOssBucket string
Whether to use the default OSS Bucket. Value:
EndTime string
Expiration Time
ImageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
InstanceEndpoints []RegistryEnterpriseInstanceInstanceEndpointArgs
(Available since v1.240.0) Instance Network Access Endpoint List
InstanceName Changes to this property will trigger replacement. string
InstanceName
InstanceType string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
KmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
KmsEncryptionContext map[string]string
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
PaymentType Changes to this property will trigger replacement. string
Payment type, value:

  • Subscription: Prepaid.
Period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

RegionId string
RegionId
RenewPeriod Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

RenewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

ResourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

Status string
Instance Status
createTime String
The creation time of the resource
createdTime String
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

customOssBucket String
Custom OSS Bucket name
defaultOssBucket String
Whether to use the default OSS Bucket. Value:
endTime String
Expiration Time
imageScanner String
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
instanceEndpoints List<RegistryEnterpriseInstanceInstanceEndpoint>
(Available since v1.240.0) Instance Network Access Endpoint List
instanceName Changes to this property will trigger replacement. String
InstanceName
instanceType String
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
kmsEncryptedPassword String
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext Map<String,String>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
paymentType Changes to this property will trigger replacement. String
Payment type, value:

  • Subscription: Prepaid.
period Integer

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

regionId String
RegionId
renewPeriod Changes to this property will trigger replacement. Integer

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. String

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId String

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

status String
Instance Status
createTime string
The creation time of the resource
createdTime string
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

customOssBucket string
Custom OSS Bucket name
defaultOssBucket string
Whether to use the default OSS Bucket. Value:
endTime string
Expiration Time
imageScanner string
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
instanceEndpoints RegistryEnterpriseInstanceInstanceEndpoint[]
(Available since v1.240.0) Instance Network Access Endpoint List
instanceName Changes to this property will trigger replacement. string
InstanceName
instanceType string
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
kmsEncryptedPassword string
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext {[key: string]: string}
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
paymentType Changes to this property will trigger replacement. string
Payment type, value:

  • Subscription: Prepaid.
period number

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

regionId string
RegionId
renewPeriod Changes to this property will trigger replacement. number

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. string

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId string

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

status string
Instance Status
create_time str
The creation time of the resource
created_time str
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

custom_oss_bucket str
Custom OSS Bucket name
default_oss_bucket str
Whether to use the default OSS Bucket. Value:
end_time str
Expiration Time
image_scanner str
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
instance_endpoints Sequence[RegistryEnterpriseInstanceInstanceEndpointArgs]
(Available since v1.240.0) Instance Network Access Endpoint List
instance_name Changes to this property will trigger replacement. str
InstanceName
instance_type str
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
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, str]
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
payment_type Changes to this property will trigger replacement. str
Payment type, value:

  • Subscription: Prepaid.
period int

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

region_id str
RegionId
renew_period Changes to this property will trigger replacement. int

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewal_status Changes to this property will trigger replacement. str

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resource_group_id str

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

status str
Instance Status
createTime String
The creation time of the resource
createdTime String
. Field 'created_time' has been deprecated from provider version 1.235.0. New field 'create_time' instead.

Deprecated: Field 'created_time' has been deprecated since provider version 1.235.0. New field 'create_time' instead.

customOssBucket String
Custom OSS Bucket name
defaultOssBucket String
Whether to use the default OSS Bucket. Value:
endTime String
Expiration Time
imageScanner String
The security scan engine used by the Enterprise Edition of Container Image Service. Value:

  • ACR: Uses the Trivy scan engine provided by default.
  • SAS: uses the enhanced cloud security scan engine.
instanceEndpoints List<Property Map>
(Available since v1.240.0) Instance Network Access Endpoint List
instanceName Changes to this property will trigger replacement. String
InstanceName
instanceType String
The Value configuration of the Group 1 attribute of Container Mirror Service Enterprise Edition. Valid values:

  • Basic: Basic instance
  • Standard: Standard instance
  • Advanced: Advanced Edition Instance
kmsEncryptedPassword String
An KMS encrypts password used to an instance. If the password is filled in, this field will be ignored.
kmsEncryptionContext Map<String>
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
Login password, 8-32 digits, must contain at least two letters, symbols, or numbers
paymentType Changes to this property will trigger replacement. String
Payment type, value:

  • Subscription: Prepaid.
period Number

Prepaid cycle. The unit is Monthly, please enter an integer multiple of 12 for annual paid products.

NOTE: must be set when creating a prepaid instance.

regionId String
RegionId
renewPeriod Changes to this property will trigger replacement. Number

Automatic renewal cycle, in months.

NOTE: When RenewalStatus is set to AutoRenewal, it must be set.

renewalStatus Changes to this property will trigger replacement. String

Automatic renewal status, value:

  • AutoRenewal: automatic renewal.
  • ManualRenewal: manual renewal.

Default ManualRenewal.

resourceGroupId String

The ID of the resource group

The following arguments will be discarded. Please use new fields as soon as possible:

status String
Instance Status

Supporting Types

RegistryEnterpriseInstanceInstanceEndpoint
, RegistryEnterpriseInstanceInstanceEndpointArgs

Domains []RegistryEnterpriseInstanceInstanceEndpointDomain
Domain List
Enable bool
enable
EndpointType string
Network Access Endpoint Type
domains List<RegistryEnterpriseInstanceInstanceEndpointDomain>
Domain List
enable Boolean
enable
endpointType String
Network Access Endpoint Type
domains RegistryEnterpriseInstanceInstanceEndpointDomain[]
Domain List
enable boolean
enable
endpointType string
Network Access Endpoint Type
domains List<Property Map>
Domain List
enable Boolean
enable
endpointType String
Network Access Endpoint Type

RegistryEnterpriseInstanceInstanceEndpointDomain
, RegistryEnterpriseInstanceInstanceEndpointDomainArgs

Domain string
Domain
Type string
Domain Type
Domain string
Domain
Type string
Domain Type
domain String
Domain
type String
Domain Type
domain string
Domain
type string
Domain Type
domain str
Domain
type str
Domain Type
domain String
Domain
type String
Domain Type

Import

CR Instance can be imported using the id, e.g.

$ pulumi import alicloud:cr/registryEnterpriseInstance:RegistryEnterpriseInstance example <id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.