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 dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateInstance The operation that you want to perform. Set the value to CreateInstance.
Parameter.1.Code String Yes InstanceType The name of the first attribute for the Container Registry Enterprise Edition instance. Set this parameter to SeriesCode. This attribute specifies the type of the Container Registry Enterprise Edition instance.
Parameter.1.Value String Yes Standard The 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.Code String Yes InstanceName The 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.Value String Yes auto-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.Code String Yes Region The 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.Value String Yes cn-shanghai The value of the third attribute for the Container Registry Enterprise Edition instance. Set this parameter to the ID of the region. Valid values:
  • cn-hangzhou: China (Hangzhou)
  • cn-shanghai: China (Shanghai)
  • cn-beijing: China (Beijing)
  • cn-zhangjiakou: China (Zhangjiakou)
  • cn-shenzhen: China (Shenzhen)
  • cn-hongkong: China (Hong Kong)
  • ap-northeast-1: Japan (Tokyo)
  • ap-southeast-1: Singapore
  • ap-southeast-5: Indonesia (Jakarta)
  • ap-south-1: India (Mumbai)
  • eu-central-1: Germany (Frankfurt)
  • us-east-1: US (Virginia)
  • us-west-1: US (Silicon Valley)
  • cn-hangzhou-finance: China East 1 Finance
  • cn-shanghai-finance-1: China East 1 Finance
Parameter.4.Code String Yes DefaultOssBucket The 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.Value String Yes true The 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.Code String Yes InstanceStorageName The 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.Value String Yes my-customized-oss-bucket The 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.
ProductCode String Yes acr The service code.

Set the value to acr.

SubscriptionType String Yes Subscription The billing method.

Set the value to Subscription.

ProductType String No acr_ee_public_cn The edition of the service.

Set the value to acr_ee_public_cn for Container Registry Enterprise Edition.

RenewPeriod Integer No 12

The auto-renewal period. Unit: month.

Note This parameter is required when the RenewalStatus parameter is set to AutoRenewal.
Period Integer Yes 12 The subscription period.

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

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

Default value: ManualRenewal.

ClientToken String No XJSYHDKALSS**** The client token that is used to ensure the idempotence of the request. The server checks whether a request with the same client token has been received. If so, the server returns the query result of the earlier request.

Response parameters

Parameter Type Example Description
Code String Success The return code.
Data Struct Struct The returned information.
InstanceId String cri-**** The ID of the created Container Registry Enterprise Edition instance.
OrderId String 20857**** The order ID of the created Container Registry Enterprise Edition instance.
Message String Successful! The return message that corresponds to the return code.
RequestId String A555455B-EA70-4114-AB0D-A35E75F8**** The ID of the request.
Success Boolean true Indicates whether the call was successful. Valid values:
  • true
  • false

Error codes

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