All Products
Search
Document Center

Serverless App Engine:DescribeConfigurationPrice

Last Updated:Jun 11, 2026

Mengkueri harga konfigurasi.

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

sae:DescribeConfigurationPrice

none

*全部资源

*

None None

Sintaks permintaan

GET /pop/v1/paas/configurationPrice HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

Cpu

integer

Yes

Jumlah inti CPU yang diperlukan untuk setiap instans. Unit: millicores. Nilai ini tidak boleh 0. Hanya spesifikasi yang ditentukan berikut yang didukung:

  • 500

  • 1000

  • 2000

  • 4000

  • 8000

  • 12000

  • 16000

  • 32000.

2000

Memory

integer

Yes

Jumlah memori yang diperlukan untuk setiap instans. Unit: MB. Nilai ini tidak boleh 0. Ukuran memori harus sesuai dengan spesifikasi CPU. Hanya spesifikasi yang ditentukan berikut yang didukung:

  • 1024: Sesuai dengan 500 millicores dan 1,000 millicores CPU.

  • 2048: Sesuai dengan 500, 1,000, dan 2,000 millicores CPU.

  • 4096: Sesuai dengan 1,000, 2,000, dan 4,000 millicores CPU.

  • 8192: Sesuai dengan 2,000, 4,000, dan 8,000 millicores CPU.

  • 12288: Sesuai dengan 12,000 millicores CPU.

  • 16384: Sesuai dengan 4,000, 8,000, dan 16,000 millicores CPU.

  • 24576: Sesuai dengan 12,000 millicores CPU.

  • 32768: Sesuai dengan 16,000 millicores CPU.

  • 65536: Sesuai dengan 8,000, 16,000, dan 32,000 millicores CPU.

  • 131072: Sesuai dengan 32,000 millicores CPU.

4096

Workload

string

No

Skenario aplikasi. Nilai valid:

  • web

  • micro_service.

Web

ResourceType

string

No

Tipe resource. Nilai valid: NULL (default), default, dan haiguang (server Haiguang).

Valid values:

  • default :

    default.

  • haiguang :

    haiguang.

default

NewSaeVersion

string

No

Versi aplikasi. Nilai valid:

  • lite: Edisi Ringan

  • std: Edisi Standar

  • pro: Edisi Profesional

Valid values:

  • std :

    std.

  • lite :

    lite.

  • pro :

    pro.

std

BestEffortType

string

No

Kebijakan BestEffort. Nilai valid:

  • besteffort: BestEffort

  • try-besteffort: BestEffort diutamakan

  • default: default.

Valid values:

  • default :

    default.

  • try-besteffort :

    try-besteffort.

  • besteffort :

    besteffort.

default

Elemen respons

Element

Type

Description

Example

object

The returned information.

RequestId

string

The request ID.

ADCEC067-86AD-19E2-BD43-E83F3841****

Message

string

The returned message.

  • If the request is successful, success is returned.

  • If the request fails, an error code is returned.

success

TraceId

string

The trace ID.

1a0dcc771722848598056771******

Data

object

The pricing information.

BagUsage

object

The remaining quota of the resource plan.

Cpu

number

The remaining CPU quota. Unit: core-hours.

497570.450009

Mem

number

The remaining memory quota. Unit: GiB-hours.

989802.563546

Cu

number

The remaining computing units (CUs) of the resource plan.

10000

Order

object

The pricing information.

OriginalAmount

number

The original price of the order.

0.0092592

DiscountAmount

number

The discount amount of the order.

0.0018518

RuleIds

array

The promotion ID.

string

The promotion ID.

2000010******

TradeAmount

number

The final price of the order.

0.0074074

Rules

array<object>

The promotion rules.

object

The promotion rule.

RuleDescId

integer

The rule ID.

2000010******

Name

string

The name of the rule.

20% discount on pay-as-you-go

RequestPrice

object

The price per request.

Order

object

The pricing information.

OriginalAmount

number

The original price of the order.

0.0046296

