Obtaining Training Experiment Details
Function
This API is used to query the details about a training experiment.
This API is used when you need to view the details about a training experiment, such as the experiment name, description, and creation time. Before using this API, ensure that the training experiment exists and you have the permission to view experiments. After the query, the details about the training experiment are returned, including the experiment ID, name, description, and creation time. If the training experiment does not exist or you do not have the required permission, the API will return an error message.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v2/{project_id}/training-experiments/{experiment_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
| experiment_id | Yes | String | Definition: Experiment ID. The ID is automatically generated and returned when a training experiment is created. Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| metadata | Definition: Training experiment data. | |
| statistic | TrainingExperimentStatistic object | Definition: Statistics of the training experiment. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition: Experiment name. Range: N/A |
| description | String | Definition: Description. Range: N/A |
| workspace_id | String | Definition: Workspace ID. Range: N/A |
| create_time | Long | Definition: Creation time. Range: N/A |
| update_time | Long | Definition: Update time. Range: N/A |
| id | String | Definition: Experiment ID. Range: N/A |
Example Requests
GET https://endpoint/v2/{project_id}/training-experiments/653fce34-55b6-41db-99d4-1bdd9decd46b Example Responses
Status code: 200
OK
{
"metadata" : {
"id" : "653fce34-55b6-41db-99d4-1bdd9decd46b",
"name" : "zhangkaili-test",
"description" : "123-20250908194431",
"create_time" : 1757324482712,
"workspace_id" : "0",
"update_time" : 1757925870000
},
"statistic" : {
"job_count" : 8
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot