# Policy

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

\
\


## Policy

**Policy Methods:**

| Method                                                                                                            | Request                                                                                                                                 | Response                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#create) | [CreatePolicyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#createpolicyrequest) | [PolicyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policyinfo)     |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#update) | [UpdatePolicyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#updatepolicyrequest) | [PolicyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policyinfo)     |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#delete) | [PolicyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policyrequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#empty)               |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#get)       | [PolicyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policyrequest)             | [PolicyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policyinfo)     |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#list)     | [PolicySearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policysearchquery)     | [PoliciesInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policiesinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#stat)     | [PolicyStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#policystatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Policy/README.md#struct)             |

\


### create

> **POST** /identity/v2/policy/create

\


### update

> **POST** /identity/v2/policy/update

\


### delete

> **POST** /identity/v2/policy/delete

\


### get

> **POST** /identity/v2/policy/get

\


### list

> **POST** /identity/v2/policy/list

\


### stat

> **POST** /identity/v2/policy/stat

\
\


## Message

### CreatePolicyRequest

* **name** (string) `Required`
* **permissions** (string) `Repeated` `Required`
* **domain\_id** (string) `Required`
*   **tags** (Struct)

    \


### PoliciesInfo

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

    \


### PolicyInfo

* **policy\_id** (string) `Required`
* **name** (string) `Required`
* **permissions** (string) `Repeated` `Required`
* **tags** (Struct) `Required`
* **is\_managed** (bool) `Required`
* **domain\_id** (string) `Required`
* **created\_at** (string) `Required`
*   **updated\_at** (string) `Required`

    \


### PolicyRequest

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

    \


### PolicySearchQuery

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

    \


### PolicyStatQuery

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

    \


### UpdatePolicyRequest

* **policy\_id** (string) `Required`
* **domain\_id** (string) `Required`
* **name** (string)
* **permissions** (string) `Repeated`
*   **tags** (Struct)

    \
