该接口用于获取边缘容器应用终端信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AppId |
string |
否 |
应用 ID,可使用 ListEdgeContainerApps 接口获取应用 ID。 重要 本参数为必填,未传入时 API 返回 InvalidParameter.appid(400)。
完整依赖链:CreateEdgeContainerApp → CreateEdgeContainerAppVersion → PublishEdgeContainerAppVersion → 等待容器状态 Running → 调用本 API。 |
app-88068867578379**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
9732E117-8A37-49FD-A36F-ABBB87556CA7 |
| Pod |
string |
容器组名称。 |
1775b9e0-8463-457e-89e8-fb7b6d125b2e |
| Cluster |
string |
集群名称。 |
c497b44c2a59f4ae0bd2826edc40a2c6e |
| Namespace |
string |
Namespace 名称。 |
ns1 |
| Container |
string |
容器名称。 |
worker0 |
| SessionId |
string |
会话 ID。 |
af22f4xxxxxxxxxxxxxxxxxx |
| Token |
string |
分享令牌信息。 |
af22f4-xxxxx-xxxx-xxxx-xxxx |
示例
正常返回示例
JSON格式
{
"RequestId": "9732E117-8A37-49FD-A36F-ABBB87556CA7",
"Pod": "1775b9e0-8463-457e-89e8-fb7b6d125b2e",
"Cluster": "c497b44c2a59f4ae0bd2826edc40a2c6e",
"Namespace": "ns1",
"Container": "worker0",
"SessionId": "af22f4xxxxxxxxxxxxxxxxxx",
"Token": "af22f4-xxxxx-xxxx-xxxx-xxxx"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | 传入的应用ID格式不正确,可使用ListEdgeContainerApps接口获取应用ID。 |
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | 您传入的应用ID对应的应用不存在,请检查后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。