# Namespace

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

\
\


## Namespace

**Namespace Methods:**

| Method                                                                                                                | Request                                                                                                                                           | Response                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#create) | [CreateNamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#createnamespacerequest) | [NamespaceInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespaceinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#update) | [UpdateNamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#updatenamespacerequest) | [NamespaceInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespaceinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#delete) | [NamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacerequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#empty)                   |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#get)       | [NamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacerequest)             | [NamespaceInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespaceinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#list)     | [NamespaceQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacequery)                 | [NamespacesInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacesinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#stat)     | [NamespaceStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacestatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#struct)                 |

\


### create

> **POST** /inventory/v1/namespace/create

\{{< tabs " create " >\}}

\{{< tab "Request Example" >\}}

[CreateNamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#createnamespacerequest)

* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **namespace\_id** (string)
* **group** (string)
* **icon** (string)
* **tags** (Struct)
* **workspace\_id** (string)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[NamespaceInfo](#NAMESPACEINFO)

* **namespace\_id** (string) `Required`
* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **group** (string) `Required`
* **icon** (string) `Required`
* **tags** (Struct) `Required`
* **is\_managed** (bool) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### update

> **POST** /inventory/v1/namespace/update

\{{< tabs " update " >\}}

\{{< tab "Request Example" >\}}

[UpdateNamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#updatenamespacerequest)

* **namespace\_id** (string) `Required`
* **name** (string)
* **icon** (string)
* **tags** (Struct)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[NamespaceInfo](#NAMESPACEINFO)

* **namespace\_id** (string) `Required`
* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **group** (string) `Required`
* **icon** (string) `Required`
* **tags** (Struct) `Required`
* **is\_managed** (bool) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### delete

> **POST** /inventory/v1/namespace/delete

\{{< tabs " delete " >\}}

\{{< tab "Request Example" >\}}

[NamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacerequest)

* **namespace\_id** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### get

> **POST** /inventory/v1/namespace/get

\{{< tabs " get " >\}}

\{{< tab "Request Example" >\}}

[NamespaceRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacerequest)

* **namespace\_id** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< tab "Response Example" >\}}

[NamespaceInfo](#NAMESPACEINFO)

* **namespace\_id** (string) `Required`
* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **group** (string) `Required`
* **icon** (string) `Required`
* **tags** (Struct) `Required`
* **is\_managed** (bool) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **created\_at** (string) `Required`
* **updated\_at** (string) `Required`

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### list

> **POST** /inventory/v1/namespace/list

\{{< tabs " list " >\}}

\{{< tab "Request Example" >\}}

[NamespaceQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/inventory/v1/Namespace/README.md#namespacequery)

* **query** (Query)
* **namespace\_id** (string)
* **category** (string)
* **resource\_type** (string)
* **group** (string)
* **is\_managed** (string)
* **workspace\_id** (string)

\{{< highlight json >\}} {

} \{{< /highlight >\}} \{{< /tab >\}}

\{{< /tabs >\}}

\


### stat

> **POST** /inventory/v1/namespace/stat

\
\


## Message

### CreateNamespaceRequest

* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **namespace\_id** (string)
* **group** (string)
* **icon** (string)
* **tags** (Struct)
*   **workspace\_id** (string)

    \


### NamespaceInfo

* **namespace\_id** (string) `Required`
* **name** (string) `Required`
* **category** (string) `Required`
* **resource\_type** (string) `Required`
* **group** (string) `Required`
* **icon** (string) `Required`
* **tags** (Struct) `Required`
* **is\_managed** (bool) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **created\_at** (string) `Required`
*   **updated\_at** (string) `Required`

    \


### NamespaceQuery

* **query** (Query)
* **namespace\_id** (string)
* **category** (string)
* **resource\_type** (string)
* **group** (string)
* **is\_managed** (string)
*   **workspace\_id** (string)

    \


### NamespaceRequest

*   **namespace\_id** (string) `Required`

    \


### NamespaceStatQuery

*   **query** (StatisticsQuery) `Required`

    \


### NamespacesInfo

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

    \


### UpdateNamespaceRequest

* **namespace\_id** (string) `Required`
* **name** (string)
* **icon** (string)
*   **tags** (Struct)

    \
