Creates a TensorBoard by using a job or specifying a data source configuration.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| paidlc:CreateTensorboard | create | *All Resources * |
| none |
Request syntax
POST /api/v1/tensorboards HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request body. | |
| WorkspaceId | string | No | The workspace ID. | 123*** |
| JobId | string | No | The job ID. For more information about how to query the job ID, see ListJobs . | dlc-20210126170216-mtl37ge7gkvdz |
| DataSourceId | string | No | The dataset ID. | d-xxxxxxxx |
| DataSourceType | string | No | The dataset type. Valid values:
| OSS |
| Uri | string | No | The dataset URI:
| oss://.oss-cn-shanghai-finance-1.aliyuncs.com/ |
| Options | string | No | The extended fields of the dataset are in the JSON format. MountPath: the path to mount the dataset. | {"mountpath":"/root/data/"} |
| SummaryPath | string | No | The directory of summary. | /root/data/ |
| SummaryRelativePath | string | No | The relative path of summary. | /summary/ |
| DisplayName | string | No | The TensorBoard name | tensorboard |
| SourceType | string | No | The source type. | job |
| SourceId | string | No | The source ID. | dlc-xxxxxx |
| MaxRunningTimeMinutes | long | No | The maximum running duration. Unit: minutes. | 240 |
| DataSources | array | No | The configurations of the data source. | |
| DataSourceItem | No | The information about the data source. | ||
| Cpu | long | No | The number of vCPU cores. | 1 |
| Memory | long | No | The memory size. Unit: GB. | 1000 |
| TensorboardDataSources | array | No | The configurations of datasets mounted with the TensorBoard job. | |
| TensorboardDataSourceSpec | No | The TensorBoard dataset configuration information, which is used to mount multiple datasets. Currently, configuration by dataset (datasource) and configuration by job (dlc) are supported. When this parameter is not empty, the DataSourceId, Uri, and DataSourceType parameters do not take effect. | ||
| TensorboardSpec | TensorboardSpec | No | The pay-as-you-go configuration of TensorBoard, which is used to create TensorBoard jobs that use pay-as-you-go resources. | |
| QuotaId | string | No | The resource quota ID. This parameter is required when you create a TensorBoard job by using a resource quota. This feature is currently limited to whitelisted users. If you need to use this feature, contact us. | quota12345 |
| Priority | string | No | The priority of the job. Default value: 1. Valid values: 1 to 9.
| 1 |
| Accessibility | string | No | The job visibility. Valid values:
| PRIVATE |
Response parameters
Examples
Sample success responses
JSONformat
{
"JobId": "dlc-20210126170216-xxxxxxxx",
"DataSourceId": "ds-20210126170216-xxxxxxxx",
"TensorboardId": "tbxxxxxxxx",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-07-11 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2024-03-28 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
