Queries a list of created Tensorboard instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidlc:ListTensorboards |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tensorboards HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to show details. Valid values:
|
true |
| WorkspaceId |
string |
No |
The workspace ID. The Tensorboard list is retrieved based on the workspace ID. |
380 |
| SourceType |
string |
No |
The data source type. Currently, only DLC training jobs are supported, which means the value is job. |
job |
| SourceId |
string |
No |
The data source ID. See ListJobs to obtain the job ID. |
dlc-xxxxxx |
| DisplayName |
string |
No |
The display name of the Tensorboard instance. |
TestTensorboard |
| Status |
string |
No |
The Tensorboard status. Valid values:
|
Running |
| StartTime |
string |
No |
The start time of the query range. The creation time of the Tensorboard instance in UTC is used for filtering. If this parameter is left empty, the default value is 7 days before the current time. |
2020-11-08T16:00:00Z |
| EndTime |
string |
No |
The end time of the query range. The creation time of the Tensorboard instance in UTC is used for filtering. If this parameter is left empty, the default value is the current time. |
2020-11-09T14:45:00Z |
| SortBy |
string |
No |
Sorts the results by the following fields. Valid values:
|
GmtCreateTime |
| PageNumber |
integer |
No |
The page number of the page to return in a paged query. The value starts from 1. |
1 |
| PageSize |
integer |
No |
The number of Tensorboard instances to return per page in a paged query. |
50 |
| Order |
string |
No |
The sort order. Valid values:
|
desc |
| JobId |
string |
No |
Filters Tensorboard instances by DLC job ID. See ListJobs to obtain the job ID. |
dlc-xxx |
| TensorboardId |
string |
No |
Filters the Tensorboard list by Tensorboard ID. |
tensorboard-xxx |
| ShowOwn |
boolean |
No |
Specifies whether to return only Tensorboard instances created by the current user. |
false |
| PaymentType |
string |
No |
The billing type of the Tensorboard instance. Valid values:
|
Postpaid |
| UserId |
string |
No |
The user ID. |
161****3000 |
| Username |
string |
No |
The username. |
she****mo |
| QuotaId |
string |
No |
The resource quota ID. Note
|
quota12*** |
| Accessibility |
string |
No |
The visibility of the job. Valid values:
|
PRIVATE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Tensorboards |
array |
The list and details of Tensorboard instances. |
|
| Tensorboard |
The Tensorboard details. |
||
| TotalCount |
integer |
The total number of data sources that match the specified conditions. |
100 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Tensorboards": [
{
"TensorboardId": "tensorboard-xxx",
"TensorboardUrl": "http://xxxxxx",
"Status": "running",
"Duration": "60",
"GmtCreateTime": "2021-01-12T14:35:00Z",
"GmtModifyTime": "2021-01-12T14:36:00Z",
"GmtFinishTime": "null",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"DisplayName": "test",
"DataSourceId": "datasource-test",
"SummaryPath": "/root/data",
"UserId": "lycxxxxx",
"Username": "tensorboard.pai",
"ReasonCode": "\"\"",
"ReasonMessage": "\"\"",
"JobId": "dlc-20210114104214-vf9lowjt3pso",
"TensorboardDataSources": [
{
"DirectoryName": "dlcJobName",
"Name": "dlcJobName",
"Id": "d-vf2fdhxxxxxx",
"DataSourceType": "OSS",
"Uri": "oss://.oss-cn-shanghai-finance-1.aliyuncs.com/",
"SourceType": "datasource",
"SummaryPath": "/tensorboard/run1",
"FullSummaryPath": "oss://xxxxx/tensorboard/run1"
}
],
"TensorboardSpec": {
"VpcId": "vpc-xxxx",
"EcsType": "ecs.g6.large",
"SecurityGroupId": "sg-xxxxx",
"SwitchId": "vsw-xxxx"
},
"QuotaId": "quota12***",
"Priority": "1",
"QuotaName": "dlc-quota",
"Accessibility": "PRIVATE"
}
],
"TotalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.