# PublicFile

> **Package : spaceone.api.file\_manager.v1**

\
\


## PublicFile

**PublicFile Methods:**

| Method                                                                                                                                          | Request                                                                                                                                                 | Response                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [**add**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#add)                             | [CreatePublicFileRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#createpublicfilerequest) | [PublicFileInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfileinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#update)                       | [UpdatePublicFileRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#updatepublicfilerequest) | [PublicFileInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfileinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#delete)                       | [PublicFileRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilerequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#empty)                     |
| [**get\_download\_url**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#get_download_url) | [PublicFileRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilerequest)             | [PublicFileInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfileinfo)   |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#get)                             | [PublicFileRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilerequest)             | [PublicFileInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfileinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#list)                           | [PublicFileSearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilesearchquery)     | [PublicFilesInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilesinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#stat)                           | [PublicFileStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#publicfilestatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/file_manager/v1/PublicFile/README.md#struct)                   |

\


### add

> **POST** /file-manager/v1/public-file/add

\


### update

> **POST** /file-manager/v1/public-file/update

\


### delete

> **POST** /file-manager/v1/public-file/delete

\


### get\_download\_url

> **POST** /file-manager/v1/public-file/get-download-url

\


### get

> **POST** /file-manager/v1/public-file/get

\


### list

> **POST** /file-manager/v1/public-file/list

\


### stat

> **POST** /file-manager/v1/public-file/stat

\
\


## Message

### CreatePublicFileRequest

* **name** (string) `Required`
* **tags** (Struct)
*   **reference** (PublicFileReference)

    \


### PublicFileInfo

* **public\_file\_id** (string) `Required`
* **name** (string) `Required`
* **state** (PublicFileState) `Required`
* **file\_type** (string) `Required`
* **upload\_url** (string) `Required`
* **upload\_options** (Struct) `Required`
* **download\_url** (string) `Required`
* **tags** (Struct) `Required`
* **reference** (PublicFileReference) `Required`
*   **created\_at** (string) `Required`

    \


### PublicFileReference

* **resource\_type** (string) `Required`
*   **resource\_id** (string) `Required`

    \


### PublicFileRequest

*   **public\_file\_id** (string) `Required`

    \


### PublicFileSearchQuery

* **query** (Query)
* **public\_file\_id** (string)
* **name** (string)
* **state** (PublicFileState)
* **file\_type** (string)
* **resource\_type** (string)
*   **resource\_id** (string)

    \


### PublicFileStatQuery

* **query** (StatisticsQuery) `Required`
*   **domain\_id** (string) `Required`

    \


### PublicFilesInfo

* **results** (PublicFileInfo) `Repeated` `Required`
*   **total\_count** (int32) `Required`

    \


### UpdatePublicFileRequest

* **public\_file\_id** (string) `Required`
* **tags** (Struct)
*   **reference** (PublicFileReference)

    \
