All Products
Search
Document Center

Edge Security Acceleration:GetHttpsApplicationConfiguration

Last Updated:Jun 11, 2026

Mengambil konfigurasi aplikasi HTTPS tunggal.

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

esa:GetHttpsApplicationConfiguration

get

*Site

acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

SiteId

integer

Yes

ID situs. Anda dapat memperoleh ID ini dengan memanggil operasi ListSites.

1234567890123

ConfigId

integer

Yes

ID konfigurasi. Anda dapat memperoleh ID ini dengan memanggil operasi listHttpsApplicationConfigurations.

352816096987136

Elemen respons

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

A3790430-3A06-535F-A424-0998BD9A6C9F

ConfigId

integer

The configuration ID.

352816096987136

ConfigType

string

The configuration type. You can query for a global or rule configuration based on this parameter. Valid values:

  • global: a global configuration.

  • rule: a rule configuration.

global

SiteVersion

integer

The version number of the site configuration. For sites with configuration versioning enabled, this parameter specifies the applicable site version. The default is version 0.

1

Sequence

integer

The rule execution order. A smaller value indicates a higher priority.

1

RuleEnable

string

Specifies whether to enable the rule. This parameter is not required for a global configuration. Valid values:

  • on: Enabled.

  • off: Disabled.

on

Rule

string

The conditional expression used to match user requests. This parameter is not required for a global configuration. There are two scenarios:

  • To match all incoming requests, set the value to true.

  • To match specific requests, set the value to a custom expression, such as (http.host eq "video.example.com").

(http.host eq \"video.example.com\")

RuleName

string

The rule name. This parameter is not required for a global configuration.

rule_example

HttpsForce

string

Specifies whether to enable force HTTPS, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HttpsForceCode

string

The status code for the force HTTPS redirect. Valid values:

  • 301

  • 302

  • 307

  • 308

301

AltSvc

string

Specifies whether to enable the Alt-Svc feature, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

AltSvcClear

string

Specifies whether to include the clear parameter in the Alt-Svc header, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

AltSvcPersist

string

Specifies whether to include the persist parameter in the Alt-Svc header, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

AltSvcMa

string

The Alt-Svc max-age, in seconds. Default: 86400.

86400

Hsts

string

Specifies whether to enable HSTS, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HstsMaxAge

string

The value of the max-age directive for HSTS, in seconds.

3600

HstsIncludeSubdomains

string

Specifies whether to include subdomains in the HSTS policy, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HstsPreload

string

Specifies whether to enable HSTS preload, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HttpsSniVerify

string

Specifies whether to enable SNI verification, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HttpsNoSniDeny

string

Specifies whether to deny TLS handshakes that lack an SNI, which is disabled by default. Valid values:

  • on: Enabled.

  • off: Disabled.

on

HttpsSniWhitelist

string

The SNI allowlist. Separate multiple values with a space.

abc edf

Contoh

Respons sukses

JSONformat

{
  "RequestId": "A3790430-3A06-535F-A424-0998BD9A6C9F",
  "ConfigId": 352816096987136,
  "ConfigType": "global",
  "SiteVersion": 1,
  "Sequence": 1,
  "RuleEnable": "on",
  "Rule": "(http.host eq \\\"video.example.com\\\")",
  "RuleName": "rule_example",
  "HttpsForce": "on",
  "HttpsForceCode": "301",
  "AltSvc": "on",
  "AltSvcClear": "on",
  "AltSvcPersist": "on",
  "AltSvcMa": "86400",
  "Hsts": "on",
  "HstsMaxAge": "3600",
  "HstsIncludeSubdomains": "on",
  "HstsPreload": "on",
  "HttpsSniVerify": "on",
  "HttpsNoSniDeny": "on",
  "HttpsSniWhitelist": "abc edf"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InternalException Failed to call the service. Try again later or contact technical support.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.