Mengambil nama domain yang dipercepat berdasarkan sertifikat SSL.
Deskripsi operasi
Anda dapat memanggil operasi ini hingga 100 kali per detik per akun.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeCdnDomainByCertificate |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SSLPub |
string |
Yes |
Kunci publik dari sertifikat SSL. Anda harus melakukan encode kunci publik dalam format Base64, lalu memanggil fungsi encodeURIComponent untuk mengencode kembali kunci publik tersebut. Kunci publik harus dalam format PEM. |
****** |
| SSLStatus |
boolean |
No |
Menentukan apakah daftar nama domain yang dikembalikan hanya berisi nama domain dengan HTTPS diaktifkan atau dinonaktifkan.
|
true |
| Exact |
boolean |
No |
Menentukan apakah daftar nama domain yang dikembalikan sesuai dengan sertifikat SSL.
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
ASAF2FDS-12SADSA-DDSAE3D-DSADCD4C-CDADS2D |
| CertInfos |
object |
||
| CertInfo |
array<object> |
Informasi mengenai sertifikat. |
|
|
object |
|||
| CertStartTime |
string |
Waktu saat sertifikat mulai berlaku. |
Nov 29 23:59:59 2017 GMT |
| CertExpireTime |
string |
Waktu kedaluwarsa sertifikat. |
Nov 29 00:00:00 2016 GMT |
| CertCaIsLegacy |
string |
Menunjukkan apakah sertifikat SSL sudah usang. Nilai yang valid:
|
yes |
| CertSubjectCommonName |
string |
Nama pemilik sertifikat SSL. |
owner |
| CertType |
string |
Jenis sertifikat. Nilai yang valid: RSA, DSA, dan ECDSA. |
RSA |
| DomainNames |
string |
Nama domain (bidang DNS) yang sesuai dengan sertifikat SSL. Beberapa nama domain dipisahkan dengan koma (,). |
*.example.com,aliyundoc.com |
| CertExpired |
string |
Menunjukkan apakah sertifikat SSL telah kedaluwarsa. Nilai yang valid:
|
yes |
| Issuer |
string |
Otoritas Sertifikat (CA) yang menerbitkan sertifikat tersebut. |
C=US, O=Symantec Corporation, OU=Symantec Trust Network, OU=Domain Validated SSL, CN=Symantec Basic DV SSL CA - G1 |
| DomainList |
string |
Jika nilai dikembalikan, nilai tersebut sesuai dengan sertifikat SSL. Beberapa nama domain dipisahkan dengan koma (,). |
example.com,aliyundoc.com |
Contoh
Respons sukses
JSONformat
{
"RequestId": "ASAF2FDS-12SADSA-DDSAE3D-DSADCD4C-CDADS2D",
"CertInfos": {
"CertInfo": [
{
"CertStartTime": "Nov 29 23:59:59 2017 GMT",
"CertExpireTime": "Nov 29 00:00:00 2016 GMT",
"CertCaIsLegacy": "yes",
"CertSubjectCommonName": "owner",
"CertType": "RSA",
"DomainNames": "*.example.com,aliyundoc.com",
"CertExpired": "yes",
"Issuer": "C=US, O=Symantec Corporation, OU=Symantec Trust Network, OU=Domain Validated SSL, CN=Symantec Basic DV SSL CA - G1",
"DomainList": "example.com,aliyundoc.com"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Certificate.FormatError | The format of the certificate is invalid. | The specified certificate is invalid. |
| 400 | SSLPub.MissingParameter | The Cert parameter is required. | |
| 400 | Decode.Error | Error decoding the SSLPub certificate. | |
| 400 | Certificate.DecodeError | An error occurred while decoding the certificate. | |
| 500 | InternalError | The request processing has failed due to backend service exception. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.