Memperbarui nama domain SaaS. Anda dapat mengubah ID catatan yang terikat, tipe sertifikat, dan pengaturan lainnya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:UpdateCustomHostname |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| HostnameId |
integer |
Yes |
ID nama domain SaaS. Anda dapat memperoleh ID dengan memanggil operasi ListCustomHostnames. |
1234567890123 |
| RecordId |
integer |
No |
ID catatan yang akan diikat. Anda dapat memperoleh ID dengan memanggil operasi ListRecords. |
1234567890123 |
| SslFlag |
string |
No |
Sakelar SSL. Nilai valid:
Valid values:
|
on |
| CertType |
string |
No |
Tipe sertifikat. Parameter ini wajib diisi ketika SslFlag diatur ke on. Nilai valid:
Valid values:
|
cas |
| Certificate |
string |
No |
Konten sertifikat. Parameter ini wajib diisi ketika CertType diatur ke upload. |
-----BEGIN CERTIFICATE----- |
| PrivateKey |
string |
No |
Kunci privat sertifikat. Parameter ini wajib diisi ketika CertType diatur ke upload. |
-----BEGIN PRIVATE KEY----- |
| CasId |
integer |
No |
ID sertifikat SSL Certificates Service. Parameter ini wajib diisi ketika CertType diatur ke cas. |
30000478 |
| CasRegion |
string |
No |
Wilayah sertifikat SSL Certificates Service. Parameter ini wajib diisi ketika CertType diatur ke cas. Nilai valid:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | NoPermission | You do not have permissions to access or operate on the resource.Contact your account administrator to attach the AliyunESAFullAccess policy to the current user. | |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | |
| 400 | Record.ServiceBusy | The record is being configured. Try again later. | |
| 400 | CustomHostname.QueryCasCertFailed | Fail to query CAS certificate details. Please try again later. | |
| 400 | CustomHostname.CheckQuotaFailed | Fail to check quota for custom hostname. Please try again later. | |
| 400 | QuotaExceed.CustomHostname | The number of custom hostnames exceeds the plan quota. Contact the sales team to increase your quota. | |
| 400 | CustomHostname.OfflineForMultiReason | Unable to activate the custom hostname because it is offline due to multiple reasons. | |
| 404 | CustomHostname.NotFound | The custom hostname does not exist. Modify it and try again. | |
| 404 | CustomHostname.ApplyCertFailed | Fail to apply a free cert for custom hostname. Please try again later. | |
| 404 | CustomHostname.SetCertFailed | Fail to deploy a cert for custom hostname. Please try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.