Bir Smart Access Gateway (SAG) örneğinin kullandığı DNS sunucularını değiştirir.
Hata Ayıklama
İstek parametreleri
| Parametre | Tür | Gerekli | Örnek | Açıklama |
| Action | String | Yes | ModifySagUserDns | Gerçekleştirmek istediğiniz işlem. Değeri ModifySagUserDns olarak ayarlayın. |
| RegionId | String | Yes | cn-shanghai | SAG örneğinin dağıtıldığı bölgenin kimliği. |
| SmartAGId | String | Yes | sag-whfn**** | SAG örneğinin kimliği. |
| SmartAGSn | String | Yes | sag32a30**** | SAG örneğiyle ilişkili SAG cihazının seri numarası. |
| MasterDns | String | Yes | 192.XX.XX.1 | Birincil DNS sunucusunun IP adresi. Not Bu parametreyi ayarlamazsanız mevcut DNS sunucusunun IP adresi temizlenir. |
| SlaveDns | String | Yes | 192.XX.XX.2 | İkincil DNS sunucusunun IP adresi. Not Bu parametreyi ayarlamazsanız mevcut DNS sunucusunun IP adresi temizlenir. |
Yanıt parametreleri
|
Parametre |
Tür |
Örnek |
Açıklama |
|
RequestId |
String |
1120228A-E5E1-4E9C-B56D-96887E1A2B2F |
İsteğin kimliği. |
Örnekler
Örnek istekler
http(s)://smartag.cn-shanghai.aliyuncs.com/?Action=ModifySagUserDns
&MasterDns=192.XX.XX.1
&RegionId=cn-shanghai
&SlaveDns=192.XX.XX.2
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&<Common request parameters>
Başarılı yanıt örnekleri
XML biçimi
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifySagUserDnsResponse>
<RequestId>1120228A-E5E1-4E9C-B56D-96887E1A2B2F</RequestId>
</ModifySagUserDnsResponse>
JSON biçimi
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1120228A-E5E1-4E9C-B56D-96887E1A2B2F"
}
Hata kodları
|
HttpCode |
Hata kodu |
Hata mesajı |
Açıklama |
|
400 |
SAG.InstanceNoFound |
The specified SAG instance does not exist. |
Belirtilen SAG örneği mevcut olmadığından dönen hata mesajı. |
|
400 |
SAG.SoftwareNotSupport |
The specified SAG software edition instance does not support ACL. |
SAG uygulama örneği erişim kontrol listelerini (ACL'ler) desteklemediğinden dönen hata mesajı. |
|
400 |
InstanceNotExit |
The specified instance does not exist. |
Belirtilen örnek mevcut olmadığından dönen hata mesajı. |
|
400 |
ConfigUnsynchronized |
The network configuration is not synchronized. |
Ağ yapılandırmaları senkronize edilmediğinden dönen hata mesajı. |
|
403 |
SmartAccessGatewayNotOnline |
The specified smart access gateway is not online. |
Belirtilen SAG cihazı Alibaba Cloud'a bağlı olmadığından ve sistem isteği işleyemediğinden dönen hata mesajı. |
|
403 |
FeatureNotSupport |
The current edition of the smart access gateway does not support this feature. |
Belirtilen SAG cihazının mevcut sürümü bu özelliği desteklemediğinden dönen hata mesajı. |
|
403 |
FeatureNotSupportForActiveSmartAG |
The current edition of the active smart access gateway does not support this feature. |
Aktif SAG cihazının mevcut sürümü bu özelliği desteklemediğinden dönen hata mesajı. |
|
403 |
FeatureNotSupportForStandBySmartAG |
The current edition of the standby smart access gateway does not support this feature. |
Yedek SAG cihazının mevcut sürümü bu özelliği desteklemediğinden dönen hata mesajı. |
|
500 |
SmartAccessGatewayInArrears |
The specified Smart Access Gateway has expired. |
Belirtilen SAG örneğinin süresi dolduğundan dönen hata mesajı. SAG örneğini yenileyin. |
|
500 |
SmartAccessGatewayNotActivated |
The specified Smart Access Gateway has not been activated. |
Belirtilen SAG örneği etkinleştirilmediğinden dönen hata mesajı. Önce SAG örneğini etkinleştirin. |
|
500 |
SmartAccessGatewayOffline |
The request cannot be completed. The Smart Access Gateway is offline. |
Belirtilen SAG cihazı Alibaba Cloud'a bağlı olmadığından ve sistem isteği işleyemediğinden dönen hata mesajı. |
Hata kodlarının listesi için Hata Merkezi adresini ziyaret edin.