Skip to content

Releases: smartxworks/cloudtower-python-sdk

v2.19.0 release (tower version 4.5.0)

17 Feb 08:04
Compare
Choose a tag to compare

release 日期 2025-02-17

v2.19.0 release (tower version 4.5.0)

breaking change

  • [TaskApi]: [update_task]: descripton 字段由 string 更新为 TaskDescription

feature

  • [BackupPlanApi]: 新增 get_backup_restore_point_metadata API 用于获取备份恢复点元数据;
  • [NtpApi]: 新增 get_ntp_service_url API 用于获取 Ntp 服务 URL;
  • [ClusterApi]: 新增 get_cluster_storage_info API 用于获取集群存储信息;
  • [ObservabilityApi]: 新增 clear_system_service_alert_notification_config API 用于清除系统服务报警信息

optimize

  • [BackupPlanApi]: [create_backup_plan]: 在 incremental_period 为 weekly 时,校验 incremental_weekdays 是否已输入;
  • 为以下资源新增返回字段
    • [BackupPlan]: 新增 vms, phase, last_execute_status_message, last_manual_execute_status_message, backup_restore_point_count,valid_size_of_restore_point, backup_total_size, logical_size,backup_delay_option, delete_strategy,backup_plan_executions 和 backup_restore_points 字段;
    • [NestedVirtualPrivateCloudService]: 新增 internal_cidr 和 tep_ip_pools 字段;
    • [VirtualPrivateCloud]: 新增 vpc_service 字段;
    • [SecurityPolicy]: 新增 is_blocklist 字段;
    • [ContentLibraryVmTemplate]: 新增 vm_disks, vm_nics, clock_offset, cpu, cpu_model, firmware, ha, io_policy, local_created_at, max_bandwidth, max_bandwidth_policy, max_iops, max_iops_policy, template_config, video_type, win_opt 和 zbs_storage_info 字段;
    • [VirtualPrivateCloudExternalSubnets]: 新增 edge_gateway 和 exclusive 字段;
  • [TaskApi]: [create_task], [update_task]: 支持传入 started_at 和 finished_at 字段;

bugfix

  • [IscsiLunApi]: [copy_iscsi_lun]: 修复跨集群克隆 iscsi lun 失败;
  • [ObservabilityApi]: [disassociate_system_service_from_obs_service]: 修复解除关系错误时无法正确返回错误信息。

v2.18.0 release (tower version 4.4.0)

14 Oct 08:55
Compare
Choose a tag to compare

release 日期 2024-10-14

v2.18.0 release (tower version 4.4.0)

feature

  • [VmApi]: [create_vm_from_content_library_template_batch]: 支持批量通过内容库模板创建虚拟机
  • 新增备份相关 API
    • [BackupPlanExecutionApi] 备份计划执行记录 API
    • [BackupPlanApi] 备份计划管理 API
    • [BackupRestoreExecutionApi] 备份计划恢复点执行记录 API
    • [BackupRestorePointApi] 备份计划恢复点管理 API
    • [BackupServiceApi] 备份服务 API
    • [BackupStoreRepositoryApi] 备份存储库 API
    • [BackupTargetExecutionApi] 备份虚拟机执行记录 API

optimize

  • [VmApi]: [install_vm_tools]: 优化虚拟机镜像挂载,现在无需输入虚拟机工具镜像 ID 即可挂载
  • [LogCollectionApi]: [force_stop_log_collection]: 优化执行,不再会将日志收集任务置为失败
  • [ContentLanguage]: 支持配置为 * 以同时返回所有支持的语言,返回值依旧是 string 类型,可以被 JSON 序列化为语言和实际值的键值对
  • [SecurityPolicyApi] 支持配置 alg_protocol
  • [HostApi]: [create_host]: 支持添加主机时配置主机账户密码
  • [SecurityPolicyIngressEgressInput]: 新增 type 字段以支持配置全部流量

bugfix

  • [SecurityGroupApi]: [update_security_group]: 修复无法正确更新安全组名称与描述

v2.13.1 release (tower version 3.4.4)

10 Oct 07:22
Compare
Choose a tag to compare

release 日期 2024-10-10

v2.13.1 release (tower version 3.4.4)

update

  • 新增 [image_utils] 工具类,支持通过 uploadTask 来获取上传后的 elfImage 与 contentLibraryImage
  • [VmApi]: [create_vm_from_content_library_template_batch]: 支持批量通过内容库模板创建虚拟机

bugfix

  • [utils]: 移除代码中的 type annotation 以支持 python2
  • pick 4.0.0 ~ 4.3.0 上修复的已有 api 的 bugfix,详见 master 分支的 release_note

v2.17.dev1

02 Sep 10:02
Compare
Choose a tag to compare
v2.17.dev1 Pre-release
Pre-release
v2.17.1.dev1

update to v2.17.1.dev1

v2.17.0 release (tower version 4.3.0)

21 Aug 10:36
Compare
Choose a tag to compare

release 日期 2024-08-21

v2.17.0 release (tower version 4.3.0)

