You need to enable JavaScript to run this app.
文档中心
存储迁移服务

存储迁移服务

复制全文
下载 pdf
代理
GetAgent - 获取代理
复制全文
下载 pdf
GetAgent - 获取代理
调用 GetAgent 获取代理信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:GetAgent​
要执行的操作,取值:GetAgent。​
​
Version string 必选 示例值:2025-01-01​
API的版本,取值:2025-01-01。​
​
Id string 必选 示例值:1*​
代理 ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
Id string 示例值:1*​
代理 ID。​
​
AccountId string 示例值:210000****​
账号 ID。​
​
Alias string 示例值:aaa​
代理别名。​
​
AgentGroupId string 示例值:1*​
代理组 ID。​
​
RunningMode string 示例值:Process​
运行模式, 取值为:​
Process:独立进程。​
​
NetworkType string 示例值:Vpc​
网络类型,取值说明如下:​
  • Public:公网​
  • Vpc:私有网络​
​
Status boolean 示例值:true​
代理是否正常运行,取值说明如下:​
  • true:代理成功运行​
  • false:代理未运行​
​
CreateAt string 示例值:1764748140000​
创建时间,使用毫秒时间戳。​
​
UpdateAt string 示例值:1764748140000​
更新时间,使用毫秒时间戳。​
​
​
​
请求示例​
​
POST /?Action=GetAgent&Version=2025-01-01&Id=1* HTTP/1.1​
Host: dms.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20251203T084356Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251203/cn-beijing/dms/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20251009162602101144043165ADDFF7",​
"Action": "GetAgent",​
"Version": "2025-01-01",​
"Service": "dms",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "1*",​
"AccountId": "210000****",​
"Alias": "aaa",​
"AgentGroupId": "1*",​
"RunningMode": "Process",​
"NetworkType": "Vpc",​
"Status": true,​
"CreateAt": "1764748140000",​
"UpdateAt": "1764748140000"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
2002-00000012​
InvalidRequestBody​
参数错误。​
404​
2002-00000014​
EntityNotFoundErr​
对应实体不存在。​
500​
2001-00000001​
ServiceInternalErr​
服务端异常,请稍后重试。​
​
​
最近更新时间:2026.01.09 10:14:35
这个页面对您有帮助吗?
有用
有用
无用
无用