Obtaining User Image Groups¶
Function¶
Obtain the overview of user image information. The image name is used as the aggregated information.
Constraints¶
None
Debugging¶
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
URI¶
GET /v1/{project_id}/images/group
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID. For details, see Obtaining a Project ID and Name. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
limit | No | Integer | Number of records on each page. The default value is 200. |
name | No | String | Image name, which contains a maximum of 512 characters, including lowercase letters, digits, hyphens (-), underscores (_), and periods (.) |
name_fuzzy_match | No | Boolean | Whether the image name is used for fuzzy match. The default value is true. |
namespace | No | String | Organization to which the image belongs. You can create and view the organization on the Organization Management page of the SWR console. |
offset | No | Integer | Start offset of the records on each page. The default value is 0. |
service_type | No | String | Supported image types. Options:
|
sort_dir | No | String | Sorting mode. The options are ASC (ascending order) and DESC (descending order). The default value is DESC. |
sort_key | No | String | Sorting fields. Separate multiple fields with commas (,). |
type | No | String | Image type. Options:
|
workspace_id | No | String | Workspace ID. If no workspaces are available, the default value is 0. |
Request Parameters¶
None
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
current | Integer | Current page number. |
data | Array of ImageGroup objects | Indicates the data. |
pages | Integer | Total number of pages |
size | Integer | Number of records on each page |
total | Long | Total number of records |
Parameter | Type | Description |
---|---|---|
name | String | The image name. |
create_at | Long | Specifies the time (UTC ms) when the image is created. |
namespace | String | Mirror the SWR organization described. |
update_at | Long | Specifies the time (UTC ms) when the image was last updated. |
version_count | Integer | Specifies the number of image versions. |
Example Requests¶
None
Example Responses¶
Status code: 200
OK
{
"current" : 1,
"data" : [ {
"create_at" : 1652878011643,
"name" : "123",
"namespace" : "xxxxx-infer-model-dev",
"update_at" : 1652878531791,
"version_count" : 1
}, {
"create_at" : 1671708630448,
"name" : "pytorch_1_8",
"namespace" : "op_svc_modelarts_container2",
"update_at" : 1671708630448,
"version_count" : 1
}, {
"create_at" : 1671093486722,
"name" : "mock-service-python",
"namespace" : "mock-service1",
"update_at" : 1671093486722,
"version_count" : 1
} ],
"pages" : 1,
"size" : 3,
"total" : 3
}
Status Codes¶
Status Code | Description |
---|---|
200 | OK |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
Error Codes¶
See Error Codes.