feature

  • 新增 VPC 相关 API
    • [VirtualPrivateCloudApi] VPC 服务管理
    • [VirtualPrivateCloudClusterBindingApi] VPC 服务与集群关联关系
    • [VirtualPrivateCloudExternalSubnetApi] VPC 网络外部子网
    • [VirtualPrivateCloudFloatingIpApi] VPC 网络浮动 IP 管理
    • [VirtualPrivateCloudNatGatewayApi] VPC 网络 NAT 网关管理
    • [VirtualPrivateCloudRouterGatewayApi] VPC 网络路由网关管理
    • [VirtualPrivateCloudRouteTableApi] VPC 网络路由表管理
    • [VirtualPrivateCloudSecurityGroupApi] VPC 网络安全组管理
    • [VirtualPrivateCloudSecurityPolicyApi] VPC 网络安全策略管理
    • [VirtualPrivateCloudSubnetApi] VPC 子网管理
  • [VmApi]: [update_vm_nic_vpc]: 更新虚拟机的 VPC 网卡

update

  • [ContentLibraryImage]: 新增 iscsi_luns 字段,用于记录分发至存算分离节点中的镜像的 lun 。
  • [ContentLibraryImageApi]: []支持使用 iscsi_luns 进行搜索
  • [VmApi]:
    • [create_vm], [create_vm_from_content_library_template], [create_vm_from_template], [clone_vm], [rebuild_vm_from_snapshot] 支持配置虚拟机的 VPC 网卡
    • [add_vm_nic], [update_vm_nic] 支持配置 VPC 网卡

bugfix

  • [VmApi]: [update_vm_disk], [add_vm_disk], [expand_vm_disk], [remove_vm_disk], [add_vm_cd_rom], [remove_vm_cd_rom], [eject_iso_from_vm_cd_rom], [toggle_vm_cd_rom_disable]: 修复被修改虚拟机的虚拟盘会丢失限速设置以及 cdrom 的禁用的问题
  • [vmApi]: [create_vm_from_content_library_template]: 修复当内容库模板仅分发在存算分离的集群时,无法创建虚拟机的问题。

v2.16.0 release (tower version 4.2.0)

16 Jul 08:05
Compare
Choose a tag to compare

release 日期 2024-07-16

v2.16.0 release (tower version 4.2.0)

bugfix

  • [utils]: 移除代码中的 type annotation 以支持 python2
  • [VmApi], [VmVolumeApi],[ContentLIbraryVmTemplateApi]:
    • 移除 [export_content_library_vm_template], [import_content_library_vm_template], [export_vm_volume], [import_vm_volume], [update_vm_nic_qos_option], [get_vm_vnc_info] 被错误增加必须的 content-language 参数

update

  • [HostApi]:
    • [create_host]: 新增 vdses 字段适配网络融合,新增 zbsSpec 字段适配 zbs 560 以上版本集群的添加
  • [VmApi]:
    • [get_vms]: 新增 bios_uuid 字段
  • 新增 [image_utils] 工具类,支持通过 uploadTask 来获取上传后的 elfImage 与 contentLibraryImage

v2.15.1 release (tower version 4.1.0)

30 May 11:42
Compare
Choose a tag to compare

release 日期 2024-05-30

v2.15.1 release (tower version 4.1.0)

bugfix

  • [Vm], [VmVolume], [IscsiLun], [NvmfNameSpace], [NfsInode]: 更新 unique_logical_size 类型为 double

v2.15.0 release (tower version 4.1.0)

11 May 10:17
Compare
Choose a tag to compare

release 日期 2024-05-11

v2.15.0 release (tower version 4.1.0)

update

  • [CommonHeader]: 新增默认返回 Header 类
  • [ContentLanguage]: 新增枚举规范返回语言,用于设置请求头的 content-language
  • [NestedLabel], [LabelApi]: LabelApi 将会返回一致的 Label 相关的属性,NestedLabel 额外返回 keyvalue
  • [Vm], [VmVolume], [IscsiLun], [NvmfNameSpace], [NfsInode]: 新增返回 unique_logical_size 用于表示资源的独占逻辑容量

bugfix

  • [VmApi]
    • [add_vm_Nic], [remove_vm_nic], [remove_vm_nic_by_where], [update_vm_nic], [update_vm_nic_basic_info], [update_vm_nic_advance_info], [update_vm_nic_qos_option]: 修复更新虚拟机网卡类 API 编辑后丢失部分网卡信息的问题
  • [VmPlacementGroupApi]
    • [create_vm_placement_group], [update_vm_placement_group]: 修复了创建与更新放置组时,vm_vm_policy_enabled 为 false 时无法更新组内虚拟机成员

v2.14.2 release (tower version 4.0.0)

09 Jan 06:00
Compare
Choose a tag to compare

release 日期 2024-01-09

v2.14.2 release (tower version 4.0.0)

bugfix

  • [Utils]: 修复错误的 ldap 登陆

v2.14.1 release (tower version 4.0.0)

09 Jan 05:41
Compare
Choose a tag to compare

release 日期 2024-01-09

v2.14.1 release (tower version 4.0.0)

bugfix

  • [VmVolumeElfStoragePolicyType]: 修复错误的枚举类型