DiscountAmount

number

The discount amount of the order.

0.0009259

TradeAmount

number

The actual transaction price of the order.

0.0037037

RuleIds

array

The rule ID.

string

The discount rule ID.

2000010******

Rules

array<object>

The promotion rules.

object

The promotion rule.

RuleDescId

integer

The policy ID.

2000010******

Name

string

The name of the rule.

20% discount on pay-as-you-go

TrafficPrice

object

The price of traffic.

Order

object

The pricing information.

OriginalAmount

number

The original price of the order.

0.0046296

DiscountAmount

number

The discount amount of the order.

0.0009259

TradeAmount

number

The actual transaction price of the order.

0.0037037

RuleIds

array

The promotion ID.

string

The promotion ID.

2000010******

Rules

array<object>

The promotion rules.

object

The promotion rule.

RuleDescId

number

The rule ID.

2000010******

Name

string

The name of the rule.

20% discount on pay-as-you-go

CpuMemPrice

object

The price of CPU and memory.

Order

object

The pricing information.

OriginalAmount

number

The original price.

0.0046296

DiscountAmount

number

The discount amount of the order.

0.0009259

TradeAmount

number

The actual transaction price of the order.

0.0037037

RuleIds

array

The rule ID.

string

The rule ID.

2000010******

Rules

array<object>

The promotion rules.

object

The promotion rule.

RuleDescId

number

The rule ID.

2000010******

Name

string

The name of the rule.

20% discount on pay-as-you-go

ErrorCode

string

The error code.

  • This parameter is not returned if the request is successful.

  • This parameter is returned if the request fails. For more information, see the Error codes section of this topic.

Code

string

The HTTP status code or POP error code. Valid values:

  • 2xx: The request was successful.

  • 3xx: The request was redirected.

  • 4xx: A request error occurred.

  • 5xx: A server error occurred.

200

Success

boolean

Indicates whether the price of the configuration was obtained.

  • true: The price was obtained.

  • false: The price failed to be obtained.

true

Contoh

Respons sukses

JSONformat

{
  "RequestId": "ADCEC067-86AD-19E2-BD43-E83F3841****",
  "Message": "success",
  "TraceId": "1a0dcc771722848598056771******",
  "Data": {
    "BagUsage": {
      "Cpu": 497570.450009,
      "Mem": 989802.563546,
      "Cu": 10000
    },
    "Order": {
      "OriginalAmount": 0.0092592,
      "DiscountAmount": 0.0018518,
      "RuleIds": [
        "2000010******"
      ],
      "TradeAmount": 0.0074074
    },
    "Rules": [
      {
        "RuleDescId": 0,
        "Name": "20% discount on pay-as-you-go"
      }
    ],
    "RequestPrice": {
      "Order": {
        "OriginalAmount": 0.0046296,
        "DiscountAmount": 0.0009259,
        "TradeAmount": 0.0037037,
        "RuleIds": [
          "2000010******"
        ]
      },
      "Rules": [
        {
          "RuleDescId": 0,
          "Name": "20% discount on pay-as-you-go"
        }
      ]
    },
    "TrafficPrice": {
      "Order": {
        "OriginalAmount": 0.0046296,
        "DiscountAmount": 0.0009259,
        "TradeAmount": 0.0037037,
        "RuleIds": [
          "2000010******"
        ]
      },
      "Rules": [
        {
          "RuleDescId": 0,
          "Name": "20% discount on pay-as-you-go"
        }
      ]
    },
    "CpuMemPrice": {
      "Order": {
        "OriginalAmount": 0.0046296,
        "DiscountAmount": 0.0009259,
        "TradeAmount": 0.0037037,
        "RuleIds": [
          "2000010******"
        ]
      },
      "Rules": [
        {
          "RuleDescId": 0,
          "Name": "20% discount on pay-as-you-go"
        }
      ]
    }
  },
  "ErrorCode": "",
  "Code": "200",
  "Success": true
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameter.Obviously The specified parameter is invalid {%s}.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.