Membuat instans seri ApsaraMQ for RocketMQ 5.x.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateInstance |
create |
*Instance
|
|
None |
Sintaks permintaan
POST /instances HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara berbagai permintaan. Token hanya dapat berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. |
c2c5d1274a8d4317a13bc5b0d4****** |
| body |
object |
No |
Body parameter. |
|
| instanceName |
string |
No |
Nama instans yang akan dibuat. |
rmq-cn-72u3048uxxx. |
| serviceCode |
string |
Yes |
Kode layanan instans. Kode layanan untuk MSMQ RocketMQ adalah rmq. |
rmq. |
| seriesCode |
string |
Yes |
Kode seri utama instans. Untuk informasi lebih lanjut tentang perbedaan antar seri utama, lihat Pemilihan produk. Valid values:
|
standard. |
| subSeriesCode |
string |
Yes |
Kode sub-seri instans. Untuk informasi lebih lanjut tentang perbedaan antar sub-seri, lihat Pemilihan produk. Valid values:
|
cluster_ha. |
| paymentType |
string |
Yes |
Tipe pembayaran instans. MSMQ RocketMQ mendukung langganan dan bayar sesuai pemakaian. Valid values:
|
Subscription. |
| period |
integer |
No |
Durasi langganan. Parameter ini hanya berlaku jika tipe pembayaran instans adalah Langganan. |
3 |
| periodUnit |
string |
No |
Unit epoch minimum dari durasi langganan. Valid values:
|
Month. |
| autoRenew |
boolean |
No |
Apakah akan mengaktifkan perpanjangan otomatis. Parameter ini hanya berlaku jika tipe pembayaran instans adalah Langganan. Valid values:
|
true. |
| autoRenewPeriod |
integer |
No |
Siklus Perpanjangan Otomatis Terpadu. Parameter ini hanya berlaku jika perpanjangan otomatis diaktifkan. Unit: bulan. |
3 |
| remark |
string |
No |
Catatan instans. |
This is the remark for test. |
| productInfo |
object |
No |
Informasi spesifikasi instans. |
|
| msgProcessSpec |
string |
No |
Spesifikasi komputasi untuk pengiriman dan penerimaan Paket. Untuk informasi lebih lanjut tentang batas atas TPS untuk pengiriman dan penerimaan Paket, lihat Spesifikasi instans. |
rmq.s2.2xlarge. |
| sendReceiveRatio |
number |
No |
Rasio TPS pengiriman Paket terhadap total TPS pengiriman dan penerimaan Paket instans. |
0.5 |
| autoScaling |
boolean |
No |
Apakah akan mengaktifkan skalabilitas elastis burstable di luar spesifikasi. Valid values:
|
true. |
| messageRetentionTime |
integer |
No |
Periode retensi pesan. Unit: jam. |
72 |
| storageEncryption |
boolean |
No |
Apakah enkripsi penyimpanan diaktifkan. |
false. |
| storageSecretKey |
string |
No |
Kunci untuk enkripsi penyimpanan. |
xxxxx. |
| capacityType |
string |
No |
Pola kapasitas. Valid values:
|
provisioned. |
| provisionedCapacity |
integer |
No |
Kapasitas tersedia. |
5000 |
| traceOn |
boolean |
No |
Apakah fitur jejak Paket diaktifkan. |
true. |
| drReplicationMode |
string |
No |
Pola replikasi lintas wilayah. Valid values:
|
async_cross_az. |
| adaptiveElasticity |
boolean |
No |
||
| networkInfo |
object |
Yes |
Informasi konfigurasi jaringan. |
|
| vpcInfo |
object |
Yes |
Informasi konfigurasi VPC. |
|
| vpcId |
string |
Yes |
The ID of the VPC to which the instance is connected. Catatan
After a Message Queue for Apache RocketMQ instance is created, you cannot change the VPC to which the instance is connected. If you want to change the VPC, you must release the instance and purchase a new one. |
vpc-wz9qt50xhtj9krb****** |
vSwitchId
deprecated
|
string |
No |
The ID of the vSwitch to which the instance is connected. If you want to connect the instance to multiple vSwitches, separate the vSwitch IDs with vertical bars (|). Catatan
After a Message Queue for Apache RocketMQ instance is created, you cannot change the vSwitch to which the instance is connected. If you want to change the vSwitch, you must release the instance and purchase a new one. Penting
This parameter is deprecated. We recommend that you use the |
vsw-uf6gwtbn6etadpv******* |
| securityGroupIds |
string |
No |
The ID of the security group. |
sg-bp17hpmgz96tvnsdy6so |
| vSwitches |
array<object> |
No |
The list of vSwitches. Catatan
After a Message Queue for Apache RocketMQ instance is created, you cannot change the vSwitches for the instance. If you want to change the vSwitches, you must release the instance and purchase a new one. Penting
This parameter is required. We recommend that you use this parameter to specify a vSwitch instead of the deprecated |
|
|
object |
No |
The vSwitches. |
||
| vSwitchId |
string |
No |
The ID of the vSwitch to which the instance is connected. |
vsw-uf6gwtbn6etadpv******* |
| internetInfo |
object |
Yes |
Informasi konfigurasi jaringan publik. |
|
| internetSpec |
string |
Yes |
Specifies whether to enable Internet access. By default, instances can be accessed only within a VPC. If you enable Internet access for an instance, you are charged for Internet traffic that is generated by the instance. For more information, see Internet access fees. Valid values:
|
disable |
| flowOutType |
string |
Yes |
The billing method for Internet access. Valid values:
|
uninvolved |
| flowOutBandwidth |
integer |
No |
The Internet bandwidth. Unit: Mbit/s. This parameter is required only when the billing method for Internet access is pay-by-bandwidth. Value range: 1 to 1000. |
100 |
ipWhitelist
deprecated
|
array |
No |
The IP address whitelist for Internet access. You can configure an IP address whitelist only for public endpoints. VPC endpoints do not support this feature.
|
|
|
string |
No |
An IP address or CIDR block in the whitelist. |
192.168.x.x/24 |
|
commodityCode
deprecated
|
string |
No |
Kode komoditas. |
ons_ rmqpost_public_cn. |
| resourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-aekzy6pist7uuna. |
| tags |
array<object> |
No |
Daftar tag sumber daya. |
|
|
object |
No |
Tag sumber daya. |
||
| key |
string |
No |
Kunci tag sumber daya. |
xxxKey. |
| value |
string |
No |
Nilai tag sumber daya. |
xxxValue. |
| aclInfo |
object |
No |
Informasi kontrol akses. |
|
| defaultVpcAuthFree |
boolean |
No |
Apakah akan mengizinkan akses bebas otentikasi dari endpoint VPC saat tipe pengenalan identitas cerdas digunakan. |
false. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data tanggapan. |
||
| requestId |
string |
ID permintaan. Setiap ID permintaan bersifat unik dan dapat digunakan untuk memecahkan masalah. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Menunjukkan apakah operasi berhasil. |
true. |
| data |
string |
ID instans yang dibuat. |
rmq-cn-7e22ody**** |
| code |
string |
Kode kesalahan. |
200 |
| message |
string |
Paket kesalahan. |
Success. |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId. |
| dynamicMessage |
string |
Paket kesalahan dinamis. |
InstansId |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": "rmq-cn-7e22ody****",
"code": "200",
"message": "Success",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.