You need to enable JavaScript to run this app.
文档中心
云手机

云手机

复制全文
下载 pdf
【旧版】端口映射管理
【旧版】查询端口映射详情 DetailPortMappingRule
复制全文
下载 pdf
【旧版】查询端口映射详情 DetailPortMappingRule

查询指定端口映射规则的详细信息。

请求说明

  • 请求方式:GET
  • 请求地址:https://open.volcengineapi.com?Action=DetailPortMappingRule&Version=2023-10-30

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

Query

参数

类型

是否必选

示例值

描述

Action

String

是

DetailPortMappingRule

接口名称。当前 API 的名称为 DetailPortMappingRule。

Version

String

是

2023-10-30

接口版本。当前 API 的版本为 2023-10-30。

ProductId

String

是

1591495366954xxxxxx

云手机业务 ID,可在「云手机控制台-业务管理-业务详情」中获取。

PortMappingRuleId

String

是

rule01

端口映射规则 ID,可通过调用 ListPortMappingRule接口获取。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数

类型

示例值

描述

ProductId

String

16084569356xxxxxxxx

业务 ID。

PortMappingRuleId

String

rule01

端口映射规则 ID。

Protocol

String

tcp

端口映射的协议类型。

SourcePort

Integer

6567

源端口号。

TotalPods

Integer

2

已绑定实例数。

Isp

Integer

1

运营商。取值如下:

  • 1:移动
  • 2:联通
  • 4:电信
  • 7:三条运营商线路各开一个
  • 8:BGP

Direction

String

Inbound

方向类型。取值如下:

  • Inbound:入向
  • Bidirectional:双向

CreateAt

Long

1700102499

创建时间。

UpdateTime

Long

1700102499

更新时间。

VolcRegion

String

inner

资源所在的物理区域,包含以下取值:

  • inner:中国大陆
  • cn-hongkong-pop:中国香港

请求示例

GET https://open.volcengineapi.com?Action=DetailPortMappingRule&Version=2023-10-30&ProductId=1724308507550xxxxxx&PortMappingRuleId=rule01

返回示例

{
    "ResponseMetadata": {
        "Action": "DetailPortMappingRule",
        "Region": "cn-north-1",
        "Service": "ACEP",
        "Version": "2023-10-30",
        "RequestId": "20230604110420****100232280022D31"
    },
    "Result": {
        "ProductId": "16084569356xxxxxxxx",
        "PortMappingRuleId": "rule01",
        "Protocol": "tcp",
        "SourcePort": 6567,
        "TotalPods": 2,
        "Isp": 1,
        "VolcRegion": "inner",
        "Direction": "Inbound",
        "CreateAt": 1700102499,
        "UpdateTime": 1700102499
    }
}

错误码

您可访问公共错误码,获取更多错误码信息。

最近更新时间:2026.01.30 15:47:23
这个页面对您有帮助吗?
有用
有用
无用
无用