取得探針下載位址。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
arms:GetAgentDownloadUrl |
none |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AgentType |
string |
是 |
需要取得的 Agent 類型。
|
JavaAgent |
| OsType |
string |
否 |
表示 Agent 工作環境的作業系統類型。
|
linux |
| ArchType |
string |
否 |
表示 Agent 工作環境的架構類型。
|
amd64 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
78901766-3806-4E96-8E47-CFEF59E4**** |
| Data |
object |
Agent 的版本號及下載 Url。 |
|
| Version |
string |
Agent 的版本號。 |
3.2.9 |
| Url |
string |
Agent 的下載 Url。 |
http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/3.2.9/ArmsAgent.zip |
| Message |
string |
返回資訊。 |
探針類型錯誤 |
| Code |
integer |
介面狀態碼。
|
200 |
| Success |
boolean |
查詢是否成功。
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "78901766-3806-4E96-8E47-CFEF59E4****",
"Data": {
"Version": "3.2.9",
"Url": "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/3.2.9/ArmsAgent.zip"
},
"Message": "探針類型錯誤",
"Code": 200,
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ParameterMissing | You must specify the parameter. | 必填參數缺少。 |
| 400 | ParameterIllegal | The specified parameter is invalid. | 參數無效。 |
| 500 | InternalError | Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries. | 內部錯誤,建議重試。如果多次重試發生錯誤,請聯絡 DingTalk 服務帳號。 |
| 404 | AppNotExist | The application does not exist. | 應用程式不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。