All Products
Search
Document Center

Simple Application Server:DescribePrice

Last Updated:Jul 09, 2026

Mengambil informasi harga produk Simple Application Server.

Deskripsi operasi

  • Setelah Anda menjalankan perintah, keberhasilan atau hasil yang diharapkan tidak dijamin. Periksa hasil eksekusi aktual berdasarkan tanggapan.

  • Anda dapat mengkueri informasi eksekusi dari dua minggu terakhir. Maksimal 100.000 catatan eksekusi disimpan.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

swas-open:DescribePrice

list

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah instans Simple Application Server. Anda dapat memanggil ListRegions untuk mengkueri daftar wilayah yang didukung.

cn-hangzhou

CommodityType

string

Yes

Tipe resource. Nilai valid:

  • Server

Server

PlanId

string

Yes

ID paket. Anda dapat memanggil ListPlans untuk mengkueri semua paket di wilayah tertentu.

swas.s1.cxxxxxx3t05

DataDiskSize

integer

No

Ukuran cloud disk data yang dilampirkan. Unit: GB. Nilai valid: 0 hingga 16380. Nilai harus merupakan kelipatan 20.

20

Period

integer

No

Durasi penagihan. Nilai valid:

  • Jika PriceUnit diatur ke Month: 1 hingga 9.

  • Jika PriceUnit diatur ke Year: 1 hingga 5.

Nilai default: 1.

1

PriceUnit

string

No

Nilai valid:

  • Month: unit penagihan bulanan.

  • Year: unit penagihan tahunan.

Nilai default: Month.

Month

Amount

integer

No

Jumlah instans Simple Application Server yang akan dibuat. Nilai valid: 1 hingga 20.

Nilai default: 1.

1

PayType

string

No

Tipe penagihan instans. Nilai valid:

  • Prepaid: langganan.

Nilai contoh: 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

Tipe pesanan. Nilai valid:

  • Buy

Nilai default: Buy.

UPLOAD

AcceptLanguage

string

No

Bahasa tanggapan. Nilai valid:

  • zh-CN (default): Bahasa Tionghoa.

  • en-US: Bahasa Inggris.

zh-CN

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

The description of the promotion rule.

买满一年,立享官网价格xxx折扣优惠。

RuleId

integer

The rule ID.

142

Price

object

Informasi harga.

OriginalPrice

number

The original price.

1580

DiscountPrice

number

The discount amount.

0.0

StandardPrice

number

The standard price published on the official website or specified in a direct sales contract.

899

StandardDiscountPrice

number

The promotional price based on the official website discount.

85

IsContractPromotion

boolean

Indicates whether a promotion is applied.

Currency

string

The currency. Valid values:

  • CNY

  • USD

CNY

TradePrice

number

The transaction price.

267.4

DetailInfos

array<object>

The detailed price information for the configuration.

array<object>

An entry of detailed price information for the configuration.

OriginalPrice

number

The original price.

1850

DiscountPrice

number

The discount amount.

0.0

CommodityType

string

The commodity type.

Server

TradePrice

number

The transaction price.

267.4

Promotions

array<object>

object

Name

string

DiscountOff

number

RuleId

integer

Coupons

array<object>

The coupons.

object

The coupon.

IsSelected

boolean

Indicates whether the coupon is selected.

CouponNo

string

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

youhuiquan_promotion_option_id_for_blank

Description

string

The description of the coupon.

OK

DiscountOff

number

The discount provided by the coupon.

20.0

OptionCode

string

The promotion ID.

*****

Name

string

The coupon name.

ACS-SWAS-GenerateRsaKeypair-windows.ps1

Promotions

array<object>

The promotions.

object

The promotion.

Name

string

The name of the promotion.

ACS-SWAS-ResetPassword-for-linux.sh

DiscountOff

number

The discount amount of the promotion.

20.0

RuleIds

array

The promotion IDs.

integer

The promotion ID.

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.