> For the complete documentation index, see [llms.txt](https://spaceone-dev.gitbook.io/spaceone-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spaceone-dev.gitbook.io/spaceone-apis/statistics/v1/storage.md).

# Storage

> **Package : spaceone.api.statistics.v1**

## Storage

{% hint style="info" %}
**Storage Methods:**
{% endhint %}

| Method                               | Request                                                   | Response                                                                                                           |
| ------------------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [**register**](#register)            | [RegisterStorageRequest](#registerstoragerequest)         | [StorageInfo](#storageinfo)                                                                                        |
| [**update**](#update)                | [UpdateStorageRequest](#updatestoragerequest)             | [StorageInfo](#storageinfo)                                                                                        |
| [**update\_plugin**](#update_plugin) | [UpdateStoragePluginRequest](#updatestoragepluginrequest) | [StorageInfo](#storageinfo)                                                                                        |
| [**verify\_plugin**](#verify_plugin) | [StorageRequest](#storagerequest)                         | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto)   |
| [**enable**](#enable)                | [StorageRequest](#storagerequest)                         | [StorageInfo](#storageinfo)                                                                                        |
| [**disable**](#disable)              | [StorageRequest](#storagerequest)                         | [StorageInfo](#storageinfo)                                                                                        |
| [**deregister**](#deregister)        | [StorageRequest](#storagerequest)                         | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto)   |
| [**get**](#get)                      | [GetStorageRequest](#getstoragerequest)                   | [StorageInfo](#storageinfo)                                                                                        |
| [**list**](#list)                    | [StorageQuery](#storagequery)                             | [StoragesInfo](#storagesinfo)                                                                                      |
| [**stat**](#stat)                    | [StorageStatQuery](#storagestatquery)                     | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |

### register

> **POST** /statistics/v1/storages

| Type     | Message                                           |
| -------- | ------------------------------------------------- |
| Request  | [RegisterStorageRequest](#registerstoragerequest) |
| Response | [StorageInfo](#storageinfo)                       |

### update

> **PUT** /statistics/v1/storage/{storage\_id}

| Type     | Message                                       |
| -------- | --------------------------------------------- |
| Request  | [UpdateStorageRequest](#updatestoragerequest) |
| Response | [StorageInfo](#storageinfo)                   |

### update\_plugin

> **PUT** /spot-automation/v1/storage/{storage\_id}/plugin

| Type     | Message                                                   |
| -------- | --------------------------------------------------------- |
| Request  | [UpdateStoragePluginRequest](#updatestoragepluginrequest) |
| Response | [StorageInfo](#storageinfo)                               |

### verify\_plugin

> **POST** /spot-automation/v1/storage/{storage\_id}/plugin/verify

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [StorageRequest](#storagerequest)                                                                                |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

### enable

> **PUT** /statistics/v1/storage/{schedule\_id}/enable

| Type     | Message                           |
| -------- | --------------------------------- |
| Request  | [StorageRequest](#storagerequest) |
| Response | [StorageInfo](#storageinfo)       |

### disable

> **PUT** /statistics/v1/storage/{schedule\_id}/disable

| Type     | Message                           |
| -------- | --------------------------------- |
| Request  | [StorageRequest](#storagerequest) |
| Response | [StorageInfo](#storageinfo)       |

### deregister

> **DELETE** /statistics/v1/storage/{schedule\_id}

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [StorageRequest](#storagerequest)                                                                                |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

### get

> **GET** /statistics/v1/storage/{schedule\_id}

| Type     | Message                                 |
| -------- | --------------------------------------- |
| Request  | [GetStorageRequest](#getstoragerequest) |
| Response | [StorageInfo](#storageinfo)             |

### list

> **GET** /statistics/v1/storages
>
> **POST** /statistics/v1/storages/search

| Type     | Message                       |
| -------- | ----------------------------- |
| Request  | [StorageQuery](#storagequery) |
| Response | [StoragesInfo](#storagesinfo) |

### stat

> **POST** /statistics/v1/storages/stat

| Type     | Message                                                                                                            |
| -------- | ------------------------------------------------------------------------------------------------------------------ |
| Request  | [StorageStatQuery](#storagestatquery)                                                                              |
| Response | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |

##

## Message

### GetStorageRequest

| Field       | Type           | Required | Description |
| ----------- | -------------- | :------: | ----------- |
| storage\_id | string         |     ✔    |             |
| domain\_id  | string         |     ✔    |             |
| only        | list of string |     ✘    |             |

### PluginInfo

| Field      | Type                                                                                                               | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| plugin\_id | string                                                                                                             |             |
| version    | string                                                                                                             |             |
| options    | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| secret\_id | string                                                                                                             |             |
| metadata   | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |

### PluginRequest

| Field        | Type                                                                                                               | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| plugin\_id   | string                                                                                                             |             |
| version      | string                                                                                                             |             |
| options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| secret\_data | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| schema       | string                                                                                                             |             |

### RegisterStorageRequest

| Field        | Type                                                                                                               | Required | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| name         | string                                                                                                             |     ✔    |             |
| plugin\_info | [PluginRequest](#pluginrequest)                                                                                    |     ✘    |             |
| tags         | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✘    |             |
| user\_id     | string                                                                                                             |     ✔    |             |
| domain\_id   | string                                                                                                             |     ✔    |             |

### StorageInfo

| Field        | Type                                                                                                               | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| storage\_id  | string                                                                                                             |             |
| name         | string                                                                                                             |             |
| state        | <ul><li>NONE</li><li>ENABLED</li><li>DISABLED</li></ul>                                                            |             |
| options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| capability   | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| plugin\_info | [PluginInfo](#plugininfo)                                                                                          |             |
| tags         | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| user\_id     | string                                                                                                             |             |
| domain\_id   | string                                                                                                             |             |
| created\_at  | string                                                                                                             |             |

### StorageQuery

| Field       | Type                                                                                               | Required | Description |
| ----------- | -------------------------------------------------------------------------------------------------- | :------: | ----------- |
| query       | [spaceone.api.core.v1.Query](https://spaceone-dev.gitbook.io/api-reference/common-v1/search-query) |     ✘    |             |
| storage\_id | string                                                                                             |     ✘    |             |
| name        | string                                                                                             |     ✘    |             |
| state       | string                                                                                             |     ✘    |             |
| user\_id    | string                                                                                             |     ✘    |             |
| domain\_id  | string                                                                                             |     ✔    |             |

### StorageRequest

| Field       | Type   | Required | Description |
| ----------- | ------ | :------: | ----------- |
| storage\_id | string |     ✔    |             |
| domain\_id  | string |     ✔    |             |

### StorageStatQuery

| Field      | Type                                                                                                             | Required | Description |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | :------: | ----------- |
| query      | [spaceone.api.core.v1.StatisticsQuery](https://spaceone-dev.gitbook.io/api-reference/common-v1/statistics-query) |     ✔    |             |
| domain\_id | string                                                                                                           |     ✔    |             |

### StoragesInfo

| Field        | Type                                                                                            | Description |
| ------------ | ----------------------------------------------------------------------------------------------- | ----------- |
| results      | [list of StorageInfo](#storageinfo)                                                             |             |
| total\_count | [int32](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/type.proto) |             |

### UpdateStoragePluginRequest

| Field        | Type                                                                                                               | Required | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| storage\_id  | string                                                                                                             |     ✔    |             |
| version      | string                                                                                                             |     ✘    |             |
| options      | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✘    |             |
| secret\_data | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✘    |             |
| domain\_id   | string                                                                                                             |     ✔    |             |

### UpdateStorageRequest

| Field       | Type                                                                                                               | Required | Description |
| ----------- | ------------------------------------------------------------------------------------------------------------------ | :------: | ----------- |
| storage\_id | string                                                                                                             |     ✔    |             |
| name        | string                                                                                                             |     ✘    |             |
| tags        | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |     ✘    |             |
| domain\_id  | string                                                                                                             |     ✔    |             |


---

# 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://spaceone-dev.gitbook.io/spaceone-apis/statistics/v1/storage.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.
