You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
路径分析
GetAnalysisPathReport - 获取路径分析报告
复制全文
下载 pdf
GetAnalysisPathReport - 获取路径分析报告
调用GetAnalysisPathReport接口,获取路径分析报告。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:GetAnalysisPathReport​
要执行的操作,取值:GetAnalysisPathReport。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
PathReportId string 必选 示例值:par-ak3v00jduk1s3r****​
路径分析报告ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
CreateTime string 示例值:2025-04-18 15:02:37​
创建时间。​
​
PathDetails string 示例值:{ "SourceId":"i-ye8klde7swh9l3bn****", "SourceType":"ECS", "SourceIp":"192.168.1.1", "TargetId":"i-abcdefgh12345678", "TargetType":"ECS", "TargetIP":"10.0.0.1", "TargetPort":3306, "Protocol":"TCP" }​
网络路径的详细信息,包含源和目标的相关信息,如 ID、类型、IP 地址、端口和协议等。​
  • SourceId:源节点资源ID。​
  • SourceType:源节点类型。​
  • SourceIp:源节点IP。​
  • TargetId:目的节点资源ID。​
  • TargetType:目的节点类型。​
  • TargetIP;目的节点IP。​
  • TargetPort:目的节点端口。​
  • Protocol:路径分析协议。​
​
PathId string 示例值:pa-3ogfsspk3cf0g6****​
网络路径ID。​
​
PathReportId string 示例值:par-ak3v00jduk1s3r****​
路径分析报告ID。​
​
Reachability string 示例值:Reachable​
路径可达性分析结果。​
  • Reachable:可达。​
  • Unreachable:不可达。​
  • Unknown:未知。​
​
ReportDetails string 示例值:[ { "Id": "i-ye5jsoketcv****", "ResourceType": "ECS", "Level": "Normal", "AbnormalResults": null, "Data": { "EcsId": "i-ye5jsok****", "EcsName": "i-ye5jsok****", "Region": "cn-beijing", "Status": "RUNNING", "VpcId": "vpc-2ff1***", "VpcName": "vpc-2ff1***", "Zone": "cn-beijing-a" } }, ... { "Id": "i-ye5jswu****", "ResourceType": "ECS", "Level": "Normal", "AbnormalResults": null, "Data": { "EcsId": "i-ye5jswu77****", "EcsName": "i-ye5jswu77****", "Region": "cn-beijing", "Status": "RUNNING", "VpcId": "vpc-2ff1f3fr***", "VpcName": "vpc-2ff1f3fr***", "Zone": "cn-beijing-a" } } ]​
路径分析报告的详细信息,包含路径分析的详细结果和诊断信息。​
  • ID:资源节点ID。​
  • ResourceType:节点资源类型。​
  • Level:节点状态。​
  • AbnormalResults:异常结果。​
  • Data:呈现节点独有的信息。​
​
Status string 示例值:Finish​
路径分析任务的状态。​
  • Init:初始化。​
  • Running:分析中。​
  • Finish:已完成。​
