/** * 配置中心 webconsole-iaas iaas-instance */ export interface IaasInstanceConfig { /** * 最大数量 */ max_count: number; /** * cpu过滤可选项 */ cpu_filters: number[]; /** * 内存过滤可选项 */ memory_filters: number[]; /** * 默认登陆方式 */ default_login_type: 'passwd' | 'keypair'; /** * bm1不显示系统盘 */ unsupport_bm1_os_disk?: boolean; /** * 标签背景色 */ tag_background?: { tag: string; background: string; }[]; /** * 系统盘大小 */ os_disk_size: Record<'windows' | 'linux' | 'unix', { min: number; max: number; step: number; default: number; }>; /** * 规格的副本数量(系统盘) */ support_repl_count_classes: { /** * 当前规格 */ instance_class: number; /** * 副本数量可选项 */ repl_counts: number[]; /** * 默认副本数量 */ default_repl_count: number; }[]; /** * 支持的最大数据盘数量 */ max_volume_count: number; /** * 支持的最大附加网卡数量 */ max_nic_count: number; /** * 创建eip时默认的带宽 */ default_eip_bandwidth: number; /** * 规格列表是否显示带宽 */ show_instance_bandwidth: boolean; /** * 创建eip时默认的eip组 */ default_eip_group?: { default: string; /** * 不同区域的配置 */ zones?: { /** * 区域 */ zone: string; /** * 当前区域的eip组 */ eip_group: string; }[]; }; /** * 是否支持调整cpu拓扑结构 */ support_cpu_topology?: boolean; /** * 默认的cpu拓扑结构规则 */ default_cpu_topology_rule?: 'cpu * 1 * 1' | '1 * cpu * 1' | '1 * 1 * cpu'; } /** * @deprecated 请使用 window.IAAS?.instance * @returns */ export declare const useIaasInstanceConfig: () => { data: IaasInstanceConfig | undefined; };