Querying Virtual Avatar Model Training Tasks
Function
Queries virtual avatar model training tasks.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/{project_id}/digital-human-training-manage/user/jobs
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
offset |
No |
Integer |
Offset where the query starts. Value range: 0~2147483647 Default value: 0 |
|
limit |
No |
Integer |
Number of items displayed on each page. Value range: 1~100 Default value: 10 |
|
state |
No |
String |
Task status, defaulting to all statuses. Multiple statuses can be queried, separated by English commas. For example: state=CREATING,PUBLISHED. |
|
sort_key |
No |
String |
Sorting field. Options: |
|
sort_dir |
No |
String |
Sorting mode. asc is used by default. |
|
create_until |
No |
String |
Filter the records whose creation time is not later than the entered time. |
|
create_since |
No |
String |
Filter the records whose creation time is not earlier than the entered time. |
|
query_project_id |
No |
String |
Queries the tenant ID. |
|
update_since |
No |
String |
Records whose update time is not earlier than the input time. |
|
update_until |
No |
String |
Records whose update time is not earlier than the input time. |
|
batch_name |
No |
String |
Task batch name. |
|
tag |
No |
String |
Task tag. |
|
job_id |
No |
String |
Task ID. |
|
name |
No |
String |
Virtual avatar model name. |
|
model_resolution |
No |
String |
Model resolution |
|
is_flexus |
No |
Boolean |
Whether the task is a Flexus task. |
|
is_live_copy |
No |
Boolean |
Whether it is a task for training a livestream-based avatar. |
|
train_location |
No |
String |
Training region. |
|
is_ondemand_resource |
No |
Boolean |
Whether it is a test version. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain the token by calling the IAM API used to obtain a user token. Value of X-Subject-Token in the response header. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Time when the request is sent. This parameter is mandatory for AK/SK authentication. The format is YYYYMMDD'T'HHMMSS'Z'. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
|
X-App-UserId |
No |
String |
Third-party user ID, which does not allow Chinese characters. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Request ID. |
|
Parameter |
Type |
Description |
|---|---|---|
|
count |
Integer |
Number of virtual avatar model training tasks. Value range: 0~2147483647 |
|
jobs |
Array of TrainingJobBasicInfo objects |
Virtual avatar model training tasks. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
https://example.com/rest/v1/***/digital-human-training-manage/user/jobs?query_project_id=***&offset=0&limit=10
Example Responses
Status code: 200
The information is returned when the request succeeded.
{
"count" : 101,
"jobs" : [ {
"job_id" : "646682facddb4912976f19a4d61c6a91",
"name" : "Name 1",
"state" : "TRAINING",
"project_id" : "***",
"cover_download_url" : "https://example.com/646682facddb4912976f19a4d61c6a91_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-09T07:38:09Z",
"create_time" : "2023-12-08T08:30:56Z",
"contact" : "1**********",
"tags" : [ ],
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "efc5300ecdba4ea48d1ff13a9d907bc0",
"name" : "Name 2",
"state" : "MANUAL_VERIFYING",
"project_id" : "***",
"cover_download_url" : "https://example.com/efc5300ecdba4ea48d1ff13a9d907bc0_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-09T07:32:46Z",
"create_time" : "2023-12-09T07:31:37Z",
"contact" : "1**********",
"model_version" : "V3",
"matting_type" : "AI"
}, {
"job_id" : "7889dfd55bf14834a35e78c7f0aa0516",
"name" : "Name 3",
"state" : "INFERENCE_DATA_PREPROCESS_FAILED",
"project_id" : "***",
"cover_download_url" : "https://example.com/7889dfd55bf14834a35e78c7f0aa0516_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-09T07:09:02Z",
"create_time" : "2023-12-08T08:34:12Z",
"contact" : "1**********",
"tags" : [ ],
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "222509ed63c2498599f519d5ec7ef462",
"name" : "Name 4",
"state" : "TRAINING_DATA_PREPROCESS_SUCCESS",
"project_id" : "***",
"cover_download_url" : "https://example.com/222509ed63c2498599f519d5ec7ef462_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-09T07:08:21Z",
"create_time" : "2023-12-08T08:33:24Z",
"contact" : "1**********",
"tags" : [ ],
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "dd4a596edc2c44dd881b5e9eff485e21",
"name" : "Name 5",
"state" : "TRAINING_DATA_PREPROCESS_SUCCESS",
"project_id" : "***",
"cover_download_url" : "https://example.com/dd4a596edc2c44dd881b5e9eff485e21_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-09T02:12:01Z",
"create_time" : "2023-12-08T08:29:25Z",
"contact" : "1**********",
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "bf46c9f335b14e84bd028f6acb52686b",
"name" : "Name 6",
"state" : "JOB_FINISH",
"asset_id" : "3174263c6199e0a10d83a257b272ac71",
"project_id" : "***",
"cover_download_url" : "https://example.com/bf46c9f335b14e84bd028f6acb52686b_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-08T08:37:39Z",
"create_time" : "2023-11-29T09:39:25Z",
"contact" : "1**********",
"model_version" : "V3",
"matting_type" : "AI"
}, {
"job_id" : "2f96ddd4fdda40af977c1b1d3b6adca8",
"name" : "Name 7",
"state" : "INFERENCE_DATA_PREPROCESS_FAILED",
"asset_id" : "22741ee4bc4130282835bdc2a4b4ac79",
"project_id" : "***",
"cover_download_url" : "https://example.com/2f96ddd4fdda40af977c1b1d3b6adca8_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-08T07:26:53Z",
"create_time" : "2023-10-19T01:13:24Z",
"contact" : "15312090046",
"batch_name" : "234",
"model_version" : "V3",
"matting_type" : "AI"
}, {
"job_id" : "e477dcf363234b2f8aa2aad4d8bad46b",
"name" : "Name 8",
"state" : "INFERENCE_DATA_PREPROCESS_FAILED",
"asset_id" : "d36e8df774ae88315911724d4467cb6d",
"project_id" : "***",
"cover_download_url" : "https://example.com/e477dcf363234b2f8aa2aad4d8bad46b_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-08T01:58:52Z",
"create_time" : "2023-11-27T06:39:46Z",
"contact" : "1**********",
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "d8ca20175d5b4ae6b0056c62e4553d36",
"name" : "Name 9",
"state" : "INFERENCE_DATA_PREPROCESS_FAILED",
"asset_id" : "5ff8e2893ffa8ef848050260eb08faa9",
"project_id" : "***",
"cover_download_url" : "https://example.com/d8ca20175d5b4ae6b0056c62e4553d36_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-04T05:39:24Z",
"create_time" : "2023-11-06T13:51:09Z",
"contact" : "1**********",
"model_version" : "V3.2",
"matting_type" : "AI"
}, {
"job_id" : "65e9fb9ac78546268e7d60d5003bfbdc",
"name" : "Name 10",
"state" : "INFERENCE_DATA_PREPROCESS_FAILED",
"asset_id" : "71a0df4bd5966a33818af2b5094cf197",
"project_id" : "***",
"cover_download_url" : "https://example.com/65e9fb9ac78546268e7d60d5003bfbdc_cover?param1=XXX¶m2=YYY",
"last_update_time" : "2023-12-01T07:58:26Z",
"create_time" : "2023-11-29T11:19:22Z",
"contact" : "1**********",
"model_version" : "V3",
"matting_type" : "AI"
} ]
}
Status code: 400
Parameters error, including the error code and its description.
{
"error_code" : "MSS.00000003",
"error_msg" : "Invalid parameter"
}
Status code: 500
Internal service error.
{
"error_code" : "MSS.00000004",
"error_msg" : "Internal Error"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The information is returned when the request succeeded. |
|
400 |
Parameters error, including the error code and its description. |
|
500 |
Internal service error. |
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