Mengambil konfigurasi aplikasi HTTPS tunggal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetHttpsApplicationConfiguration |
get |
*Site
|
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 |
| 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 |
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 |
| Rule |
string |
The conditional expression used to match user requests. This parameter is not required for a global configuration. There are two scenarios:
|
(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 |
| HttpsForceCode |
string |
The status code for the force HTTPS redirect. Valid values:
|
301 |
| AltSvc |
string |
Specifies whether to enable the Alt-Svc feature, which is disabled by default. Valid values:
|
on |
| AltSvcClear |
string |
Specifies whether to include the
|
on |
| AltSvcPersist |
string |
Specifies whether to include the
|
on |
| AltSvcMa |
string |
The Alt-Svc max-age, in seconds. Default: |
86400 |
| Hsts |
string |
Specifies whether to enable HSTS, which is disabled by default. Valid values:
|
on |
| HstsMaxAge |
string |
The value of the |
3600 |
| HstsIncludeSubdomains |
string |
Specifies whether to include subdomains in the HSTS policy, which is disabled by default. Valid values:
|
on |
| HstsPreload |
string |
Specifies whether to enable HSTS preload, which is disabled by default. Valid values:
|
on |
| HttpsSniVerify |
string |
Specifies whether to enable SNI verification, which is disabled by default. Valid values:
|
on |
| HttpsNoSniDeny |
string |
Specifies whether to deny TLS handshakes that lack an SNI, which is disabled by default. Valid values:
|
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.