# Public Dashboard

> **Package : spaceone.api.cost\_analysis.v1**

## PublicDashboard

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

| Method                | Request                                                       | Response                                                                                                           |
| --------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [**create**](#create) | [CreatePublicDashboardRequest](#createpublicdashboardrequest) | [PublicDashboardInfo](#publicdashboardinfo)                                                                        |
| [**update**](#update) | [UpdatePublicDashboardRequest](#updatepublicdashboardrequest) | [PublicDashboardInfo](#publicdashboardinfo)                                                                        |
| [**delete**](#delete) | [PublicDashboardRequest](#publicdashboardrequest)             | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto)   |
| [**get**](#get)       | [GetPublicDashboardRequest](#getpublicdashboardrequest)       | [PublicDashboardInfo](#publicdashboardinfo)                                                                        |
| [**list**](#list)     | [PublicDashboardQuery](#publicdashboardquery)                 | [PublicDashboardsInfo](#publicdashboardsinfo)                                                                      |
| [**stat**](#stat)     | [PublicDashboardStatQuery](#publicdashboardstatquery)         | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |

### create

> **POST** /cost-analysis/v1/public-dashboards

| Type     | Message                                                       |
| -------- | ------------------------------------------------------------- |
| Request  | [CreatePublicDashboardRequest](#createpublicdashboardrequest) |
| Response | [PublicDashboardInfo](#publicdashboardinfo)                   |

### update

> **PUT** /cost-analysis/v1/public-dashboard/{public\_dashboard\_id}

| Type     | Message                                                       |
| -------- | ------------------------------------------------------------- |
| Request  | [UpdatePublicDashboardRequest](#updatepublicdashboardrequest) |
| Response | [PublicDashboardInfo](#publicdashboardinfo)                   |

### delete

> **DELETE** /cost-analysis/v1/public-dashboard/{public\_dashboard\_id}

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

### get

> **GET** /cost-analysis/v1/public-dashboard/{public\_dashboard\_id}

| Type     | Message                                                 |
| -------- | ------------------------------------------------------- |
| Request  | [GetPublicDashboardRequest](#getpublicdashboardrequest) |
| Response | [PublicDashboardInfo](#publicdashboardinfo)             |

### list

> **GET** /cost-analysis/v1/public-dashboards
>
> **POST** /cost-analysis/v1/public-dashboards/search

| Type     | Message                                       |
| -------- | --------------------------------------------- |
| Request  | [PublicDashboardQuery](#publicdashboardquery) |
| Response | [PublicDashboardsInfo](#publicdashboardsinfo) |

### stat

> **POST** /cost-analysis/v1/public-dashboards/stat

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

##

## Message

### CreatePublicDashboardRequest

| Field               | Type                                                                                                               | Required | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------------ | -------- | ----------- |
| name                | string                                                                                                             | ✔        |             |
| default\_layout\_id | string                                                                                                             | ✘        |             |
| custom\_layouts     | [google.protobuf.ListValue](https://developers.google.com/protocol-buffers/docs/reference/overview)                | ✘        |             |
| default\_filter     | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) | ✘        |             |
| period\_type        | <ul><li>NONE</li><li>AUTO</li><li>FIXED</li></ul>                                                                  | ✘        |             |
| period              | [PublicDashboardPeriod](#publicdashboardperiod)                                                                    | ✘        |             |
| tags                | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) | ✘        |             |
| domain\_id          | string                                                                                                             | ✔        |             |

### GetPublicDashboardRequest

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

### PublicDashboardInfo

| Field                 | Type                                                                                                               | Description |
| --------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| public\_dashboard\_id | string                                                                                                             |             |
| name                  | string                                                                                                             |             |
| default\_layout\_id   | string                                                                                                             |             |
| custom\_layouts       | [google.protobuf.ListValue](https://developers.google.com/protocol-buffers/docs/reference/overview)                |             |
| default\_filter       | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| period\_type          | <ul><li>NONE</li><li>AUTO</li><li>FIXED</li></ul>                                                                  |             |
| period                | [PublicDashboardPeriod](#publicdashboardperiod)                                                                    |             |
| tags                  | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) |             |
| domain\_id            | string                                                                                                             |             |
| created\_at           | string                                                                                                             |             |
| updated\_at           | string                                                                                                             |             |

### PublicDashboardPeriod

| Field | Type   | Description |
| ----- | ------ | ----------- |
| start | string |             |
| end   | string |             |

### PublicDashboardQuery

| Field                 | Type                                                                                               | Required | Description |
| --------------------- | -------------------------------------------------------------------------------------------------- | -------- | ----------- |
| query                 | [spaceone.api.core.v1.Query](https://spaceone-dev.gitbook.io/api-reference/common-v1/search-query) | ✘        |             |
| public\_dashboard\_id | string                                                                                             | ✘        |             |
| name                  | string                                                                                             | ✘        |             |
| period\_type          | <ul><li>NONE</li><li>AUTO</li><li>FIXED</li></ul>                                                  | ✘        |             |
| domain\_id            | string                                                                                             | ✔        |             |

### PublicDashboardRequest

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

### PublicDashboardStatQuery

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

### PublicDashboardsInfo

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

### UpdatePublicDashboardRequest

| Field                 | Type                                                                                                               | Required | Description |
| --------------------- | ------------------------------------------------------------------------------------------------------------------ | -------- | ----------- |
| public\_dashboard\_id | string                                                                                                             | ✔        |             |
| name                  | string                                                                                                             | ✘        |             |
| default\_layout\_id   | string                                                                                                             | ✘        |             |
| custom\_layouts       | [google.protobuf.ListValue](https://developers.google.com/protocol-buffers/docs/reference/overview)                | ✘        |             |
| default\_filter       | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) | ✘        |             |
| period\_type          | <ul><li>NONE</li><li>AUTO</li><li>FIXED</li></ul>                                                                  | ✘        |             |
| period                | [PublicDashboardPeriod](#publicdashboardperiod)                                                                    | ✘        |             |
| tags                  | [google.protobuf.Struct](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/struct.proto) | ✘        |             |
| domain\_id            | string                                                                                                             | ✔        |             |


---

# Agent Instructions: 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:

```
GET https://spaceone-dev.gitbook.io/spaceone-apis/cost_analysis/v1/public-dashboard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
