ironicclient.v1.resource_fields 模块

class ironicclient.v1.resource_fields.Resource(field_ids, sort_excluded=None, override_labels=None)[source]

基类: object

Resource 类

此类用于管理资源(例如 Chassis、Node、Port)包含的各种字段。单个字段由“field_id”(键)和“label”(值)组成。调用者在实例化对象时仅提供“field_ids”。

“field_ids”的顺序将按照调用者指定的顺序保留。

它还提供了在用于排序时排除其中一些字段的能力。

FIELDS = {'actions': '操作', 'address': '地址', 'alive': '存活', 'allocation_uuid': '分配 UUID', 'allowable_values': '允许值', 'async': '异步', 'attach': '响应是附件', 'attribute_type': '属性类型', 'automated_clean': '自动清理', 'bios_interface': 'BIOS 接口', 'boot_index': '启动索引', 'boot_interface': '启动接口', 'boot_mode': '启动模式', 'candidate_nodes': '候选节点', 'chassis_uuid': '机箱 UUID', 'children': '子节点', 'clean_step': '清理步骤', 'conditions': '条件', 'conductor': '调度器', 'conductor_group': '调度器组', 'connector_id': '连接器 ID', 'console_enabled': '控制台启用', 'console_interface': '控制台接口', 'count': '计数', 'created_at': '创建时间', 'default_bios_interface': '默认 BIOS 接口', 'default_boot_interface': '默认启动接口', 'default_console_interface': '默认控制台接口', 'default_deploy_interface': '默认部署接口', 'default_firmware_interface': '默认固件接口', 'default_inspect_interface': '默认检查接口', 'default_management_interface': '默认管理接口', 'default_network_interface': '默认网络接口', 'default_power_interface': '默认电源接口', 'default_raid_interface': '默认 RAID 接口', 'default_rescue_interface': '默认救援接口', 'default_storage_interface': '默认存储接口', 'default_vendor_interface': '默认厂商接口', 'deploy_interface': '部署接口', 'deploy_step': '部署步骤', 'description': '描述', 'disable_power_off': '禁用关机', 'driver': '驱动程序', 'driver_info': '驱动程序信息', 'driver_internal_info': '驱动程序内部信息', 'drivers': '驱动程序', 'enabled_bios_interfaces': '启用 BIOS 接口', 'enabled_boot_interfaces': '启用启动接口', 'enabled_console_interfaces': '启用控制台接口', 'enabled_deploy_interfaces': '启用部署接口', 'enabled_firmware_interfaces': '启用固件接口', 'enabled_inspect_interfaces': '启用检查接口', 'enabled_management_interfaces': '启用管理接口', 'enabled_network_interfaces': '启用网络接口', 'enabled_power_interfaces': '启用电源接口', 'enabled_raid_interfaces': '启用 RAID 接口', 'enabled_rescue_interfaces': '启用救援接口', 'enabled_storage_interfaces': '启用存储接口', 'enabled_vendor_interfaces': '启用厂商接口', 'event': '事件描述', 'event_type': '事件来源类型', 'extra': '附加信息', 'fault': '故障', 'firmware_interface': '固件接口', 'hostname': '主机名', 'hosts': '活动主机', 'http_methods': '支持的 HTTP 方法', 'id': 'ID', 'inspect_interface': '检查接口', 'inspection_finished_at': '检查完成时间', 'inspection_started_at': '检查开始时间', 'instance_info': '实例信息', 'instance_uuid': '实例 UUID', 'internal_info': '内部信息', 'is_smartnic': '是否是 Smart NIC 端口', 'last_error': '上次错误', 'lessee': '承租人', 'local_link_connection': '本地链路连接', 'lower_bound': '下限', 'maintenance': '维护', 'maintenance_reason': '维护原因', 'management_interface': '管理接口', 'max_length': '最大长度', 'min_length': '最小长度', 'mode': '模式', 'name': '名称', 'network_data': '网络配置', 'network_interface': '网络接口', 'node_uuid': '节点 UUID', 'owner': '所有者', 'parent_node': '父节点', 'phase': '阶段', 'physical_network': '物理网络', 'portgroup_uuid': '端口组 UUID', 'power_interface': '电源接口', 'power_state': '电源状态', 'priority': '优先级', 'properties': '属性', 'protected': '保护', 'protected_reason': '保护原因', 'provision_state': '配置状态', 'provision_updated_at': '配置更新时间', 'public': '公开', 'pxe_enabled': 'PXE 启动启用', 'raid_config': '当前 RAID 配置', 'raid_interface': 'RAID 接口', 'read_only': '只读', 'rescue_interface': '救援接口', 'reservation': '预留', 'reset_required': '需要重置', 'resource_class': '资源类', 'retired': '已退役', 'retired_reason': '退役原因', 'secure_boot': '安全启动', 'sensitive': '敏感', 'severity': '严重性', 'standalone_ports_supported': '支持独立端口', 'state': '状态', 'steps': '步骤', 'storage_interface': '存储接口', 'target_power_state': '目标电源状态', 'target_provision_state': '目标配置状态', 'target_raid_config': '目标 RAID 配置', 'traits': '特性', 'type': '类型', 'unique': '唯一', 'updated_at': '更新时间', 'upper_bound': '上限', 'user': '用户', 'uuid': 'UUID', 'value': '值', 'vendor_interface': '厂商接口', 'volume_id': '卷 ID', 'volume_type': '驱动程序卷类型'}
property fields
property labels
property sort_fields
property sort_labels