获取自制镜像列表-DescribeCompShareCustomImages
获取自制镜像列表
Request Parameters
| Parameter name | Type | Description | Required |
|---|---|---|---|
| Region | string | 地域。 参见 地域和可用区列表 (opens in a new tab) | Yes |
| Zone | string | 可用区。参见 可用区列表 (opens in a new tab) | Yes |
| ProjectId | string | 项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口 (opens in a new tab) | No |
| CompShareImageId | string | 指定镜像Id查询 | No |
| Offset | int | 列表起始位置偏移量,默认为0 | No |
| Limit | int | 返回数据长度,默认为20,最大100 | No |
Response Elements
| Parameter name | Type | Description | Required |
|---|---|---|---|
| RetCode | int | 返回码 | Yes |
| Action | string | 操作名称 | Yes |
| ImageSet | array | 镜像详情信息 | Yes |
| TotalCount | int | 总数量 | No |
CompShareImage
| Parameter name | Type | Description | Required |
|---|---|---|---|
| CompShareImageId | string | 镜像Id | No |
| Name | string | 镜像名称 | No |
| Author | string | 镜像作者昵称 | No |
| AuthInfo | int | 镜像作者认证信息 | No |
| ImageOwnerAlias | string | 镜像来源。- Official 平台镜像;- Community 社区镜像 | No |
| ImageType | string | 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 | No |
| IsOfficial | bool | 来源是否为官方镜像【仅自制镜像信息返回该字段】 | No |
| Container | string | 是否为容器镜像。- True 容器镜像- False 虚机镜像 | No |
| Status | string | 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 | No |
| Size | int | 镜像大小。单位MB | No |
| Visibility | int | 可见性。0:私密镜像;1:公开至镜像社区 | No |
| Description | string | 镜像描述信息 | No |
| Tags | array | 【array of string】镜像标签 | No |
| Price | float | 镜像价格。单位:元 | No |
| Cover | string | 镜像封面URL | No |
| Readme | string | 镜像详细描述。仅指定镜像Id查询时返回 | No |
| Softwares | object | 镜像软件信息 | No |
| CreatedCount | int | 镜像引用创建计数 | No |
| FavoritesCount | int | 镜像收藏计数 | No |
| FailedReason | string | 镜像制作失败错误原因 | No |
| CreateTime | int | 创建时间戳 | No |
| PubTime | int | 发布时间戳 | No |
| Owner | object | 镜像所属账号信息 | No |
| GroupId | string | 镜像组id | No |
| VersionName | string | 版本名称 | No |
| VersionDesc | string | 版本描述 | No |
| SourceGpuType | string | 自制镜像来源机型 | No |
| AutoStart | bool | 是否支持自启动 default:false | No |
| ImageCharge | bool | 是否镜像收费 default: false | No |
| ImageUseTime | int | 镜像使用时长 | No |
Software
| Parameter name | Type | Description | Required |
|---|---|---|---|
| Framework | string | 框架名称 | No |
| FrameworkVersion | string | 框架版本 | No |
| CUDAVersion | string | CUDA版本 | No |
| Applications | array | 【array of string】应用列表 | No |
Projects
| Parameter name | Type | Description | Required |
|---|---|---|---|
| AccountName | string | 账号昵称 | No |
| AccountId | string | 账号Id | No |
Request Example
https://api.ucloud.cn/?Action=DescribeCompShareCustomImages
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=GSIKgudm
&CompShareImageId=ECyEnJbe
&Offset=2
&Limit=2Response Example
{
"Action": "DescribeCompShareCustomImagesResponse",
"ImageSet": [
{
"Status": "hlqtbVJG",
"Name": "nFmURawE",
"Author": "CpKmKtmy",
"CreatedCount": "DQIOscsN",
"CompShareImageId": "hjNwBATq",
"Tags": [
"PbbXTujk"
],
"Cover": "PFuhwZhm",
"Visibility": 2,
"CreateTime": "IFXxRGPj",
"AuthInfo": 6,
"FavoritesCount": "hnuFiuwm",
"ImageOwnerAlias": "xWXjOYVE",
"Readme": "ufXKfxWg",
"Description": "yXiGjmEh",
"PubTime": "kkupHyrZ",
"Price": 9.99592,
"ImageType": "AeSmLeoE",
"Size": 4
}
],
"RetCode": 0,
"TotalCount": 4
}