> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/zh/tenants/sharing-files-to-tenants.md).

# 向租户共享文件

## 概述

{% hint style="info" %}
**要点**

* 服务提供商可以与租户共享文件
* 文件必须已经上传到 vSAN
* 流程快捷，并使用分支命令
  {% endhint %}

本文将指导服务提供商在 VergeOS 系统中与租户共享文件，例如媒体图像。此功能使租户能够访问其自己内部的特定文件 *文件* 部分。

## 前提条件

* 以服务提供商身份访问 VergeOS 系统
* 已上传到 vSAN 的文件
* 系统中现有的租户

## 步骤

1. 进入租户仪表板
   * 在顶部菜单中选择“租户”
2. 访问租户列表
   * 选择“列表”以查看所有租户的列表
3. 选择所需的租户
   * 双击您想与之共享文件的租户
4. 访问添加文件功能
   * 在左侧菜单中选择“添加文件”
5. 选择文件类型
   * 从下拉列表中选择文件类型

{% hint style="info" %}
**提示**

选择“全部”可查看所有可用文件的列表，无论类型如何。这将包括来自父级 VDC 的 .raw 文件（虚拟机磁盘镜像）。
{% endhint %}

6. 选择特定文件
   * 从下拉列表中选择您要共享的特定文件
7. 提交更改
   * 点击页面底部的提交按钮
8. 确认
   * 由于是通过分支命令完成，该过程几乎是即时的
   * 该文件现在可供租户在其自己的 *文件* 部分中使用

## 故障排除

{% hint style="warning" %}
**常见问题**

* 问题：文件未显示在租户的 *文件* 部分中使用
  * 解决方案：
    1. 验证该文件是否已成功上传
    2. 检查是否选择了正确的文件类型
    3. 确保更改已正确提交
* 问题：无法选择特定文件
  * 解决方案：
    1. 确认该文件存在于 *文件* 部分中使用
    2. 尝试在文件类型下拉菜单中选择“全部”，查看该文件是否出现
       {% endhint %}

## 其他资源

* [了解 VergeOS 中的 vSAN](/run-the-platform/storage/vsan-architecture.md)
* [管理租户](/run-the-platform/tenants/create-tenants.md)
* [上传文件](/run-the-platform/storage/uploading-files-to-vsan.md)

## 反馈

{% hint style="info" %}
**需要帮助吗？**

如果您在向租户共享文件时遇到任何问题，或对此流程有任何疑问，请随时联系我们的支持团队。
{% endhint %}

***

{% hint style="info" %}
**文档信息**

* 最后更新：2023-08-24
* VergeOS 版本：4.12.6
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/knowledge-base/zh/tenants/sharing-files-to-tenants.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
