查询指定端口映射规则的详细信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| 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 |
| 运营商。取值如下:
|
Direction | String |
| 方向类型。取值如下:
|
| CreateAt | Long | 1700102499 | 创建时间。 |
| UpdateTime | Long | 1700102499 | 更新时间。 |
VolcRegion | String |
| 资源所在的物理区域,包含以下取值:
|
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 } }