# Agent

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

\
\


## Agent

**Agent Methods:**

| Method                                                                                                                   | Request                                                                                                                              | Response                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#create)         | [CreateAgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#createagentrequest) | [AgentInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentinfo)   |
| [**enable**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#enable)         | [AgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentrequest)             | [AgentInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentinfo)   |
| [**disable**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#disable)       | [AgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentrequest)             | [AgentInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentinfo)   |
| [**regenerate**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#regenerate) | [AgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentrequest)             | [AgentInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#delete)         | [AgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentrequest)             | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#empty)           |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#get)               | [AgentRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentrequest)             | [AgentInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#list)             | [AgentSearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentsearchquery)     | [AgentsInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/Agent/README.md#agentsinfo) |

\


### create

> **POST** /identity/v2/agent/create

\


### enable

> **POST** /identity/v2/agent/enable

\


### disable

> **POST** /identity/v2/agent/disable

\


### regenerate

> **POST** /identity/v2/agent/regenerate

\


### delete

> **POST** /identity/v2/agent/delete

\


### get

> **POST** /identity/v2/agent/get

\


### list

> **POST** /identity/v2/agent/list

\
\


## Message

### AgentInfo

* **agent\_id** (string) `Required`
* **options** (Struct) `Required`
* **client\_secret** (string) `Required`
* **state** (State) `Required`
* **is\_managed** (bool) `Required`
* **role\_type** (RoleType) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **project\_id** (string) `Required`
* **service\_account\_id** (string) `Required`
* **app\_id** (string) `Required`
* **role\_id** (string) `Required`
* **client\_id** (string) `Required`
* **created\_at** (string) `Required`
* **expired\_at** (string) `Required`
*   **last\_accessed\_at** (string) `Required`

    \


### AgentRequest

*   **service\_account\_id** (string) `Required`

    \


### AgentSearchQuery

* **query** (Query)
* **agent\_id** (string)
* **service\_account\_id** (string)
*   **state** (State)

    \


### AgentsInfo

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

    \


### CreateAgentRequest

* **service\_account\_id** (string) `Required`
*   **options** (Struct) `Required`

    \
