Mengambil informasi harga produk Simple Application Server.
Deskripsi operasi
Keberhasilan atau hasil yang diharapkan tidak dijamin setelah menjalankan perintah. Periksa hasil eksekusi aktual berdasarkan respons yang diterima.
Anda dapat mengkueri informasi eksekusi hingga dua minggu terakhir. Sistem menyimpan maksimal 100.000 catatan eksekusi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribePrice |
list |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans Simple Application Server yang ditentukan.Anda dapat memanggil ListRegions untuk mengkueri daftar wilayah Alibaba Cloud yang didukung. |
cn-hangzhou |
| CommodityType |
string |
Yes |
Jenis resource. Nilai yang valid:
|
Server |
| PlanId |
string |
Yes |
ID paket. Anda dapat memanggil ListPlans untuk mengkueri semua paket di wilayah yang ditentukan. |
swas.s1.cxxxxxx3t05 |
| DataDiskSize |
integer |
No |
Ukuran cloud disk data yang dilampirkan. Satuan: GB. Nilai yang valid: 0 hingga 16380. Nilai harus kelipatan 20. |
20 |
| Period |
integer |
No |
Durasi penagihan. Nilai yang valid:
Nilai default: 1. |
1 |
| PriceUnit |
string |
No |
Nilai yang valid:
Nilai default: Month. |
Month |
| Amount |
integer |
No |
Jumlah instans Simple Application Server yang akan dibuat. Nilai yang valid: 1 hingga 20. Nilai default: 1. |
1 |
| PayType |
string |
No |
Metode penagihan instans. Nilai yang valid:
Contoh nilai: Prepaid. |
Prepaid |
| PromotionOptions |
object |
No |
Informasi opsi promosi. |
|
| CouponNo |
string |
No |
Kode kupon. |
youhuiquan_promotion_option_id_for_blank |
| ActivityId |
string |
No |
||
| OrderType |
string |
No |
Jenis pesanan. Nilai yang valid:
Nilai default: Buy. |
UPLOAD |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh-CN |
|
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan |
30637AD6-D977-4833-A54C-CC89483E**** |
| PriceInfo |
object |
Detail harga. |
|
| Rules |
array<object> |
Informasi aturan promosi. |
|
|
object |
Informasi aturan promosi. |
||
| Description |
string |
Deskripsi parameter kustom. |
买满一年,立享官网价格xxx折扣优惠。 |
| RuleId |
integer |
ID aturan. |
142 |
| Price |
object |
Informasi harga. |
|
| OriginalPrice |
number |
Harga asli. |
1580 |
| DiscountPrice |
number |
Jumlah diskon. |
0.0 |
| StandardPrice |
number |
Harga diskon standar di website resmi atau harga diskon kontrak penjualan langsung. |
899 |
| StandardDiscountPrice |
number |
Harga promosi berdasarkan diskon standar website. |
85 |
| IsContractPromotion |
boolean |
Menunjukkan apakah promosi diterapkan. |
|
| Currency |
string |
Unit mata uang. Nilai yang valid:
|
CNY |
| TradePrice |
number |
Harga transaksi. |
267.4 |
| DetailInfos |
array<object> |
Informasi harga detail setiap konfigurasi. |
|
|
array<object> |
Informasi harga detail setiap konfigurasi. |
||
| OriginalPrice |
number |
Harga asli. |
1850 |
| DiscountPrice |
number |
Harga diskon. |
0.0 |
| CommodityType |
string |
Nama resource. |
Server |
| TradePrice |
number |
Harga transaksi. |
267.4 |
| Promotions |
array<object> |
||
|
object |
|||
| Name |
string |
||
| DiscountOff |
number |
||
| RuleId |
integer |
||
| Coupons |
array<object> |
Menunjukkan apakah kupon dipilih. |
|
|
object |
Kode kupon. |
||
| IsSelected |
boolean |
Menunjukkan apakah kupon dipilih. |
|
| CouponNo |
string |
Kode kupon. Nilai default: |
youhuiquan_promotion_option_id_for_blank |
| Description |
string |
Deskripsi parameter kustom. |
OK |
| DiscountOff |
number |
Jumlah diskon. |
20.0 |
| OptionCode |
string |
ID promosi. |
***** |
| Name |
string |
Nama perintah. |
ACS-SWAS-GenerateRsaKeypair-windows.ps1 |
| Promotions |
array<object> |
Informasi promosi. |
|
|
object |
Informasi promosi. |
||
| Name |
string |
Nama kupon. |
ACS-SWAS-ResetPassword-for-linux.sh |
| DiscountOff |
number |
Jumlah diskon kupon. |
20.0 |
| RuleIds |
array |
ID promosi. |
|
|
integer |
ID promosi. |
a7c77d3b3e6d458996410c650ef38326 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"PriceInfo": {
"Rules": [
{
"Description": "买满一年,立享官网价格xxx折扣优惠。",
"RuleId": 142
}
],
"Price": {
"OriginalPrice": 1580,
"DiscountPrice": 0,
"StandardPrice": 899,
"StandardDiscountPrice": 85,
"IsContractPromotion": false,
"Currency": "CNY",
"TradePrice": 267.4,
"DetailInfos": [
{
"OriginalPrice": 1850,
"DiscountPrice": 0,
"CommodityType": "Server",
"TradePrice": 267.4,
"Promotions": [
{
"Name": "",
"DiscountOff": 0,
"RuleId": 0
}
]
}
],
"Coupons": [
{
"IsSelected": false,
"CouponNo": "youhuiquan_promotion_option_id_for_blank",
"Description": "OK",
"DiscountOff": 20,
"OptionCode": "*****",
"Name": "ACS-SWAS-GenerateRsaKeypair-windows.ps1"
}
],
"Promotions": [
{
"Name": "ACS-SWAS-ResetPassword-for-linux.sh",
"DiscountOff": 20,
"RuleIds": [
0
]
}
]
}
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CSS_SYSTEM_ERROR | The sales system encountered an error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.