# ApiKey

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

\
\


## ApiKey

**APIKey Methods:**

| Method                                                                                                              | Request                                                                                                                                 | Response                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#create)   | [CreateAPIKeyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#createapikeyrequest) | [APIKeyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyinfo)   |
| [**enable**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#enable)   | [APIKeyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyrequest)             | [APIKeyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyinfo)   |
| [**disable**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#disable) | [APIKeyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyrequest)             | [APIKeyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#delete)   | [APIKeyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyrequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#empty)             |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#get)         | [GetAPIKeyRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#getapikeyrequest)       | [APIKeyInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#list)       | [APIKeyQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeyquery)                 | [APIKeysInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeysinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#stat)       | [APIKeyStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#apikeystatquery)         | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v1/APIKey/README.md#struct)           |

\


### create

> **POST** /identity/v1/api-key/create

\


### enable

> **POST** /identity/v1/api-key/enable

\


### disable

> **POST** /identity/v1/api-key/disable

\


### delete

> **POST** /identity/v1/api-key/delete

\


### get

> **POST** /identity/v1/api-key/get

\


### list

> **POST** /identity/v1/api-key/list

\


### stat

> **POST** /identity/v1/api-key/stat

\
\


## Message

### APIKeyInfo

* **api\_key\_id** (string) `Required`
* **api\_key** (string) `Required`
* **state** (State) `Required`
* **user\_id** (string) `Required`
* **domain\_id** (string) `Required`
* **last\_accessed\_at** (string) `Required`
*   **created\_at** (string) `Required`

    \


### APIKeyQuery

* **domain\_id** (string) `Required`
* **query** (Query)
* **api\_key\_id** (string)
* **state** (State)
*   **user\_id** (string)

    \


### APIKeyRequest

* **api\_key\_id** (string) `Required`
*   **domain\_id** (string) `Required`

    \


### APIKeyStatQuery

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

    \


### APIKeysInfo

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

    \


### CreateAPIKeyRequest

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

    \


### GetAPIKeyRequest

* **api\_key\_id** (string) `Required`
* **domain\_id** (string) `Required`
*   **only** (string) `Repeated`

    \