​
​
​
请求示例​
​
GET /?Action=GetAnalysisPathReport&Version=2020-04-01&PathReportId=par-ak3v00jduk1s3r****​
Host: na.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/na/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "GetAnalysisPathReport",​
"Version": "2020-04-01",​
"Service": "na",​
"Region": "cn-beijing"​
},​
"Result": {​
"CreateTime": "2025-04-18 15:02:37",​
"PathDetails": "{\"SourceId\":\"i-ye5jsok****\",\"SourceType\":\"ECS\",\"SourceIp\":\"192.168.0.106\",\"TargetId\":\"i-ye5jswu****\",\"TargetType\":\"ECS\",\"TargetIP\":\"192.168.0.105\",\"TargetPort\":22,\"Protocol\":\"TCP\"}",​
"PathId": "pa-3ogfsspk3cf0g6****",​
"PathReportId": "par-ak3v00jduk1s3r****",​
"Reachability": "Reachable",​
"ReportDetails": "[{\"Id\":\"i-ye5jsok****0\",\"ResourceType\":\"ECS\",\"Level\":\"Normal\",\"AbnormalResults\":null,\"Data\":{\"EcsId\":\"i-ye5jsok****\",\"EcsName\":\"i-ye5jsok****\",\"Region\":\"cn-beijing\",\"Status\":\"RUNNING\",\"VpcId\":\"vpc-2ff1f3f****\",\"VpcName\":\"vpc-2ff1f3f****\",\"Zone\":\"cn-beijing-a\"}},{\"Id\":\"eni-2ff1f7n****1\",\"ResourceType\":\"ENI\",\"Level\":\"Normal\",\"AbnormalResults\":null,\"Data\":{\"EniId\":\"eni-2ff1f7n****\",\"EniName\":\"eni-2ff1f7n****\",\"MAC\":\"00:16:3e:22:e9:d1\",\"PrimaryIPAddress\":\"192.168.0.106\",\"Region\":\"cn-beijing\",\"SecurityGroupMatched\":[{\"CIDR\":\"0.0.0.0/0\",\"Description\":\"****\",\"Direction\":\"egress\",\"Policy\":\"accept\",\"PortRange\":\"ALL\",\"Priority\":100,\"Protocol\":\"all\",\"SecurityGroupId\":\"sg-2ff1f3lo****\",\"SecurityGroupName\":\"\",\"SecurityGroupRuleId\":\"2ff1f3nn****\"}],\"Status\":\"InUse\",\"SubnetId\":\"subnet-12bjoep****\",\"SubnetName\":\"subnet-12bjoep****\",\"VpcId\":\"vpc-2ff1f3f****\",\"VpcName\":\"vpc-2ff1f3f****\",\"Zone\":\"cn-beijing-a\"}},{\"Id\":\"subnet-12bjoep****2\",\"ResourceType\":\"Subnet\",\"Level\":\"Normal\",\"AbnormalResults\":null,\"Data\":{\"IPv4CIDR\":\"192.168.0.0/24\",\"NACLMatched\":null,\"Region\":\"cn-beijing\",\"SubnetId\":\"subnet-12bjoep****\",\"SubnetName\":\"subnet-12bjoep****\",\"VpcId\":\"vpc-2ff1f3f****\",\"VpcName\":\"vpc-2ff1f3f****\",\"Zone\":\"cn-beijing-a\"}},{\"Id\":\"eni-12bjoil****3\",\"ResourceType\":\"ENI\",\"Level\":\"Normal\",\"AbnormalResults\":null,\"Data\":{\"EniId\":\"eni-12bjoil****\",\"EniName\":\"eni-12bjoil****\",\"MAC\":\"00:16:3e:77:79:ba\",\"PrimaryIPAddress\":\"192.168.0.105\",\"Region\":\"cn-beijing\",\"SecurityGroupMatched\":[{\"CIDR\":\"192.168.0.0/24\",\"Description\":\"\",\"Direction\":\"ingress\",\"Policy\":\"accept\",\"PortRange\":\"ALL\",\"Priority\":1,\"Protocol\":\"all\",\"SecurityGroupId\":\"sg-2ff1f3lo****\",\"SecurityGroupName\":\"\",\"SecurityGroupRuleId\":\"2ff1fp74****\"}],\"Status\":\"InUse\",\"SubnetId\":\"subnet-12bjoep****\",\"SubnetName\":\"subnet-12bjoep****\",\"VpcId\":\"vpc-2ff1f3f****\",\"VpcName\":\"vpc-2ff1f3f****\",\"Zone\":\"cn-beijing-a\"}},{\"Id\":\"i-ye5jswu****4\",\"ResourceType\":\"ECS\",\"Level\":\"Normal\",\"AbnormalResults\":null,\"Data\":{\"EcsId\":\"i-ye5jswu****\",\"EcsName\":\"cc-ser-勿删\",\"Region\":\"cn-beijing\",\"Status\":\"RUNNING\",\"VpcId\":\"vpc-2ff1f3f****\",\"VpcName\":\"vpc-2ff1f3f****\",\"Zone\":\"cn-beijing-a\"}}]",​
"Status": "Finish"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
DataUnmarshalFailed​
Data unmarshal failed.​
请求解析失败。​
400​
InvalidAnalysisPathReport.NotFound​
The specified analysis path report is not found.​
指定的路径分析报告未找到。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request, for example, the ''.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 。​
401​
ServiceRoleUnauthorized​
service role is unauthorized​
角色未授权,请先访问控制台操作授权​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.08.11 10:13:35
这个页面对您有帮助吗?
有用
有用
无用
无用