Documentation
¶
Index ¶
- type AddOrUpdateTagsRequestBody
- type AdditionalProperties
- type BatchAddMembersRequest
- type BatchAddMembersRequestBody
- type BatchAddMembersResponse
- type BatchDeleteMembersRequest
- type BatchDeleteMembersResponse
- type BatchUpdateMembersRequest
- type BatchUpdateMembersRequestBody
- type BatchUpdateMembersResponse
- type CopyImageCrossRegionRequest
- type CopyImageCrossRegionRequestBody
- type CopyImageCrossRegionResponse
- type CopyImageInRegionRequest
- type CopyImageInRegionRequestBody
- type CopyImageInRegionResponse
- type CreateDataImage
- type CreateDataImageRequest
- type CreateDataImageRequestBody
- type CreateDataImageResponse
- type CreateImageRequest
- type CreateImageRequestBody
- type CreateImageResponse
- type CreateOrUpdateTagsRequest
- type CreateOrUpdateTagsResponse
- type CreateWholeImageRequest
- type CreateWholeImageRequestBody
- type CreateWholeImageResponse
- type ExportImageRequest
- type ExportImageRequestBody
- type ExportImageResponse
- type GlanceAddImageMemberRequest
- type GlanceAddImageMemberRequestBody
- type GlanceAddImageMemberResponse
- type GlanceCreateImageMetadataRequest
- type GlanceCreateImageMetadataRequestBody
- type GlanceCreateImageMetadataResponse
- type GlanceCreateTagRequest
- type GlanceCreateTagResponse
- type GlanceDeleteImageMemberRequest
- type GlanceDeleteImageMemberResponse
- type GlanceDeleteImageRequest
- type GlanceDeleteImageRequestBody
- type GlanceDeleteImageResponse
- type GlanceDeleteTagRequest
- type GlanceDeleteTagResponse
- type GlanceImageMembers
- type GlanceListImageMemberSchemasRequest
- type GlanceListImageMemberSchemasResponse
- type GlanceListImageMembersRequest
- type GlanceListImageMembersResponse
- type GlanceListImageSchemasRequest
- type GlanceListImageSchemasResponse
- type GlanceListImagesRequest
- type GlanceListImagesResponse
- type GlanceShowImageMemberRequest
- type GlanceShowImageMemberResponse
- type GlanceShowImageMemberSchemasRequest
- type GlanceShowImageMemberSchemasResponse
- type GlanceShowImageRequest
- type GlanceShowImageResponse
- type GlanceShowImageResponseBody
- type GlanceShowImageSchemasRequest
- type GlanceShowImageSchemasResponse
- type GlanceUpdateImageMemberRequest
- type GlanceUpdateImageMemberRequestBody
- type GlanceUpdateImageMemberResponse
- type GlanceUpdateImageRequest
- type GlanceUpdateImageRequestBody
- type GlanceUpdateImageResponse
- type ImageInfo
- type ImageTag
- type ImportImageQuickRequest
- type ImportImageQuickResponse
- type JobEntities
- type Links
- type ListImagesRequest
- type ListImagesResponse
- type ListOsVersionsRequest
- type ListOsVersionsResponse
- type ListOsVersionsResponseBody
- type ListTagsRequest
- type ListTagsResponse
- type OsVersionInfo
- type QuickImportImageByFileRequestBody
- type Quota
- type QuotaInfo
- type RegisterImageRequest
- type RegisterImageRequestBody
- type RegisterImageResponse
- type ResourceTag
- type ShowImageQuotaRequest
- type ShowImageQuotaResponse
- type ShowJobRequest
- type ShowJobResponse
- type TagKeyValue
- type UpdateImageRequest
- type UpdateImageRequestBody
- type UpdateImageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOrUpdateTagsRequestBody ¶
type AddOrUpdateTagsRequestBody struct { // 镜像ID。 ImageId string `json:"image_id"` // 标签数据。 tag和image_tag只能使用一个。 Tag string `json:"tag,omitempty"` ImageTag *ResourceTag `json:"image_tag,omitempty"` }
请求参数
type AdditionalProperties ¶
type AdditionalProperties struct { // 类型 Type string `json:"type"` }
属性值
type BatchAddMembersRequest ¶
type BatchAddMembersRequest struct {
Body *BatchAddMembersRequestBody `json:"body,omitempty"`
}
Request Object
type BatchAddMembersRequestBody ¶
type BatchAddMembersRequestBody struct { // 镜像ID列表 Images []string `json:"images"` // 项目ID列表 Projects []string `json:"projects"` }
批量添加镜像成员body
type BatchAddMembersResponse ¶
type BatchAddMembersResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type BatchDeleteMembersRequest ¶
type BatchDeleteMembersRequest struct {
Body *BatchAddMembersRequestBody `json:"body,omitempty"`
}
Request Object
type BatchDeleteMembersResponse ¶
type BatchDeleteMembersResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type BatchUpdateMembersRequest ¶
type BatchUpdateMembersRequest struct {
Body *BatchUpdateMembersRequestBody `json:"body,omitempty"`
}
Request Object
type BatchUpdateMembersRequestBody ¶
type BatchUpdateMembersRequestBody struct { // 镜像ID列表。 Images []string `json:"images"` // 项目ID。 ProjectId string `json:"project_id"` // 镜像成员的状态。 取值如下: accepted:表示接受共享镜像。接受后,该镜像在用户镜像列表中可见,用户可以使用该镜像创建云服务器。 rejected:表示拒绝共享镜像。拒绝后,该镜像在用户镜像列表中不可见,但是,用户仍然可以使用该镜像创建云服务器。 Status string `json:"status"` // 存储库ID。 如果是通过CBR创建的整机镜像,则在接受该共享镜像时,为必选参数,需传入该值。 VaultId string `json:"vault_id,omitempty"` }
更新镜像成员状态请求体
type BatchUpdateMembersResponse ¶
type BatchUpdateMembersResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type CopyImageCrossRegionRequest ¶
type CopyImageCrossRegionRequest struct { ImageId string `json:"image_id"` Body *CopyImageCrossRegionRequestBody `json:"body,omitempty"` }
Request Object
type CopyImageCrossRegionRequestBody ¶
type CopyImageCrossRegionRequestBody struct { // IMS服务委托名称。 AgencyName string `json:"agency_name"` // 镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 Description string `json:"description,omitempty"` // 镜像名称 Name string `json:"name"` // 目的区域的项目名称。 ProjectName string `json:"project_name"` // 目的区域的Region ID。 Region string `json:"region"` }
type CopyImageCrossRegionResponse ¶
type CopyImageCrossRegionResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type CopyImageInRegionRequest ¶
type CopyImageInRegionRequest struct { ImageId string `json:"image_id"` Body *CopyImageInRegionRequestBody `json:"body,omitempty"` }
Request Object
type CopyImageInRegionRequestBody ¶
type CopyImageInRegionRequestBody struct { // 加密密钥。默认为空。 CmkId string `json:"cmk_id,omitempty"` // 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 Description string `json:"description,omitempty"` // 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 镜像名称 Name string `json:"name"` }
请求参数
type CopyImageInRegionResponse ¶
type CopyImageInRegionResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type CreateDataImage ¶
type CreateDataImage struct { // 数据盘镜像名称。 Name string `json:"name"` // 数据盘ID。 VolumeId string `json:"volume_id"` // 数据盘描述。 Description string `json:"description,omitempty"` // 数据盘镜像标签。 Tags []string `json:"tags,omitempty"` }
数据盘信息
type CreateDataImageRequest ¶
type CreateDataImageRequest struct {
Body *CreateDataImageRequestBody `json:"body,omitempty"`
}
Request Object
type CreateDataImageRequestBody ¶
type CreateDataImageRequestBody struct { // 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。 CmkId string `json:"cmk_id,omitempty"` // 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 Description string `json:"description,omitempty"` // 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目;取值为UUID,表示属于该UUID对应的企业项目。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 新规范的镜像标签列表。默认为空。 tags和image_tags只能使用一个。 ImageTags []ImageTag `json:"image_tags,omitempty"` // OBS桶中外部镜像文件地址。格式为<OBS桶名>:<OBS镜像文件名称>。 此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。 ImageUrl string `json:"image_url"` // 最小数据盘大小。取值范围40-2048GB。 MinDisk int32 `json:"min_disk"` // 镜像名称。 Name string `json:"name"` // 操作系统类型。只能是Windows、Linux二者之一,值区分大小写。 OsType string `json:"os_type"` // 镜像标签列表。默认为空。 tags和image_tags只能使用一个。 Tags []string `json:"tags,omitempty"` }
创建镜像请求体
type CreateDataImageResponse ¶
type CreateDataImageResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type CreateImageRequest ¶
type CreateImageRequest struct {
Body *CreateImageRequestBody `json:"body,omitempty"`
}
Request Object
type CreateImageRequestBody ¶
type CreateImageRequestBody struct { // 需要转换的数据盘信息,其中,当使用云服务器上的数据盘进行私有数据盘镜像创建时,该字段必选。 如果不是用于制作数据盘镜像,该字段默认为空。 DataImages []CreateDataImage `json:"data_images,omitempty"` // 镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 Description string `json:"description,omitempty"` // 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。 ImageTags []TagKeyValue `json:"image_tags,omitempty"` // 需要转换的云服务器ID。使用instance_id字段,从云服务器制作私有镜像时,该字段填写云服务器ID。 InstanceId string `json:"instance_id,omitempty"` // 镜像名称 Name string `json:"name"` // 镜像标签列表。默认为空。tags和image_tags只能使用一个。 Tags []string `json:"tags,omitempty"` // 表示镜像支持的最大内存,单位为MB。 MaxRam int32 `json:"max_ram,omitempty"` // 表示镜像支持的最小内存,单位为MB,默认为0,表示不受限制。 MinRam int32 `json:"min_ram,omitempty"` // 操作系统版本。 使用上传至OBS桶中的外部镜像文件制作镜像时生效。 当“is_quick_import”的值为“true”时,即使用镜像文件快速导入方式导入系统盘镜像,则该参数为必填参数。 OsVersion string `json:"os_version,omitempty"` // OBS桶中外部镜像文件地址。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。格式为<OBS桶名>:<OBS镜像文件名称>。 ImageUrl string `json:"image_url,omitempty"` // 最小系统盘大小。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为40~1024GB。 MinDisk int32 `json:"min_disk,omitempty"` // 是否自动配置。 取值为true或false。 如果需要后台自动配置,取值为true,否则为false。默认取值为false。 IsConfig bool `json:"is_config,omitempty"` // 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。 CmkId string `json:"cmk_id,omitempty"` // 镜像的类型。 取值为ECS、BMS、FusionCompute、Ironic。默认使用“ECS”。 ECS/FusionCompute:表示是ECS服务器的镜像。 BMS/Ironic:表示是BMS服务器的镜像。 Type string `json:"type,omitempty"` // 是否使用镜像文件快速导入方式,导入系统盘镜像。 是,配置为true。 否,配置为false。 关于镜像文件快速导入的约束与限制请参见镜像文件快速导入。 IsQuickImport bool `json:"is_quick_import,omitempty"` // 镜像的架构类型。取值包括: x86 arm 默认使用“x86”。 当架构类型为arm时,镜像引导方式将自动转为UEFI的引导方式。 Architecture string `json:"architecture,omitempty"` // 数据盘的卷ID。当数据盘创建系统盘镜像时,该参数必选 VolumeId string `json:"volume_id,omitempty"` }
创建镜像请求参数体
type CreateImageResponse ¶
type CreateImageResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type CreateOrUpdateTagsRequest ¶
type CreateOrUpdateTagsRequest struct {
Body *AddOrUpdateTagsRequestBody `json:"body,omitempty"`
}
Request Object
type CreateWholeImageRequest ¶
type CreateWholeImageRequest struct {
Body *CreateWholeImageRequestBody `json:"body,omitempty"`
}
Request Object
type CreateWholeImageRequestBody ¶
type CreateWholeImageRequestBody struct { // 镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。 Description string `json:"description,omitempty"` // 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。 ImageTags []TagKeyValue `json:"image_tags,omitempty"` // 弹性云服务器ID。使用弹性云服务器制作整机镜像时使用此参数。 如果使用备份创建整机镜像,该参数应换成backup_id InstanceId string `json:"instance_id,omitempty"` // 镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。 Name string `json:"name"` // 镜像标签列表。tags和image_tags只能使用一个。 Tags []string `json:"tags,omitempty"` // 使用云服务器备份创建整机镜像使用此参数。 如果使用ECS创建整机镜像,则该参数应传为instance_id BackupId string `json:"backup_id,omitempty"` // 使用备份创建整机镜像时,该字段区分是CBR服务的备份还是CSBS服务的备份,取值为:CBR/CSBS。 使用ECS创建整机镜像时,该字段不填 WholeImageType string `json:"whole_image_type,omitempty"` // 表示镜像支持的最大内存,单位为MB,默认不设置。 MaxRam int32 `json:"max_ram,omitempty"` // 表示镜像支持的最小内存,单位为MB,默认为0。 MinRam int32 `json:"min_ram,omitempty"` // 表示云服务器待加入的或已加入的存储库的ID。 使用云服务器创建整机镜像的过程为:先创建一个备份,再将备份创建为整机镜像。如果这个备份为CBR,vault_id为必填项;如果备份为CSBS,vault_id参数可不填。 VaultId string `json:"vault_id,omitempty"` }
type CreateWholeImageResponse ¶
type CreateWholeImageResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type ExportImageRequest ¶
type ExportImageRequest struct { ImageId string `json:"image_id"` Body *ExportImageRequestBody `json:"body,omitempty"` }
Request Object
type ExportImageRequestBody ¶
type ExportImageRequestBody struct { // 目的文件的URL,格式:<bucket>:<file>。 说明:此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。 BucketUrl string `json:"bucket_url"` // 文件格式,支持qcow2、vhd、zvhd和vmdk。 FileFormat string `json:"file_format"` }
镜像导出请求体
type ExportImageResponse ¶
type ExportImageResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type GlanceAddImageMemberRequest ¶
type GlanceAddImageMemberRequest struct { ImageId string `json:"image_id"` Body *GlanceAddImageMemberRequestBody `json:"body,omitempty"` }
Request Object
type GlanceAddImageMemberRequestBody ¶
type GlanceAddImageMemberRequestBody struct { // 镜像成员。取值为目标用户的项目ID。 Member string `json:"member"` }
添加镜像成员请求参数
type GlanceAddImageMemberResponse ¶
type GlanceAddImageMemberResponse struct { // 共享状态 Status string `json:"status,omitempty"` // 共享时间,格式为UTC时间 CreatedAt string `json:"created_at,omitempty"` // 更新时间,格式为UTC时间 UpdatedAt string `json:"updated_at,omitempty"` // 镜像ID ImageId string `json:"image_id,omitempty"` // 成员ID MemberId string `json:"member_id,omitempty"` // 共享视图 Schema string `json:"schema,omitempty"` }
Response Object
type GlanceCreateImageMetadataRequest ¶
type GlanceCreateImageMetadataRequest struct {
Body *GlanceCreateImageMetadataRequestBody `json:"body,omitempty"`
}
Request Object
type GlanceCreateImageMetadataRequestBody ¶
type GlanceCreateImageMetadataRequestBody struct { // 镜像的操作系统具体版本,如果未指定__os_version,则默认设置为Other Linux(64 bit),不保证该镜像能成功创建虚拟机以及通过该镜像创建的虚拟机能够正常使用。 OsVersion string `json:"__os_version,omitempty"` // 容器格式。默认取值为bare。 ContainerFormat string `json:"container_format,omitempty"` // 镜像文件格式。目前支持vhd,zvhd、zvhd2、raw,qcow2。默认取值为vhd DiskFormat string `json:"disk_format,omitempty"` // 镜像运行需要的最小磁盘,单位为GB 。必须大于镜像系统盘容量,否则创建云主机云服务器可能失败。 MinDisk int32 `json:"min_disk,omitempty"` // 镜像运行需要的最小内存,单位为MB。参数取值依据云主机云服务器的规格限制。默认取值为0。 MinRam int32 `json:"min_ram,omitempty"` // 镜像名称,如果未指定name的取值,则默认为空,但是使用该镜像创建虚拟机会失败。名称的长度为1-255位。 Name string `json:"name,omitempty"` // 镜像是否被保护,保护后的镜像不可删除。默认取值为false。 Protected bool `json:"protected,omitempty"` // 镜像标签列表。长度为1-255位。默认为空。 Tags []string `json:"tags,omitempty"` // 其他租户是否可见。默认取值为private。创建镜像元数据时,visibility取值只能为private。 Visibility string `json:"visibility,omitempty"` }
创建镜像请求体
type GlanceCreateImageMetadataResponse ¶
type GlanceCreateImageMetadataResponse struct { // 其他租户是否可见。取值为private。 Visibility string `json:"visibility,omitempty"` // 镜像名称,如果未指定name的取值,则默认为空,但是使用该镜像创建虚拟机会失败。名称的长度为1~128位。 Name string `json:"name,omitempty"` // 镜像是否被保护,保护后的镜像不可删除。取值为false Protected bool `json:"protected,omitempty"` // 容器格式。取值为bare。 ContainerFormat string `json:"container_format,omitempty"` // 镜像文件格式。目前支持vhd、zvhd、raw、qcow2。默认值是vhd。 DiskFormat string `json:"disk_format,omitempty"` // 镜像标签列表。长度为1~255位。 Tags []string `json:"tags,omitempty"` // 镜像运行最小内存,单位为MB。取值参考ECS规格限制,一般设置为0。云服务器的规格限制,请参见规格清单。 MinRam int32 `json:"min_ram,omitempty"` // 镜像运行需要的最小磁盘容量,单位为GB 。取值为40~1024GB。必须大于镜像系统盘容量,否则创建云主机云服务器可能失败。 MinDisk int32 `json:"min_disk,omitempty"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待上传镜像文件。saving:表示镜像正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用。 Status string `json:"status,omitempty"` // 创建时间。格式为UTC时间。 CreatedAt string `json:"created_at,omitempty"` // 更新时间。格式为UTC时间。 UpdatedAt string `json:"updated_at,omitempty"` // 本镜像链接。 Self string `json:"self,omitempty"` // 镜像ID,用户调用创建镜像接口后,需保存该镜像的ID,用来调用上传镜像接口完成镜像上传。 Id string `json:"id,omitempty"` // 上传下载镜像文件的地址链接。 File string `json:"file,omitempty"` // 视图链接。 Schema string `json:"schema,omitempty"` // 镜像后端存储类型,目前支持uds。 ImageSourceType string `json:"__image_source_type,omitempty"` // 镜像大小。单位为字节。 ImageSize string `json:"__image_size,omitempty"` // 镜像是否注册。只有已注册的镜像才能在Portal界面上查询到。取值为true。 Isregistered string `json:"__isregistered,omitempty"` // 镜像的操作系统具体版本。 OsVersion string `json:"__os_version,omitempty"` // 镜像的操作系统类型,取值由__os_version确定。支持Windows、Linux和other。 OsType string `json:"__os_type,omitempty"` // 表示镜像支持的操作系统平台。取值由__os_version确定 Platform string `json:"__platform,omitempty"` // 表示操作系统位数。取值由__os_version确定,取值为32或64。 OsBit string `json:"__os_bit,omitempty"` // 镜像类型。取值为private,表示私有镜像。 Imagetype string `json:"__imagetype,omitempty"` // 平台类型。镜像使用环境类型:FusionCompute、Ironic、DataImage。如果是云主机云服务器镜像,则取值为FusionCompute。如果是数据卷镜像则取值是DataImage。如果是物理机裸金属服务器镜像,则取值是Ironic。 VirtualEnvType string `json:"virtual_env_type,omitempty"` // 镜像所属项目ID。 Owner string `json:"owner,omitempty"` // 镜像虚拟大小。单位为字节。 VirtualSize int32 `json:"virtual_size,omitempty"` // 镜像属性的集合,不表示具体的镜像属性 Properties map[string]interface{} `json:"properties,omitempty"` }
Response Object
type GlanceCreateTagRequest ¶
Request Object
type GlanceDeleteImageMemberRequest ¶
type GlanceDeleteImageMemberRequest struct { ImageId string `json:"image_id"` MemberId string `json:"member_id"` }
Request Object
type GlanceDeleteImageMemberResponse ¶
type GlanceDeleteImageMemberResponse struct { }
Response Object
type GlanceDeleteImageRequest ¶
type GlanceDeleteImageRequest struct { ImageId string `json:"image_id"` Body *GlanceDeleteImageRequestBody `json:"body,omitempty"` }
Request Object
type GlanceDeleteImageRequestBody ¶
type GlanceDeleteImageRequestBody struct { // 取值为:true和false true:表示删除整机镜像时,同时删除其关联的云服务器备份。 false:表示只删除整机镜像,不删除其关联的云服务器备份。 DeleteBackup bool `json:"delete_backup,omitempty"` }
请求参数
type GlanceDeleteTagRequest ¶
Request Object
type GlanceImageMembers ¶
type GlanceImageMembers struct { // 共享状态。 Status string `json:"status"` // 共享时间,格式为UTC时间。 CreatedAt string `json:"created_at"` // 更新时间,格式为UTC时间。 UpdatedAt string `json:"updated_at"` // 镜像ID。 ImageId string `json:"image_id"` // 成员ID。 MemberId string `json:"member_id"` // 共享视图。 Schema string `json:"schema"` }
获取镜像成员列表
type GlanceListImageMemberSchemasRequest ¶
type GlanceListImageMemberSchemasRequest struct { }
Request Object
type GlanceListImageMemberSchemasResponse ¶
type GlanceListImageMemberSchemasResponse struct { // 视图链接。 Links []Links `json:"links,omitempty"` // 视图名称。 Name string `json:"name,omitempty"` // 镜像属性说明,主要是对基础属性的说明,包含每个属性的取值类型,用途。 Properties map[string]interface{} `json:"properties,omitempty"` }
Response Object
type GlanceListImageMembersRequest ¶
type GlanceListImageMembersRequest struct {
ImageId string `json:"image_id"`
}
Request Object
type GlanceListImageMembersResponse ¶
type GlanceListImageMembersResponse struct { // 成员信息 Members []GlanceImageMembers `json:"members,omitempty"` // 视图信息 Schema string `json:"schema,omitempty"` }
Response Object
type GlanceListImageSchemasResponse ¶
type GlanceListImageSchemasResponse struct { // 视图名称。 Name string `json:"name,omitempty"` // 镜像属性说明,主要是对基础属性的说明,包含每个属性的取值类型、用途等。 Properties map[string]interface{} `json:"properties,omitempty"` // 视图链接。 Links []Links `json:"links,omitempty"` }
Response Object
type GlanceListImagesRequest ¶
type GlanceListImagesRequest struct { Imagetype string `json:"__imagetype,omitempty"` Isregistered bool `json:"__isregistered,omitempty"` OsBit string `json:"__os_bit,omitempty"` OsType string `json:"__os_type,omitempty"` Platform string `json:"__platform,omitempty"` SupportDiskintensive string `json:"__support_diskintensive,omitempty"` SupportHighperformance string `json:"__support_highperformance,omitempty"` SupportKvm string `json:"__support_kvm,omitempty"` SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` SupportLargememory string `json:"__support_largememory,omitempty"` SupportXen string `json:"__support_xen,omitempty"` SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` SupportXenHana string `json:"__support_xen_hana,omitempty"` ContainerFormat string `json:"container_format,omitempty"` DiskFormat string `json:"disk_format,omitempty"` Id string `json:"id,omitempty"` Limit int32 `json:"limit,omitempty"` Marker string `json:"marker,omitempty"` MemberStatus string `json:"member_status,omitempty"` MinDisk int32 `json:"min_disk,omitempty"` MinRam int32 `json:"min_ram,omitempty"` Name string `json:"name,omitempty"` Owner string `json:"owner,omitempty"` Protected bool `json:"protected,omitempty"` SortDir string `json:"sort_dir,omitempty"` SortKey string `json:"sort_key,omitempty"` Status string `json:"status,omitempty"` Tag string `json:"tag,omitempty"` Visibility string `json:"visibility,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
Request Object
type GlanceListImagesResponse ¶
type GlanceListImagesResponse struct { // 查询首页的URL。 First string `json:"first,omitempty"` // 资源类型。 Images []GlanceShowImageResponseBody `json:"images,omitempty"` // 描述镜像列表模式的URL。 Schema string `json:"schema,omitempty"` // 查询下一页的URL。当查询镜像列表最后一页时,不存在next。 Next string `json:"next,omitempty"` }
Response Object
type GlanceShowImageMemberRequest ¶
type GlanceShowImageMemberRequest struct { ImageId string `json:"image_id"` MemberId string `json:"member_id"` }
Request Object
type GlanceShowImageMemberResponse ¶
type GlanceShowImageMemberResponse struct { // 共享状态 Status string `json:"status,omitempty"` // 共享时间,格式为UTC时间 CreatedAt string `json:"created_at,omitempty"` // 更新时间,格式为UTC时间 UpdatedAt string `json:"updated_at,omitempty"` // 镜像ID ImageId string `json:"image_id,omitempty"` // 成员ID MemberId string `json:"member_id,omitempty"` // 共享视图 Schema string `json:"schema,omitempty"` }
Response Object
type GlanceShowImageMemberSchemasRequest ¶
type GlanceShowImageMemberSchemasRequest struct { }
Request Object
type GlanceShowImageMemberSchemasResponse ¶
type GlanceShowImageMemberSchemasResponse struct { // 视图名称。 Name string `json:"name,omitempty"` // 镜像成员属性说明,主要是对基础属性的说明,包含每个属性的取值类型、用途等。 Properties map[string]interface{} `json:"properties,omitempty"` }
Response Object
type GlanceShowImageRequest ¶
type GlanceShowImageRequest struct {
ImageId string `json:"image_id"`
}
Request Object
type GlanceShowImageResponse ¶
type GlanceShowImageResponse struct { // 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空。 BackupId string `json:"__backup_id,omitempty"` // 镜像来源。公共镜像为空。 DataOrigin string `json:"__data_origin,omitempty"` // 镜像描述信息。 Description string `json:"__description,omitempty"` // 镜像文件的大小,单位为字节。目前取值为大于0的字符串。 ImageSize string `json:"__image_size,omitempty"` // 镜像后端存储类型,目前只支持uds ImageSourceType string `json:"__image_source_type,omitempty"` // 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared Imagetype string `json:"__imagetype,omitempty"` // 是否是注册过的镜像,取值为“true”或者“false”。 Isregistered string `json:"__isregistered,omitempty"` // 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空。 Originalimagename string `json:"__originalimagename,omitempty"` // 操作系统位数,一般取值为“32”或者“64”。 OsBit string `json:"__os_bit,omitempty"` // 操作系统类型,目前取值Linux, Windows,Other。 OsType string `json:"__os_type,omitempty"` // 操作系统具体版本。 OsVersion string `json:"__os_version,omitempty"` // 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS。 Platform string `json:"__platform,omitempty"` // 市场镜像的产品ID。 Productcode string `json:"__productcode,omitempty"` // 表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。 SupportDiskintensive string `json:"__support_diskintensive,omitempty"` // 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。 SupportHighperformance string `json:"__support_highperformance,omitempty"` // 如果镜像支持KVM,取值为true,否则无需增加该属性。 SupportKvm string `json:"__support_kvm,omitempty"` // 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` // 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。 SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` // 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性 SupportLargememory string `json:"__support_largememory,omitempty"` // 如果镜像支持XEN,取值为true,否则无需增加该属性。 SupportXen string `json:"__support_xen,omitempty"` // 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,取值参考8.10-表 镜像支持的GPU类型说明。镜像操作系统类型请参考8.10-表 镜像类型。如果不支持XEN虚拟化下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` // 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenHana string `json:"__support_xen_hana,omitempty"` // 目前暂时不使用。 Checksum string `json:"checksum,omitempty"` // 容器类型。 ContainerFormat string `json:"container_format,omitempty"` // 创建时间。格式为UTC时间。 CreatedAt string `json:"created_at,omitempty"` // 是否是删除的镜像,取值为true或者false。 Deleted bool `json:"deleted,omitempty"` // 删除时间。格式为UTC时间 DeletedAt string `json:"deleted_at,omitempty"` // 镜像的格式,目前支持vhd,zvhd、raw,qcow2,zvhd2。默认值是vhd。 DiskFormat string `json:"disk_format,omitempty"` // 镜像文件下载和上传链接。 File string `json:"file,omitempty"` // 镜像ID。 Id string `json:"id,omitempty"` // 镜像运行需要的最小磁盘容量,单位为GB MinDisk int32 `json:"min_disk,omitempty"` // 镜像运行最小内存,单位为MB。 MinRam int32 `json:"min_ram,omitempty"` // 镜像名称。 Name string `json:"name,omitempty"` // 镜像属于哪个租户。 Owner string `json:"owner,omitempty"` // 是否是受保护的,受保护的镜像不允许删除。取值为true或false。 Protected bool `json:"protected,omitempty"` // 镜像视图。 Schema string `json:"schema,omitempty"` // 镜像链接信息。 Self string `json:"self,omitempty"` // 目前暂时不使用。 Size int64 `json:"size,omitempty"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待上传镜像文件。saving:表示镜像正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用。 Status string `json:"status,omitempty"` // 镜像标签列表,提供用户可以自定义管理私有镜像的能力。用户可以通过镜像标签接口为每个镜像增加不同的标签,在查询接口中可以根据标签进行过滤。 Tags []string `json:"tags,omitempty"` // 更新时间。格式为UTC时间。 UpdatedAt string `json:"updated_at,omitempty"` // 镜像使用环境类型:FusionCompute,Ironic,DataImage。 VirtualEnvType string `json:"virtual_env_type,omitempty"` // 目前暂时不使用。 VirtualSize int32 `json:"virtual_size,omitempty"` // 是否被其他租户可见,取值如下:private:私有镜像public:公共镜像shared:共享镜像 Visibility string `json:"visibility,omitempty"` // 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 SupportFcInject string `json:"__support_fc_inject,omitempty"` // 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。 HwFirmwareType string `json:"hw_firmware_type,omitempty"` // 是否为ARM架构类型的镜像,取值为“true”或者“false”。 SupportArm string `json:"__support_arm,omitempty"` // 表示当前市场镜像是否下架。 true:已下架 false:未下架 IsOffshelved string `json:"__is_offshelved,omitempty"` }
Response Object
type GlanceShowImageResponseBody ¶
type GlanceShowImageResponseBody struct { // 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空。 BackupId string `json:"__backup_id"` // 镜像来源。公共镜像为空。 DataOrigin string `json:"__data_origin"` // 镜像描述信息。 Description string `json:"__description"` // 镜像文件的大小,单位为字节。目前取值为大于0的字符串。 ImageSize string `json:"__image_size"` // 镜像后端存储类型,目前只支持uds ImageSourceType string `json:"__image_source_type"` // 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared Imagetype string `json:"__imagetype"` // 是否是注册过的镜像,取值为“true”或者“false”。 Isregistered string `json:"__isregistered"` // 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空。 Originalimagename string `json:"__originalimagename"` // 操作系统位数,一般取值为“32”或者“64”。 OsBit string `json:"__os_bit"` // 操作系统类型,目前取值Linux, Windows,Other。 OsType string `json:"__os_type"` // 操作系统具体版本。 OsVersion string `json:"__os_version"` // 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS。 Platform string `json:"__platform"` // 市场镜像的产品ID。 Productcode string `json:"__productcode"` // 表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。 SupportDiskintensive string `json:"__support_diskintensive"` // 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。 SupportHighperformance string `json:"__support_highperformance"` // 如果镜像支持KVM,取值为true,否则无需增加该属性。 SupportKvm string `json:"__support_kvm"` // 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportKvmGpuType string `json:"__support_kvm_gpu_type"` // 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。 SupportKvmInfiniband string `json:"__support_kvm_infiniband"` // 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性 SupportLargememory string `json:"__support_largememory"` // 如果镜像支持XEN,取值为true,否则无需增加该属性。 SupportXen string `json:"__support_xen"` // 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,取值参考8.10-表 镜像支持的GPU类型说明。镜像操作系统类型请参考8.10-表 镜像类型。如果不支持XEN虚拟化下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenGpuType string `json:"__support_xen_gpu_type"` // 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenHana string `json:"__support_xen_hana"` // 目前暂时不使用。 Checksum string `json:"checksum"` // 容器类型。 ContainerFormat string `json:"container_format"` // 创建时间。格式为UTC时间。 CreatedAt string `json:"created_at"` // 是否是删除的镜像,取值为true或者false。 Deleted bool `json:"deleted"` // 删除时间。格式为UTC时间 DeletedAt string `json:"deleted_at"` // 镜像的格式,目前支持vhd,zvhd、raw,qcow2,zvhd2。默认值是vhd。 DiskFormat string `json:"disk_format"` // 镜像文件下载和上传链接。 File string `json:"file"` // 镜像ID。 Id string `json:"id"` // 镜像运行需要的最小磁盘容量,单位为GB MinDisk int32 `json:"min_disk"` // 镜像运行最小内存,单位为MB。 MinRam int32 `json:"min_ram"` // 镜像名称。 Name string `json:"name"` // 镜像属于哪个租户。 Owner string `json:"owner"` // 是否是受保护的,受保护的镜像不允许删除。取值为true或false。 Protected bool `json:"protected"` // 镜像视图。 Schema string `json:"schema"` // 镜像链接信息。 Self string `json:"self"` // 目前暂时不使用。 Size int64 `json:"size"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待上传镜像文件。saving:表示镜像正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用。 Status string `json:"status"` // 镜像标签列表,提供用户可以自定义管理私有镜像的能力。用户可以通过镜像标签接口为每个镜像增加不同的标签,在查询接口中可以根据标签进行过滤。 Tags []string `json:"tags"` // 更新时间。格式为UTC时间。 UpdatedAt string `json:"updated_at"` // 镜像使用环境类型:FusionCompute,Ironic,DataImage。 VirtualEnvType string `json:"virtual_env_type"` // 目前暂时不使用。 VirtualSize int32 `json:"virtual_size"` // 是否被其他租户可见,取值如下:private:私有镜像public:公共镜像shared:共享镜像 Visibility string `json:"visibility"` // 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 SupportFcInject string `json:"__support_fc_inject"` // 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id"` // 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。 HwFirmwareType string `json:"hw_firmware_type"` // 是否为ARM架构类型的镜像,取值为“true”或者“false”。 SupportArm string `json:"__support_arm"` // 表示当前市场镜像是否下架。 true:已下架 false:未下架 IsOffshelved string `json:"__is_offshelved"` }
镜像信息响应体
type GlanceShowImageSchemasResponse ¶
type GlanceShowImageSchemasResponse struct { AdditionalProperties *AdditionalProperties `json:"additionalProperties,omitempty"` // 视图名称。 Name string `json:"name,omitempty"` // 镜像属性说明,主要是对基础属性的说明,包含每个属性的取值类型、用途等。 Properties map[string]interface{} `json:"properties,omitempty"` // 视图链接。 Links []Links `json:"links,omitempty"` }
Response Object
type GlanceUpdateImageMemberRequest ¶
type GlanceUpdateImageMemberRequest struct { ImageId string `json:"image_id"` MemberId string `json:"member_id"` Body *GlanceUpdateImageMemberRequestBody `json:"body,omitempty"` }
Request Object
type GlanceUpdateImageMemberRequestBody ¶
type GlanceUpdateImageMemberRequestBody struct { // 镜像成员的状态。 取值如下: accepted:表示接受共享镜像。接受后,该镜像在用户镜像列表中可见,用户可以使用该镜像创建云服务器。 rejected:表示拒绝共享镜像。拒绝后,该镜像在用户镜像列表中不可见,但是,用户仍然可以使用该镜像创建云服务器。 Status string `json:"status"` // 存储库ID。 如果是CBR创建的整机镜像,则在接受该共享镜像时,为必选参数,需传入该值。 存储库ID可以从云备份服务控制台获取,或者参考《云备份接口参考》的“查询存储库列表”章节查询。 VaultId string `json:"vault_id,omitempty"` }
镜像成员的状态。
type GlanceUpdateImageMemberResponse ¶
type GlanceUpdateImageMemberResponse struct { // 共享状态 Status string `json:"status,omitempty"` // 共享时间,格式为UTC时间 CreatedAt string `json:"created_at,omitempty"` // 更新时间,格式为UTC时间 UpdatedAt string `json:"updated_at,omitempty"` // 镜像ID ImageId string `json:"image_id,omitempty"` // 成员ID MemberId string `json:"member_id,omitempty"` // 共享视图 Schema string `json:"schema,omitempty"` }
Response Object
type GlanceUpdateImageRequest ¶
type GlanceUpdateImageRequest struct { ImageId string `json:"image_id"` Body []GlanceUpdateImageRequestBody `json:"body,omitempty"` }
Request Object
type GlanceUpdateImageRequestBody ¶
type GlanceUpdateImageRequestBody struct { // 所需进行的更新操作的类型:替换、添加、删除。取值范围:replace、add、remove Op string `json:"op"` // 所要操作的属性名称。 replace和remove操作取值只能是镜像当前已有的属性、add操作取值只能是镜像当前不存在的属性,需要在属性名称前加”/” Path string `json:"path"` // 所需更新/添加属性的值 Value string `json:"value,omitempty"` }
原生更新接口请求体
type GlanceUpdateImageResponse ¶
type GlanceUpdateImageResponse struct { // 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空。 BackupId string `json:"__backup_id,omitempty"` // 镜像来源。公共镜像为空。 DataOrigin string `json:"__data_origin,omitempty"` // 镜像描述信息。 Description string `json:"__description,omitempty"` // 镜像文件的大小,单位为字节。目前取值为大于0的字符串。 ImageSize string `json:"__image_size,omitempty"` // 镜像后端存储类型,目前只支持uds ImageSourceType string `json:"__image_source_type,omitempty"` // 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared Imagetype string `json:"__imagetype,omitempty"` // 是否是注册过的镜像,取值为“true”或者“false”。 Isregistered string `json:"__isregistered,omitempty"` // 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空。 Originalimagename string `json:"__originalimagename,omitempty"` // 操作系统位数,一般取值为“32”或者“64”。 OsBit string `json:"__os_bit,omitempty"` // 操作系统类型,目前取值Linux, Windows,Other。 OsType string `json:"__os_type,omitempty"` // 操作系统具体版本。 OsVersion string `json:"__os_version,omitempty"` // 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS。 Platform string `json:"__platform,omitempty"` // 市场镜像的产品ID。 Productcode string `json:"__productcode,omitempty"` // 表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。 SupportDiskintensive string `json:"__support_diskintensive,omitempty"` // 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。 SupportHighperformance string `json:"__support_highperformance,omitempty"` // 如果镜像支持KVM,取值为true,否则无需增加该属性。 SupportKvm string `json:"__support_kvm,omitempty"` // 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` // 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。 SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` // 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性 SupportLargememory string `json:"__support_largememory,omitempty"` // 如果镜像支持XEN,取值为true,否则无需增加该属性。 SupportXen string `json:"__support_xen,omitempty"` // 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,取值参考8.10-表 镜像支持的GPU类型说明。镜像操作系统类型请参考8.10-表 镜像类型。如果不支持XEN虚拟化下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` // 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenHana string `json:"__support_xen_hana,omitempty"` // 目前暂时不使用。 Checksum string `json:"checksum,omitempty"` // 容器类型。 ContainerFormat string `json:"container_format,omitempty"` // 创建时间。格式为UTC时间。 CreatedAt string `json:"created_at,omitempty"` // 是否是删除的镜像,取值为true或者false。 Deleted bool `json:"deleted,omitempty"` // 删除时间。格式为UTC时间 DeletedAt string `json:"deleted_at,omitempty"` // 镜像的格式,目前支持vhd,zvhd、raw,qcow2,zvhd2。默认值是vhd。 DiskFormat string `json:"disk_format,omitempty"` // 镜像文件下载和上传链接。 File string `json:"file,omitempty"` // 镜像ID。 Id string `json:"id,omitempty"` // 镜像运行需要的最小磁盘容量,单位为GB MinDisk int32 `json:"min_disk,omitempty"` // 镜像运行最小内存,单位为MB。 MinRam int32 `json:"min_ram,omitempty"` // 镜像名称。 Name string `json:"name,omitempty"` // 镜像属于哪个租户。 Owner string `json:"owner,omitempty"` // 是否是受保护的,受保护的镜像不允许删除。取值为true或false。 Protected bool `json:"protected,omitempty"` // 镜像视图。 Schema string `json:"schema,omitempty"` // 镜像链接信息。 Self string `json:"self,omitempty"` // 目前暂时不使用。 Size int64 `json:"size,omitempty"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待上传镜像文件。saving:表示镜像正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用。 Status string `json:"status,omitempty"` // 镜像标签列表,提供用户可以自定义管理私有镜像的能力。用户可以通过镜像标签接口为每个镜像增加不同的标签,在查询接口中可以根据标签进行过滤。 Tags []string `json:"tags,omitempty"` // 更新时间。格式为UTC时间。 UpdatedAt string `json:"updated_at,omitempty"` // 镜像使用环境类型:FusionCompute,Ironic,DataImage。 VirtualEnvType string `json:"virtual_env_type,omitempty"` // 目前暂时不使用。 VirtualSize int32 `json:"virtual_size,omitempty"` // 是否被其他租户可见,取值如下:private:私有镜像public:公共镜像shared:共享镜像 Visibility string `json:"visibility,omitempty"` // 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 SupportFcInject string `json:"__support_fc_inject,omitempty"` // 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。 HwFirmwareType string `json:"hw_firmware_type,omitempty"` // 是否为ARM架构类型的镜像,取值为“true”或者“false”。 SupportArm string `json:"__support_arm,omitempty"` // 表示当前市场镜像是否下架。 true:已下架 false:未下架 IsOffshelved string `json:"__is_offshelved,omitempty"` }
Response Object
type ImageInfo ¶
type ImageInfo struct { // 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空 BackupId string `json:"__backup_id"` // 镜像来源。公共镜像为空 DataOrigin string `json:"__data_origin"` // 镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。 Description string `json:"__description"` // 镜像的存储位置 ImageLocation string `json:"__image_location"` // 镜像文件的大小,单位为字节 ImageSize string `json:"__image_size"` // 镜像后端存储类型,目前只支持uds ImageSourceType string `json:"__image_source_type"` // 镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared Imagetype string `json:"__imagetype"` // 是否完成了初始化配置。取值为true或false。如果用户确定完成了初始化配置,则可以设置为true,否 则设置为false。默认为false。 IsConfigInit string `json:"__is_config_init"` // 是否是注册过的镜像,取值为“true”或者“false” Isregistered string `json:"__isregistered"` // 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空 Originalimagename string `json:"__originalimagename"` // 操作系统位数,一般取值为“32”或者“64” OsBit string `json:"__os_bit"` // 操作系统类型,目前取值Linux, Windows,Other OsType string `json:"__os_type"` // 操作系统具体版本 OsVersion string `json:"__os_version"` // 镜像平台分类 Platform string `json:"__platform"` // 市场镜像的产品ID Productcode string `json:"__productcode,omitempty"` // 镜像来源表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。 SupportDiskintensive string `json:"__support_diskintensive,omitempty"` // 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。 SupportHighperformance string `json:"__support_highperformance,omitempty"` // 如果镜像支持KVM,取值为true,否则无需增加该属性。 SupportKvm string `json:"__support_kvm,omitempty"` // 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` // 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。 SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` // 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性。 SupportLargememory string `json:"__support_largememory,omitempty"` // 如果镜像支持XEN,取值为true,否则无需增加该属性。 SupportXen string `json:"__support_xen,omitempty"` // 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,如果不支持XEN虚拟化下GPU类型,无需添加该属性 。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` // 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen” 和“__support_kvm”属性不共存。 SupportXenHana string `json:"__support_xen_hana,omitempty"` // 表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持 SystemSupportMarket bool `json:"__system_support_market,omitempty"` // 目前暂时不使用 Checksum string `json:"checksum,omitempty"` // 容器类型 ContainerFormat string `json:"container_format"` // 创建时间。格式为UTC时间 CreatedAt string `json:"created_at"` // 是否是删除的镜像,取值为true或者false Deleted bool `json:"deleted,omitempty"` // 删除时间。格式为UTC时间 DeletedAt string `json:"deleted_at,omitempty"` // 镜像的格式,目前支持vhd,zvhd、raw,qcow2。默认值是vhd DiskFormat string `json:"disk_format,omitempty"` // 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目,取值为UUID,表示属于 该UUID对应的企业项目。 EnterpriseProjectId string `json:"enterprise_project_id"` // 镜像文件下载和上传链接 File string `json:"file,omitempty"` // 镜像ID Id string `json:"id"` // 镜像运行需要的最小磁盘容量,单位为GB。取值为40~1024GB。 MinDisk int32 `json:"min_disk"` // 镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,默认设置为0 MinRam int32 `json:"min_ram"` // 镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。 Name string `json:"name"` // 镜像属于哪个租户 Owner string `json:"owner"` // 是否是受保护的,受保护的镜像不允许删除。取值为true或false Protected bool `json:"protected"` // 镜像视图 Schema string `json:"schema,omitempty"` // 镜像链接信息 Self string `json:"self"` // 目前暂时不使用 Size int32 `json:"size,omitempty"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待 上传镜像文件。saving:表示镜像 正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用 Status string `json:"status"` // 镜像标签列表 Tags []string `json:"tags"` // 更新时间。格式为UTC时间 UpdatedAt string `json:"updated_at"` // 镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取Dat aImage,如果是裸金属服务器镜像,则取值是Ironic VirtualEnvType string `json:"virtual_env_type"` // 目前暂时不使用 VirtualSize int32 `json:"virtual_size"` // 是否被其他租户可见,取值为private或public Visibility string `json:"visibility"` // 镜像架构类型。取值包括: x86 arm Architecture string `json:"architecture"` // 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 SupportFcInject string `json:"__support_fc_inject,omitempty"` // 云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。 HwFirmwareType string `json:"hw_firmware_type,omitempty"` // 是否是ARM架构类型的镜像,取值为“true”或者“false”。 SupportArm string `json:"__support_arm,omitempty"` }
镜像信息响应体
type ImageTag ¶
type ImageTag struct { // 标签key值 Key string `json:"key,omitempty"` // 标签value值 Value string `json:"value,omitempty"` }
镜像标签
type ImportImageQuickRequest ¶
type ImportImageQuickRequest struct {
Body *QuickImportImageByFileRequestBody `json:"body,omitempty"`
}
Request Object
type ImportImageQuickResponse ¶
type ImportImageQuickResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type JobEntities ¶
type JobEntities struct { // 镜像ID ImageId string `json:"image_id,omitempty"` }
type ListImagesRequest ¶
type ListImagesRequest struct { Imagetype string `json:"__imagetype,omitempty"` Isregistered string `json:"__isregistered,omitempty"` OsBit string `json:"__os_bit,omitempty"` OsType string `json:"__os_type,omitempty"` Platform string `json:"__platform,omitempty"` SupportDiskintensive string `json:"__support_diskintensive,omitempty"` SupportHighperformance string `json:"__support_highperformance,omitempty"` SupportKvm string `json:"__support_kvm,omitempty"` SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` SupportLargememory string `json:"__support_largememory,omitempty"` SupportXen string `json:"__support_xen,omitempty"` SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` SupportXenHana string `json:"__support_xen_hana,omitempty"` ContainerFormat string `json:"container_format,omitempty"` DiskFormat string `json:"disk_format,omitempty"` EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` Id string `json:"id,omitempty"` Limit int32 `json:"limit,omitempty"` Marker string `json:"marker,omitempty"` MemberStatus string `json:"member_status,omitempty"` MinDisk int32 `json:"min_disk,omitempty"` MinRam int32 `json:"min_ram,omitempty"` Name string `json:"name,omitempty"` Owner string `json:"owner,omitempty"` Protected bool `json:"protected,omitempty"` SortDir string `json:"sort_dir,omitempty"` SortKey string `json:"sort_key,omitempty"` Status string `json:"status,omitempty"` Tag string `json:"tag,omitempty"` VirtualEnvType string `json:"virtual_env_type,omitempty"` Visibility string `json:"visibility,omitempty"` XSdkDate string `json:"X-Sdk-Date,omitempty"` FlavorId string `json:"flavor_id,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Architecture string `json:"architecture,omitempty"` }
Request Object
type ListImagesResponse ¶
type ListImagesResponse struct { // 镜像列表 Images []ImageInfo `json:"images,omitempty"` }
Response Object
type ListOsVersionsRequest ¶
type ListOsVersionsRequest struct {
Tag string `json:"tag,omitempty"`
}
Request Object
type ListOsVersionsResponse ¶
type ListOsVersionsResponse struct {
Body []ListOsVersionsResponseBody `json:"body,omitempty"`
}
Response Object
type ListOsVersionsResponseBody ¶
type ListOsVersionsResponseBody struct { // 操作系统的平台值,如RedHat等 Platform string `json:"platform"` // 操作系统的详情值 VersionList []OsVersionInfo `json:"version_list"` }
查询操作系统列表响应体
type ListTagsRequest ¶
type ListTagsRequest struct { Limit int32 `json:"limit,omitempty"` Page int32 `json:"page,omitempty"` Imagetype string `json:"__imagetype,omitempty"` Id string `json:"id,omitempty"` Status string `json:"status,omitempty"` Name string `json:"name,omitempty"` MinDisk int32 `json:"min_disk,omitempty"` Platform string `json:"__platform,omitempty"` OsType string `json:"__os_type,omitempty"` MemberStatus string `json:"member_status,omitempty"` VirtualEnvType string `json:"virtual_env_type,omitempty"` EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` Architecture string `json:"architecture,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
Request Object
type ListTagsResponse ¶
type ListTagsResponse struct { // 标签列表 Tags []string `json:"tags,omitempty"` }
Response Object
type OsVersionInfo ¶
type OsVersionInfo struct { // 操作系统的平台值 Platform string `json:"platform"` // os_version的key值,和os_version值相同 OsVersionKey string `json:"os_version_key"` // 操作系统的版本 OsVersion string `json:"os_version"` // 操作系统的位数 OsBit string `json:"os_bit"` // 操作系统的类型,Linux或Windows OsType string `json:"os_type"` }
操作系统详情
type QuickImportImageByFileRequestBody ¶
type QuickImportImageByFileRequestBody struct { // 镜像名称 Name string `json:"name"` // 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 Description string `json:"description,omitempty"` // 操作系统版本。使用上传至OBS桶中的外部镜像文件制作镜像时生效 OsVersion string `json:"os_version"` // OBS桶中外部镜像文件地址。在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。格式为<OBS桶名>:<OBS镜像文件名称>。注意:此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。 ImageUrl string `json:"image_url"` // 最小系统盘大小。在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为1至1024GB。 MinDisk int32 `json:"min_disk"` // 镜像标签列表。默认为空。 tags和image_tags只能使用一个。 Tags []string `json:"tags,omitempty"` // 制作的镜像类型。系统盘镜像为ECS/BMS,数据盘镜像为DataImage. 制作数据盘镜像时该参数必选. Type string `json:"type,omitempty"` // 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 镜像的架构类型。取值包括: x86 arm 默认使用“x86”。 Architecture string `json:"architecture,omitempty"` // 操作系统版本。 创建数据盘镜像时该参数必填,取值为Linux或Windows。 OsType string `json:"os_type,omitempty"` // 新规范的镜像标签列表。默认为空。 tags和image_tags只能使用一个。 ImageTags []ResourceTag `json:"image_tags,omitempty"` }
快速通道创建镜像的请求体
type QuotaInfo ¶
type QuotaInfo struct { // 查询的资源类型。 Type string `json:"type"` // 已使用的资源配额。 Used int32 `json:"used"` // 查询出的资源的总配额。 Quota int32 `json:"quota"` // 资源的最小配额。 Min int32 `json:"min"` // 资源的最大配额。 Max int32 `json:"max"` }
quota详细信息
type RegisterImageRequest ¶
type RegisterImageRequest struct { ImageId string `json:"image_id"` Body *RegisterImageRequestBody `json:"body,omitempty"` }
Request Object
type RegisterImageRequestBody ¶
type RegisterImageRequestBody struct { // 源镜像的URL,格式:<bucket>:<file> image_url对应的镜像桶中的文件,镜像文件格式的取值范围为:ZVHD、QCOW2、VHD、RAW、VHDX、QED、VDI、QCOW、ZVHD2、VMDK。 ImageUrl string `json:"image_url"` }
镜像上传请求体
type RegisterImageResponse ¶
type RegisterImageResponse struct { // 异步任务ID。 JobId string `json:"job_id,omitempty"` }
Response Object
type ResourceTag ¶
标签键值
type ShowImageQuotaResponse ¶
type ShowImageQuotaResponse struct {
Quotas *Quota `json:"quotas,omitempty"`
}
Response Object
type ShowJobResponse ¶
type ShowJobResponse struct { // 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。 Status string `json:"status,omitempty"` // 任务ID。 JobId string `json:"job_id,omitempty"` // 任务类型。 JobType string `json:"job_type,omitempty"` // 任务开始执行时间。格式为UTC时间。 BeginTime string `json:"begin_time,omitempty"` // 任务结束时间。格式为UTC时间。 EndTime string `json:"end_time,omitempty"` // 错误码。 ErrorCode string `json:"error_code,omitempty"` // 失败原因。 FailReason string `json:"fail_reason,omitempty"` Entities *JobEntities `json:"entities,omitempty"` }
Response Object
type TagKeyValue ¶
镜像标签
type UpdateImageRequest ¶
type UpdateImageRequest struct { ImageId string `json:"image_id"` Body []UpdateImageRequestBody `json:"body,omitempty"` }
Request Object
type UpdateImageRequestBody ¶
type UpdateImageRequestBody struct { // 操作类型,目前取值为add,replace和remove。 Op string `json:"op"` // 需要更新的属性名称,需要在属性名称前加“/”。 Path string `json:"path"` // 需要更新属性的值。 Value string `json:"value,omitempty"` }
扩展更新镜像接口请求体
type UpdateImageResponse ¶
type UpdateImageResponse struct { // 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空 BackupId string `json:"__backup_id,omitempty"` // 镜像来源。公共镜像为空 DataOrigin string `json:"__data_origin,omitempty"` // 镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。 Description string `json:"__description,omitempty"` // 镜像的存储位置 ImageLocation string `json:"__image_location,omitempty"` // 镜像文件的大小,单位为字节 ImageSize string `json:"__image_size,omitempty"` // 镜像后端存储类型,目前只支持uds ImageSourceType string `json:"__image_source_type,omitempty"` // 镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared Imagetype string `json:"__imagetype,omitempty"` // 是否完成了初始化配置。取值为true或false。如果用户确定完成了初始化配置,则可以设置为true,否 则设置为false。默认为false。 IsConfigInit string `json:"__is_config_init,omitempty"` // 是否是注册过的镜像,取值为“true”或者“false” Isregistered string `json:"__isregistered,omitempty"` // 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空 Originalimagename string `json:"__originalimagename,omitempty"` // 操作系统位数,一般取值为“32”或者“64” OsBit string `json:"__os_bit,omitempty"` // 操作系统类型,目前取值Linux, Windows,Other OsType string `json:"__os_type,omitempty"` // 操作系统具体版本 OsVersion string `json:"__os_version,omitempty"` // 镜像平台分类 Platform string `json:"__platform,omitempty"` // 市场镜像的产品ID Productcode string `json:"__productcode,omitempty"` // 镜像来源表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。 SupportDiskintensive string `json:"__support_diskintensive,omitempty"` // 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。 SupportHighperformance string `json:"__support_highperformance,omitempty"` // 如果镜像支持KVM,取值为true,否则无需增加该属性。 SupportKvm string `json:"__support_kvm,omitempty"` // 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportKvmGpuType string `json:"__support_kvm_gpu_type,omitempty"` // 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。 SupportKvmInfiniband string `json:"__support_kvm_infiniband,omitempty"` // 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性。 SupportLargememory string `json:"__support_largememory,omitempty"` // 如果镜像支持XEN,取值为true,否则无需增加该属性。 SupportXen string `json:"__support_xen,omitempty"` // 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,如果不支持XEN虚拟化下GPU类型,无需添加该属性 。该属性与“__support_xen”和“__support_kvm”属性不共存。 SupportXenGpuType string `json:"__support_xen_gpu_type,omitempty"` // 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen” 和“__support_kvm”属性不共存。 SupportXenHana string `json:"__support_xen_hana,omitempty"` // 表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持 SystemSupportMarket bool `json:"__system_support_market,omitempty"` // 目前暂时不使用 Checksum string `json:"checksum,omitempty"` // 容器类型 ContainerFormat string `json:"container_format,omitempty"` // 创建时间。格式为UTC时间 CreatedAt string `json:"created_at,omitempty"` // 是否是删除的镜像,取值为true或者false Deleted bool `json:"deleted,omitempty"` // 删除时间。格式为UTC时间 DeletedAt string `json:"deleted_at,omitempty"` // 镜像的格式,目前支持vhd,zvhd、raw,qcow2。默认值是vhd DiskFormat string `json:"disk_format,omitempty"` // 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目,取值为UUID,表示属于 该UUID对应的企业项目。 EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // 镜像文件下载和上传链接 File string `json:"file,omitempty"` // 镜像ID Id string `json:"id,omitempty"` // 镜像运行需要的最小磁盘容量,单位为GB。取值为40~1024GB。 MinDisk int32 `json:"min_disk,omitempty"` // 镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,默认设置为0 MinRam int32 `json:"min_ram,omitempty"` // 镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。 Name string `json:"name,omitempty"` // 镜像属于哪个租户 Owner string `json:"owner,omitempty"` // 是否是受保护的,受保护的镜像不允许删除。取值为true或false Protected bool `json:"protected,omitempty"` // 镜像视图 Schema string `json:"schema,omitempty"` // 镜像链接信息 Self string `json:"self,omitempty"` // 目前暂时不使用 Size int32 `json:"size,omitempty"` // 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待 上传镜像文件。saving:表示镜像 正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用 Status string `json:"status,omitempty"` // 镜像标签列表 Tags []string `json:"tags,omitempty"` // 更新时间。格式为UTC时间 UpdatedAt string `json:"updated_at,omitempty"` // 镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取Dat aImage,如果是裸金属服务器镜像,则取值是Ironic VirtualEnvType string `json:"virtual_env_type,omitempty"` // 目前暂时不使用 VirtualSize int32 `json:"virtual_size,omitempty"` // 是否被其他租户可见,取值为private或public Visibility string `json:"visibility,omitempty"` // 镜像架构类型。取值包括: x86 arm Architecture string `json:"architecture,omitempty"` // 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 SupportFcInject string `json:"__support_fc_inject,omitempty"` // 云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。 HwFirmwareType string `json:"hw_firmware_type,omitempty"` // 是否是ARM架构类型的镜像,取值为“true”或者“false”。 SupportArm string `json:"__support_arm,omitempty"` }
Response Object
Source Files
¶
- model_add_or_update_tags_request_body.go
- model_additional_properties.go
- model_batch_add_members_request.go
- model_batch_add_members_request_body.go
- model_batch_add_members_response.go
- model_batch_delete_members_request.go
- model_batch_delete_members_response.go
- model_batch_update_members_request.go
- model_batch_update_members_request_body.go
- model_batch_update_members_response.go
- model_copy_image_cross_region_request.go
- model_copy_image_cross_region_request_body.go
- model_copy_image_cross_region_response.go
- model_copy_image_in_region_request.go
- model_copy_image_in_region_request_body.go
- model_copy_image_in_region_response.go
- model_create_data_image.go
- model_create_data_image_request.go
- model_create_data_image_request_body.go
- model_create_data_image_response.go
- model_create_image_request.go
- model_create_image_request_body.go
- model_create_image_response.go
- model_create_or_update_tags_request.go
- model_create_or_update_tags_response.go
- model_create_whole_image_request.go
- model_create_whole_image_request_body.go
- model_create_whole_image_response.go
- model_export_image_request.go
- model_export_image_request_body.go
- model_export_image_response.go
- model_glance_add_image_member_request.go
- model_glance_add_image_member_request_body.go
- model_glance_add_image_member_response.go
- model_glance_create_image_metadata_request.go
- model_glance_create_image_metadata_request_body.go
- model_glance_create_image_metadata_response.go
- model_glance_create_tag_request.go
- model_glance_create_tag_response.go
- model_glance_delete_image_member_request.go
- model_glance_delete_image_member_response.go
- model_glance_delete_image_request.go
- model_glance_delete_image_request_body.go
- model_glance_delete_image_response.go
- model_glance_delete_tag_request.go
- model_glance_delete_tag_response.go
- model_glance_image_members.go
- model_glance_list_image_member_schemas_request.go
- model_glance_list_image_member_schemas_response.go
- model_glance_list_image_members_request.go
- model_glance_list_image_members_response.go
- model_glance_list_image_schemas_request.go
- model_glance_list_image_schemas_response.go
- model_glance_list_images_request.go
- model_glance_list_images_response.go
- model_glance_show_image_member_request.go
- model_glance_show_image_member_response.go
- model_glance_show_image_member_schemas_request.go
- model_glance_show_image_member_schemas_response.go
- model_glance_show_image_request.go
- model_glance_show_image_response.go
- model_glance_show_image_response_body.go
- model_glance_show_image_schemas_request.go
- model_glance_show_image_schemas_response.go
- model_glance_update_image_member_request.go
- model_glance_update_image_member_request_body.go
- model_glance_update_image_member_response.go
- model_glance_update_image_request.go
- model_glance_update_image_request_body.go
- model_glance_update_image_response.go
- model_image_info.go
- model_image_tag.go
- model_import_image_quick_request.go
- model_import_image_quick_response.go
- model_job_entities.go
- model_links.go
- model_list_images_request.go
- model_list_images_response.go
- model_list_os_versions_request.go
- model_list_os_versions_response.go
- model_list_os_versions_response_body.go
- model_list_tags_request.go
- model_list_tags_response.go
- model_os_version_info.go
- model_quick_import_image_by_file_request_body.go
- model_quota.go
- model_quota_info.go
- model_register_image_request.go
- model_register_image_request_body.go
- model_register_image_response.go
- model_resource_tag.go
- model_show_image_quota_request.go
- model_show_image_quota_response.go
- model_show_job_request.go
- model_show_job_response.go
- model_tag_key_value.go
- model_update_image_request.go
- model_update_image_request_body.go
- model_update_image_response.go