擷取Nacos配置匯入時擷取檔案的上傳地址。
介面說明
當前的 OpenAPI 並非是 Nacos-SDK API,Nacos-SDK API 相關內容,請參見官方文檔。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
mse:GetImportFileUrl |
get |
*Cluster
*EngineNamespace
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ContentType |
string |
否 |
檔案類型。 |
application/zip |
| InstanceId |
string |
是 |
執行個體 ID。 |
mse_prepaid_public_cn-7pp2b**** |
| NamespaceId |
string |
否 |
命名空間 ID。 |
12788f73-9848-4388-98f1-507778f2**** |
| AcceptLanguage |
string |
否 |
返回資訊的語言類型:
|
zh |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 狀態代碼。 |
200 |
| RequestId |
string |
請求 ID。 |
19488A00-4AF5-55E1-A689-98BA9F5E7441 |
| Success |
boolean |
請求結果,取值如下:
|
true |
| ErrorCode |
string |
錯誤碼。 |
mse-100-000 |
| Code |
integer |
響應碼。 |
200 |
| Message |
string |
返回資訊。 |
請求處理成功 |
| DynamicMessage |
string |
動態錯誤資訊,用於替換返回參數 ErrMessage 錯誤資訊中的**%s**。 說明
如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,則代表所傳入的請求參數 DtsJobId 不合法。 |
The specified parameter is invalid. |
| Data |
object |
資料概覽。 |
|
| Url |
string |
檔案上傳地址。 |
http://xxxxxxx |
樣本
正常返回樣本
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "19488A00-4AF5-55E1-A689-98BA9F5E7441",
"Success": true,
"ErrorCode": "mse-100-000",
"Code": 200,
"Message": "請求處理成功",
"DynamicMessage": "The specified parameter is invalid.",
"Data": {
"Url": "http://xxxxxxx"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法請求: %s |
| 400 | InvalidParameter | Parameter error:%s | 請求參數錯誤:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台錯誤.稍後重試:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 沒有許可權使用此介面:%s |
| 404 | NotFound | Not found:%s | 資源不存在:%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。