All Products
Search
Document Center

:CreateInstance

Last Updated:Nov 11, 2025

Creates and pays for a Container Registry Enterprise Edition instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesCreateInstanceThe operation that you want to perform. Set the value to CreateInstance.
Parameter.1.CodeStringYesInstanceTypeThe name of the first attribute for the Container Registry Enterprise Edition instance. Set this parameter to InstanceType. This attribute specifies the instance type of the Container Registry Enterprise Edition instance.
Parameter.1.ValueStringYesStandardThe value of the first attribute for the Container Registry Enterprise Edition instance. Valid values:
  • Basic: Basic Edition
  • Standard: Standard Edition
  • Advanced: Advanced Edition
Parameter.2.CodeStringYesInstanceNameThe name of the second attribute for the Container Registry Enterprise Edition instance. Set this parameter to InstanceName. This attribute specifies the name of the Container Registry Enterprise Edition instance.
Parameter.2.ValueStringYesauto-create-instance

The value of the second attribute for the Container Registry Enterprise Edition instance. Set this parameter to the name of the Container Registry Enterprise Edition instance.

The name can be 3 to 30 characters in length and can contain lowercase letters, digits, and hyphens (-). The name cannot start or end with a hyphen (-).

Parameter.3.CodeStringYesRegionThe name of the third attribute for the Container Registry Enterprise Edition instance. Set this parameter to Region. This attribute specifies the region in which you want to create the Container Registry Enterprise Edition instance.
Parameter.3.ValueStringYescn-shanghaiThe value of the third attribute for the Container Registry Enterprise Edition instance. Set this parameter to the ID of a region where Container Registry Enterprise Edition is available. For more information about the regions where Container Registry Enterprise Edition is available, see Supported regions.
Parameter.4.CodeStringYesDefaultOssBucketThe name of the fourth attribute for the Container Registry Enterprise Edition instance. Set this parameter to DefaultOssBucket. This attribute specifies whether the Container Registry Enterprise Edition instance uses the default Object Storage Service (OSS) bucket.
Parameter.4.ValueStringYestrueThe value of the fourth attribute for the Container Registry Enterprise Edition instance. Valid values:
  • true: The Container Registry Enterprise Edition instance uses the default OSS bucket.
  • false: The Container Registry Enterprise Edition instance uses a custom OSS bucket.
Parameter.5.CodeStringYesInstanceStorageNameThe name of the fifth attribute for the Container Registry Enterprise Edition instance. Set this parameter to InstanceStorageName. This attribute specifies the name of the custom OSS bucket.
Parameter.5.ValueStringYesmy-customized-oss-bucketThe value of the fifth attribute for the Container Registry Enterprise Edition instance. Set this parameter to the name of the custom OSS bucket.
Note If the value of the fourth attribute is false, the Container Registry Enterprise Edition instance uses a custom OSS bucket. In this case, this parameter is required.
ProductCodeStringYesacrThe code of the service to which the instance belongs.

Set the value to acr.

SubscriptionTypeStringYesSubscriptionThe billing method of the instance.

Set the value to Subscription.

ProductTypeStringNoacr_ee_public_cnThe type of the instance. Valid values:

Set the value to acr_ee_public_intl for Container Registry Enterprise Edition instances.

RenewPeriodIntegerNo12

The auto-renewal period. Unit: month.

Note This parameter is required if the RenewalStatus parameter is set to AutoRenewal.
PeriodIntegerYes12The subscription period.

Unit: month. The value must be an integral multiple of 12.

Note This parameter is required if you create a subscription instance.
RenewalStatusStringNoManualRenewalThe renewal method. Valid values:
  • AutoRenewal: Auto renewal is enabled.
  • ManualRenewal: The instance is manually renewed.

Default value: ManualRenewal.

ClientTokenStringNoXJSYHDKALSS****The client token that is used to ensure the idempotence of the request. The server checks whether a request that uses the same client token has been received. If a request that uses the same client token has been received, the server returns the same request result as the previous request.

Response parameters

ParameterTypeExampleDescription
codeStringSuccessThe returned code.
dataStructStructThe returned information.
instanceIdStringcri-****The ID of the created Container Registry Enterprise Edition instance.
orderIdString20857****The order ID of the created Container Registry Enterprise Edition instance.
messageStringSuccessful The returned message that corresponds to the returned code.
requestIdStringA555455B-EA70-4114-AB0D-A35E75F8****The ID of the request.
successBooleantrueIndicates whether the call was successful. Valid values:
  • true: The call was successful.
  • false: The call failed.

Examples

Sample request

http(s)://[Endpoint]/?Action=CreateInstance
&Parameter.1.Code=InstanceType
&Parameter.1.Value=Standard
&Parameter.2.Code=InstanceName
&Parameter.2.Value=auto-create-instance
&Parameter.3.Code=Region
&Parameter.3.Value=cn-shanghai
&Parameter.4.Code=DefaultOssBucket
&Parameter.4.Value=true
&Parameter.5.Code=InstanceStorageName
&Parameter.5.Value=my-customized-oss-bucket
&ProductCode=acr
&SubscriptionType=Subscription
&ProductType=acr_ee_public_cn
&RenewPeriod=12
&Period=12
&RenewalStatus=ManualRenewal
&ClientToken=XJSYHDKALSS****
&<Common request parameters>

Sample success responses

XML format

<code>Success</code>
<IsSuccess>true</IsSuccess>
<data>
<instanceId>cri-****</instanceId>
<orderId>214*****</orderId>
</data>
<message>Successful!</message>
<requestId>00AE3C85-048C-575E-A599-***********</requestId>
<success>true</success>
            

JSON format

{
    "code":"Success",
    "IsSuccess": true,
    "data": {
        "instanceId":"cri-****",
        "orderId":"214*****"
    },
    "message":"Successful!",
    "requestId":"00AE3C85-048C-575E-A599-***********",
    "success":true
}

Error codes

For a list of error codes, visit the API Error Center.