修改DNS授權規則。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
IoTCloudConnectorId | string | 是 | 云連接器實例 ID。 | iotcc-1y6h8z7imd2yu4**** |
DNSServiceRuleId | string | 是 | DNS 授權規則 ID。 | ar-r56ijpurlu50gi**** |
ServiceType | string | 否 | DNS 授權規則的目標類型。取值:
| Normal |
Destination | string | 否 | 重定向后的 DNS 服務地址。 說明
當 ServiceType 參數取值為 DNSRedirect 時,該參數必選。
| 192.168.0.2 |
Source | string | 否 | 源 DNS IP 地址。包括但不限于以下取值: 100.100.2.136,100.100.2.137,100.100.2.138,114.114.114.114,8.8.8.8,8.8.4.4,223.5.5.5,223.6.6.6,221.5.88.88,116.116.116.116,221.228.15.26,61.139.2.69,218.6.200.139,119.29.29.29,218.2.2.2,208.67.220.220,208.67.222.222,218.4.4.4。 除以上默認的 DNS 授權規則的 IP,如有其他 DNS 授權規則的 IP 訴求,請提交工單,并在工單中附上需要申請的 DNS 授權規則的 IP。 | 100.100.2.138 |
DNSServiceRuleName | string | 否 | DNS 授權規則名稱。 長度為 2~128 個英文或中文字符,開頭必須為大小寫英文字母或中文,可包含數字、半角句號(.)、下劃線(_)和短劃線(-)。 | test |
DNSServiceRuleDescription | string | 否 | DNS 授權規則描述。 長度為 2~256 個字符,開頭必須為大小寫英文字母或中文,但不能為 | description |
ClientToken | string | 否 | 客戶端 Token,用于保證請求的冪等性。 從您的客戶端生成一個參數值,確保不同請求間該參數值唯一。ClientToken 只支持 ASCII 字符。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 可能不一樣。
| 123e4567-e89b-12d3-a456-426655440000 |
DryRun | boolean | 否 | 是否只預檢此次請求。取值:
| false |
RegionId | string | 是 | DNS 授權規則所在的地域 ID。 您可以通過調用 ListRegions 接口獲取地域 ID。 | cn-hangzhou |
返回參數
示例
正常返回示例
JSON
格式
{
"RequestId": "BC6D1C1D-6DBD-568C-B867-BC9CA699ED01"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | Forbidden.RAM | Ram user does not have permission to perform this operation. | RAM用戶無權限執行此操作。 |
400 | OperationDenied.NoParamModify | The operation is not allowed because of no param modified. | - |
400 | ResourceNotFound.IoTCloudConnector | The param of IoTCloudConnectorId is illegal. | IoTCloudConnectorId參數非法 |
400 | QuotaExceeded.sourceCidrLimit | The quota of SourceCidrsPerAuthorizationRule is exceeded | SourceCidrsPerAuthorizationRule quota超出 |
400 | QuotaExceeded.authorizationRuleInstanceLimit | The quota of AuthorizationRulePerIotCC is exceeded | - |
400 | IllegalParamFormat | The param is illegal. | - |
400 | IllegalParam | The param is illegal. | 參數非法 |
400 | ResourceInConfiguring.IoTCloudConnector | The specified resource of IoTCloudConnector is configuring, please try again later. | iotcc狀態非穩態,或者鎖沖突 |
400 | ResourceNotFound.AuthorizationRule | The param of AuthorizationRuleId is illegal. | AuthorizationRuleId非法 |
400 | IllegalParam.Destination | The param of Destination is illegal. | Destination無效 |
400 | OperationDenied.CC5GInstanceNotSupport | The operation is not allowed because of CC5G instance not support. | CC5G托管實例不支持此操作。 |
訪問錯誤中心查看更多錯誤碼。