首页 机器学习PAI API参考 PAI-DLC API API目录 Tensorboard ListTensorboards - 查询Tensorboard列表

ListTensorboards - 查询Tensorboard列表

查询已创建的Tensorboard列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Verboseboolean

是否显示详情。取值如下:

  • true:显示详情。
  • false:不显示详情。
true
WorkspaceIdstring

工作空间ID。根据工作空间ID来获取Tensorboard列表。如何获取工作空间ID,请参见ListWorkspaces

380
SourceTypestring

数据来源。目前仅支持DLC训练任务,即job。

job
SourceIdstring

数据来源ID。如何获取任务ID,请参见ListJobs

dlc-xxxxxx
DisplayNamestring

Tensorboard展示名称。

TestTensorboard
Statusstring

Tensorboard状态,取值如下:

  • Creating:创建中。
  • Running:运行中。
  • Stopped:已停止。
  • Succeeded:已成功。
  • Failed:已失败。
Running
StartTimestring

查询区间的起始时间。使用Tensorboard的创建UTC时间来过滤。

2020-11-08T16:00:00Z
EndTimestring

查询区间的截止时间。使用Tensorboard的创建UTC时间来过滤。

2020-11-09T14:45:00Z
SortBystring

按返回的以下字段排序。

  • DisplayName:任务名称。
  • GmtCreateTime:任务创建时间。
GmtCreateTime
PageNumberinteger

分页查询,指定当前需要返回的页码,起始值为1。

1
PageSizeinteger

分页查询中,指定每页返回的Tensorboard数量。

50
Orderstring

排序顺序。取值如下:

  • desc:降序。
  • asc:升序。
desc
JobIdstring

根据DLC任务ID来过滤Tensorboard任务。如何获取任务ID,请参见ListJobs

dlc-xxx
TensorboardIdstring

根据Tensorboard ID,来过滤Tensorboard列表。

tensorboard-xxx

返回参数

名称类型描述示例值
object
Tensorboardsarray

Tensorboard列表。

Tensorboard

Tensorboard详情。

TotalCountlong

符合条件的数据源总数量。

100
RequestIdstring

请求ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "Tensorboards": [
    {
      "TensorboardId": "tensorboard-xxx",
      "TensorboardUrl": "http://xxxxxx",
      "Status": "running",
      "Duration": "1234567",
      "GmtCreateTime": "2021-01-12T14:35:00Z",
      "GmtModifyTime": "2021-01-12T14:36:00Z",
      "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
      "DisplayName": "test",
      "DataSourceId": "datasource-test",
      "SummaryPath": "/root/data",
      "UserId": "lycxxxxx",
      "ReasonCode": "Delete by user",
      "ReasonMessage": "Tensorboard is deleted",
      "JobId": "dlc-20210114104214-vf9lowjt3pso"
    }
  ],
  "TotalCount": 100,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

错误码

访问错误中心查看更多错误码。

阿里云首页 机器学习PAI 相关技术圈