# TrustedAccount

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

\
\


## 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)                           |

\


### 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 >\}}

\


### 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 >\}}

\


### 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 >\}}

\


### 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 >\}}

\


### 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 >\}}

\


### 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 >\}}

\


### 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 >\}}

\


### stat

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

\
\


## 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)

    \


### Scheduled

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

    \


### 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`

    \


### TrustedAccountRequest

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

    \


### TrustedAccountSearchQuery

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

    \


### TrustedAccountStatQuery

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

    \


### TrustedAccountsInfo

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

    \


### UpdateTrustedAccountRequest

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

    \


### UpdateTrustedAccountSecretRequest

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

    \
