# Role

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

\
\


## Role

**Role Methods:**

| Method                                                                                                          | Request                                                                                                                           | Response                                                                                                          |
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#create) | [CreateRoleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#createrolerequest) | [RoleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#roleinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#update) | [UpdateRoleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#updaterolerequest) | [RoleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#roleinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#delete) | [RoleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#rolerequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#empty)         |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#get)       | [GetRoleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#getrolerequest)       | [RoleInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#roleinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#list)     | [RoleQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#rolequery)                 | [RolesInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#rolesinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#stat)     | [RoleStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#rolestatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/Role/README.md#struct)       |

\


### create

> **POST** /identity/v1/role/create

\


### update

> **POST** /identity/v1/role/update

\


### delete

> **POST** /identity/v1/role/delete

\


### get

> **POST** /identity/v1/role/get

\


### list

> **POST** /identity/v1/role/list

\


### stat

> **POST** /identity/v1/role/stat

\
\


## Message

### CreateRoleRequest

* **name** (string) `Required`
* **role\_type** (RoleType) `Required`
* **policies** (RolePolicy) `Repeated` `Required`
* **domain\_id** (string) `Required`
* **page\_permissions** (PagePermission) `Repeated`
*   **tags** (Struct)

    \


### GetRoleRequest

* **role\_id** (string) `Required`
* **domain\_id** (string) `Required`
*   **only** (string) `Repeated`

    \


### PagePermission

* **page** (string) `Required`
*   **permission** (Permission) `Required`

    \


### RoleInfo

* **role\_id** (string) `Required`
* **name** (string) `Required`
* **role\_type** (RoleType) `Required`
* **policies** (RolePolicy) `Repeated` `Required`
* **page\_permissions** (PagePermission) `Repeated` `Required`
* **tags** (Struct) `Required`
* **domain\_id** (string) `Required`
* **created\_at** (string) `Required`
*   **deleted\_at** (string) `Required`

    \


### RolePolicy

* **policy\_type** (PolicyType) `Required`
*   **policy\_id** (string) `Required`

    \


### RoleQuery

* **domain\_id** (string) `Required`
* **query** (Query)
* **role\_id** (string)
* **name** (string)
* **role\_type** (RoleType)
*   **policy\_id** (string)

    \


### RoleRequest

* **role\_id** (string) `Required`
*   **domain\_id** (string) `Required`

    \


### RoleStatQuery

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

    \


### RolesInfo

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

    \


### UpdateRoleRequest

* **role\_id** (string) `Required`
* **domain\_id** (string) `Required`
* **name** (string)
* **policies** (RolePolicy) `Repeated`
* **page\_permissions** (PagePermission) `Repeated`
* **tags** (Struct)
*   **release\_page\_permissions** (bool)

    \
