# TrustedAccount

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

\ <br>

## TrustedAccount

**TrustedAccount Methods:**

| Method                                                                                                                                              | Request                                                                                                                                                                     | Response                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#create)                           | [CreateTrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#createtrustedaccountrequest)             | [TrustedAccountInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#update)                           | [UpdateTrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#updatetrustedaccountrequest)             | [TrustedAccountInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountinfo)   |
| [**update\_secret\_data**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#update_secret_data) | [UpdateTrustedAccountSecretRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#updatetrustedaccountsecretrequest) | [TrustedAccountInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#delete)                           | [TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)                         | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#empty)                             |
| [**sync**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#sync)                               | [TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)                         | [JobInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#jobinfo)                         |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#get)                                 | [TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)                         | [TrustedAccountInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#list)                               | [TrustedAccountSearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountsearchquery)                 | [TrustedAccountsInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountsinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#stat)                               | [TrustedAccountStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountstatquery)                     | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#struct)                           |

<br>

### create

> **POST** /identity/v2/trusted-account/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

[CreateTrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#createtrustedaccountrequest)

* **name** (string) `Required`
* **data** (Struct) `Required`

  *Base Information of Trusted Account. It depends on provider.*
* **provider** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **secret\_data** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **schedule** (Scheduled)
* **sync\_options** (Struct)
* **plugin\_options** (Struct)
* **tags** (Struct)
* **workspace\_id** (string)

{{< highlight json >}} { "name": "Trusted Account", "data": { "account\_id": "a1b2c3d4e5f6" }, "provider": "aws", "secret\_schema\_id": "aws-secret-access-key", "secret\_data": { "aws\_access\_key\_id": "a1b2c3d4e5f6", "aws\_secret\_access\_key": "a1b2c3d4e5f6" }, "schedule": { "state": "ENABLED", "hours": \[3, 15] }, "resource\_group": "DOMAIN" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

[TrustedAccountInfo](#TRUSTEDACCOUNTINFO)

* **trusted\_account\_id** (string) `Required`
* **name** (string) `Required`
* **data** (Struct) `Required`
* **provider** (string) `Required`
* **schedule** (Scheduled) `Required`
* **sync\_options** (Struct) `Required`
* **plugin\_options** (Struct) `Required`
* **tags** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **trusted\_secret\_id** (string) `Required`
* **created\_at** (string) `Required`

{{< highlight json >}} { "created\_at": "2024-11-18T07:53:57.897Z", "data": { "account\_id": "a1b2c3d4e5f6" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "schedule": { "hours": \[3, 15], "state": "ENABLED" }, "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-a1b2c3d4e5f6", "trusted\_secret\_id": "trusted-secret-a1b2c3d4e5f6", "workspace\_id": "\*" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### update

> **POST** /identity/v2/trusted-account/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

[UpdateTrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#updatetrustedaccountrequest)

* **trusted\_account\_id** (string) `Required`
* **tags** (Struct) `Required`
* **name** (string)
* **data** (Struct)
* **schedule** (Scheduled)
* **sync\_options** (Struct)
* **plugin\_options** (Struct)

{{< highlight json >}} { "trusted\_account\_id": "ta-a1b2c3d4e5f6", "name": "Trusted Account" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

[TrustedAccountInfo](#TRUSTEDACCOUNTINFO)

* **trusted\_account\_id** (string) `Required`
* **name** (string) `Required`
* **data** (Struct) `Required`
* **provider** (string) `Required`
* **schedule** (Scheduled) `Required`
* **sync\_options** (Struct) `Required`
* **plugin\_options** (Struct) `Required`
* **tags** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **trusted\_secret\_id** (string) `Required`
* **created\_at** (string) `Required`

{{< highlight json >}} { "created\_at": "2024-11-18T07:53:57.897Z", "data": { "account\_id": "a1b2c3d4e5f6" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "schedule": { "hours": \[3, 15], "state": "ENABLED" }, "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-a1b2c3d4e5f6", "trusted\_secret\_id": "trusted-secret-a1b2c3d4e5f6", "workspace\_id": "\*" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### update\_secret\_data

> **POST** /identity/v2/trusted-account/update-secret-data

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

{{< tab "Request Example" >}}

[UpdateTrustedAccountSecretRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#updatetrustedaccountsecretrequest)

* **trusted\_account\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **secret\_data** (Struct) `Required`

{{< highlight json >}} { "trusted\_account\_id": "ta-a1b2c3d4e5f6", "secretSchemaId": "aws-secret-access-key", "secretData": { "aws\_access\_key\_id": "a1b2c3d4e5f6", "aws\_secret\_access\_key": "a1b2c3d4e5f6" } } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

[TrustedAccountInfo](#TRUSTEDACCOUNTINFO)

* **trusted\_account\_id** (string) `Required`
* **name** (string) `Required`
* **data** (Struct) `Required`
* **provider** (string) `Required`
* **schedule** (Scheduled) `Required`
* **sync\_options** (Struct) `Required`
* **plugin\_options** (Struct) `Required`
* **tags** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **trusted\_secret\_id** (string) `Required`
* **created\_at** (string) `Required`

{{< highlight json >}} { "created\_at": "2024-11-18T07:53:57.897Z", "data": { "account\_id": "a1b2c3d4e5f6" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "schedule": { "hours": \[3, 15], "state": "ENABLED" }, "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-a1b2c3d4e5f6", "trusted\_secret\_id": "trusted-secret-a1b2c3d4e5f6", "workspace\_id": "\*" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### delete

> **POST** /identity/v2/trusted-account/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

[TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)

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

{{< highlight json >}} { "trusted\_account\_id": "ta-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### sync

> **POST** /identity/v2/trusted-account/sync

{{< tabs " sync " >}}

{{< tab "Request Example" >}}

[TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)

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

{{< highlight json >}} { "trusted\_account\_id": "ta-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### get

> **POST** /identity/v2/trusted-account/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

[TrustedAccountRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountrequest)

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

{{< highlight json >}} { "trusted\_account\_id": "ta-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

[TrustedAccountInfo](#TRUSTEDACCOUNTINFO)

* **trusted\_account\_id** (string) `Required`
* **name** (string) `Required`
* **data** (Struct) `Required`
* **provider** (string) `Required`
* **schedule** (Scheduled) `Required`
* **sync\_options** (Struct) `Required`
* **plugin\_options** (Struct) `Required`
* **tags** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **trusted\_secret\_id** (string) `Required`
* **created\_at** (string) `Required`

{{< highlight json >}} { "created\_at": "2024-11-18T07:53:57.897Z", "data": { "account\_id": "a1b2c3d4e5f6" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "schedule": { "hours": \[3, 15], "state": "ENABLED" }, "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-a1b2c3d4e5f6", "trusted\_secret\_id": "trusted-secret-a1b2c3d4e5f6", "workspace\_id": "\*" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### list

> **POST** /identity/v2/trusted-account/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

[TrustedAccountSearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/TrustedAccount/README.md#trustedaccountsearchquery)

* **query** (Query)
* **trusted\_account\_id** (string)
* **name** (string)
* **provider** (string)
* **workspace\_id** (string)
* **secret\_schema\_id** (string)
* **trusted\_secret\_id** (string)

{{< highlight json >}} { "provider": "aws", "query": { "page": { "start": 1, "limit": 10 }, "sort": \[ { "key": "created\_at", "desc": true } ] } } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

[TrustedAccountsInfo](#TRUSTEDACCOUNTSINFO)

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

{{< highlight json >}} { "results": \[ { "created\_at": "2024-11-18T07:47:02.789Z", "data": { "account\_id": "a1b2c3d4e5f6" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-a1b2c3d4e5f6", "trusted\_secret\_id": "trusted-secret-a1b2c3d4e5f6", "workspace\_id": "*" }, { "created\_at": "2024-11-18T07:10:17.114Z", "data": { "account\_id": "g7h8i9j1k2l3" }, "domain\_id": "domain-a1b2c3d4e5f6", "name": "Wonny Trusted Account", "provider": "aws", "resource\_group": "DOMAIN", "secret\_schema\_id": "aws-secret-access-key", "trusted\_account\_id": "ta-g7h8i9j1k2l3", "trusted\_secret\_id": "trusted-secret-g7h8i9j1k2l3", "workspace\_id": "*" } ], "total\_count": 2 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

<br>

### stat

> **POST** /identity/v2/trusted-account/stat

\ <br>

## Message

### CreateTrustedAccountRequest

* **name** (string) `Required`
* **data** (Struct) `Required`

  *Base Information of Trusted Account. It depends on provider.*
* **provider** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **secret\_data** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **schedule** (Scheduled)
* **sync\_options** (Struct)
* **plugin\_options** (Struct)
* **tags** (Struct)
* **workspace\_id** (string)

  <br>

### Scheduled

* **state** (ScheduledState) `Required`
* **hours** (int32) `Repeated` `Required`

  <br>

### TrustedAccountInfo

* **trusted\_account\_id** (string) `Required`
* **name** (string) `Required`
* **data** (Struct) `Required`
* **provider** (string) `Required`
* **schedule** (Scheduled) `Required`
* **sync\_options** (Struct) `Required`
* **plugin\_options** (Struct) `Required`
* **tags** (Struct) `Required`
* **resource\_group** (ResourceGroup) `Required`
* **domain\_id** (string) `Required`
* **workspace\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **trusted\_secret\_id** (string) `Required`
* **created\_at** (string) `Required`

  <br>

### TrustedAccountRequest

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

  <br>

### TrustedAccountSearchQuery

* **query** (Query)
* **trusted\_account\_id** (string)
* **name** (string)
* **provider** (string)
* **workspace\_id** (string)
* **secret\_schema\_id** (string)
* **trusted\_secret\_id** (string)

  <br>

### TrustedAccountStatQuery

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

  <br>

### TrustedAccountsInfo

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

  <br>

### UpdateTrustedAccountRequest

* **trusted\_account\_id** (string) `Required`
* **tags** (Struct) `Required`
* **name** (string)
* **data** (Struct)
* **schedule** (Scheduled)
* **sync\_options** (Struct)
* **plugin\_options** (Struct)

  <br>

### UpdateTrustedAccountSecretRequest

* **trusted\_account\_id** (string) `Required`
* **secret\_schema\_id** (string) `Required`
* **secret\_data** (Struct) `Required`

  <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cloudforet.gitbook.io/cloudforet-apis/content/en/identity/v2/trustedaccount.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
