SCG5000 または SCG5000-5G インスタンスに DNS 転送設定を追加します。デバイスバージョンは 3.4.2 以降である必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
smartag:AddSmartAccessGatewayDnsForward |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SagInsId |
string |
必須 |
インスタンスの ID。 |
sag-v9un1ccz22owd76lf8 |
| SagSn |
string |
必須 |
デバイスのシリアル番号 (SN)。 |
sagf4dkqh78 |
| Domain |
string |
必須 |
ドメイン名。 説明
たとえば、*.baidu.com と入力してドメイン名 baidu.com を指定できます。 |
www.aliyun.com |
| MasterIp |
string |
必須 |
プライマリ DNS サーバ。 |
114.114.114.114 |
| SlaveIp |
string |
任意 |
セカンダリ DNS サーバ。 |
172.16.0.14 |
| Mode |
string |
任意 |
転送モード。 説明
|
first |
| OutboundPortType |
string |
任意 |
送信ポートのタイプ。 説明
列挙値:
|
Tunnel |
| OutboundPortIndex |
string |
任意 |
送信ポートの番号。 説明
列挙値:
|
0 |
| OutboundPortName |
string |
任意 |
送信ポート。 説明
列挙値:
|
eth0 |
| RegionId |
string |
必須 |
インスタンスがデプロイされているリージョンの ID。 |
cn-shanghai |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエストの ID |
E93884AC-6C21-4FEA-8E3A-7377D33B194F |
| Success |
boolean |
リクエストが成功したかどうかを示します。 |
true |
| Code |
string |
エラーコード。値が 200 の場合は、呼び出しが成功したことを示します。 |
200 |
| Message |
string |
応答メッセージ。 |
Successful |
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
| Data |
object |
リクエストに対して返される情報。 |
|
| InstanceId |
string |
インスタンスの ID。 |
sagv3dnsforward-nc7qabskj17werc7su |
| Domain |
string |
ドメイン名。 |
yfiy.cn |
| MasterIp |
string |
プライマリ DNS サーバ。 |
14.104.81.13 |
| SlaveIp |
string |
セカンダリ DNS サーバ。 |
172.16.0.14 |
| Mode |
string |
転送モード。 |
first |
| OutboundPortType |
string |
送信ポートのタイプ。 |
PhysicalPort |
| OutboundPortIndex |
integer |
送信ポートの番号。 |
0 |
| OutboundPortName |
string |
送信ポート。 |
eth0 |
例
成功レスポンス
JSONJSON
{
"RequestId": "E93884AC-6C21-4FEA-8E3A-7377D33B194F",
"Success": true,
"Code": "200",
"Message": "Successful",
"HttpStatusCode": 200,
"Data": {
"InstanceId": "sagv3dnsforward-nc7qabskj17werc7su",
"Domain": "yfiy.cn",
"MasterIp": "14.104.81.13",
"SlaveIp": "172.16.0.14",
"Mode": "first",
"OutboundPortType": "PhysicalPort",
"OutboundPortIndex": 0,
"OutboundPortName": "eth0"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidSpec.FeatureNotSupport | The current edition of the cloudbranch does not support this feature. | |
| 400 | GATEWAY.InvalidSN | The specified gateway serial number does not exist. | |
| 400 | CCN.DuplicateDNSForwardingDomain | Duplicate DNS forwarding domain | |
| 400 | ConfigUnsynchronized | The configs of device are unsynchronized,please check whether the device is online | |
| 400 | DeviceNotExist | The specified device does not exist | |
| 400 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | |
| 400 | CCN.DNS.Forward.CreateFailed | failed to create dns forward config | |
| 404 | ResourceNotFound.Device | The specified resource of Device is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。