openstack.shared_file_system.v2.share_instance¶
ShareInstance 类¶
ShareInstance 类继承自 Resource。
- class openstack.shared_file_system.v2.share_instance.ShareInstance(_synchronized=False, connection=None, **attrs)¶
基础资源
- 参数:
_synchronized (bool) – 这不打算直接使用。请参阅
new()和existing()。connection (openstack.connection.Connection) – 对正在使用的 Connection 的引用。默认为 None,允许在单元测试中等情况下使用不带活动 Connection 的 Resource 对象。Resource 代码中对
self._connection的使用应使用 None 检查进行保护。
- resource_key = 'share_instance'¶
资源的单数形式的键。
- resources_key = 'share_instances'¶
资源的复数形式的键。
- base_path = '/share_instances'¶
此资源的 URI 的基本部分。
- allow_create = False¶
允许对此资源进行创建操作。
- allow_fetch = True¶
允许对此资源进行获取操作。
- allow_commit = False¶
允许对此资源进行更新操作。
- allow_delete = False¶
允许对此资源进行删除操作。
- allow_list = True¶
允许对此资源进行列表操作。
- allow_head = False¶
允许对此资源进行 head 操作。
- access_rules_status¶
属性 Share instance 的访问规则状态。有效值为 active、error 或 syncing。
- availability_zone¶
Share 存在的可用区名称。
- cast_rules_to_readonly¶
如果 share instance 的 cast_rules_to_readonly 属性设置为 True,则所有现有的访问规则都将转换为只读。
- created_at¶
资源在服务数据库中创建的日期和时间戳。
- host¶
资源所包含的服务后端的主机名。
- progress¶
共享创建的进度。
- replica_state¶
Share 副本状态。只有在使用复制时才具有设置值。可能的取值列表:active、in_sync、out_of_sync、error
- share_id¶
Share instance 所属 share 的 UUID。
- share_network_id¶
资源导出到的共享网络 ID。
- share_server_id¶
共享服务器的 UUID。
- status¶
Share 或 share instance 的状态。
- reset_status(session, reset_status)¶
将 share instance 重置为给定的状态
- force_delete(session)¶
强制删除 share instance