# Domain Owner

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

## DomainOwner

{% hint style="info" %}
**DomainOwner Methods:**
{% endhint %}

| NO | Method                | Request Type                                    | Response Type                                                                                                    | Description |
| -- | --------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------- |
| 1  | [**create**](#create) | [CreateDomainOwner](#createdomainowner)         | [DomainOwnerInfo](#domainownerinfo)                                                                              |             |
| 2  | [**update**](#update) | [UpdateDomainOwner](#updatedomainowner)         | [DomainOwnerInfo](#domainownerinfo)                                                                              |             |
| 3  | [**delete**](#delete) | [DomainOwnerRequest](#domainownerrequest)       | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |             |
| 4  | [**get**](#get)       | [GetDomainOwnerRequest](#getdomainownerrequest) | [DomainOwnerInfo](#domainownerinfo)                                                                              |             |

### create

> **POST** /identity/v1/domain/{domain\_id}/owner

| Type     | Message                                 |
| -------- | --------------------------------------- |
| Request  | [CreateDomainOwner](#createdomainowner) |
| Response | [DomainOwnerInfo](#domainownerinfo)     |

### update

> **PUT** /identity/v1/domain/{domain\_id}/owner

| Type     | Message                                 |
| -------- | --------------------------------------- |
| Request  | [UpdateDomainOwner](#updatedomainowner) |
| Response | [DomainOwnerInfo](#domainownerinfo)     |

### delete

> **DELETE** /identity/v1/domain/{domain\_id}/owner

| Type     | Message                                                                                                          |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| Request  | [DomainOwnerRequest](#domainownerrequest)                                                                        |
| Response | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |

### get

> **GET** /identity/v1/domain/{domain\_id}/owner

| Type     | Message                                         |
| -------- | ----------------------------------------------- |
| Request  | [GetDomainOwnerRequest](#getdomainownerrequest) |
| Response | [DomainOwnerInfo](#domainownerinfo)             |

## Message

### CreateDomainOwner

| No | Field      | Type   | Required | Description |
| -- | ---------- | ------ | -------- | ----------- |
| 1  | owner\_id  | string | ❌        |             |
| 2  | password   | string | ✅        |             |
| 3  | name       | string | ❌        |             |
| 4  | email      | string | ❌        |             |
| 5  | language   | string | ❌        |             |
| 6  | timezone   | string | ❌        |             |
| 7  | domain\_id | string | ✅        |             |

### DomainOwnerInfo

| No | Field              | Type                                                                                                                     | Description |
| -- | ------------------ | ------------------------------------------------------------------------------------------------------------------------ | ----------- |
| 1  | owner\_id          | string                                                                                                                   |             |
| 2  | name               | string                                                                                                                   |             |
| 3  | email              | string                                                                                                                   |             |
| 4  | language           | string                                                                                                                   |             |
| 5  | timezone           | string                                                                                                                   |             |
| 6  | last\_accessed\_at | [google.protobuf.Timestamp](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto) |             |
| 7  | created\_at        | [google.protobuf.Timestamp](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto) |             |
| 8  | domain\_id         | string                                                                                                                   |             |

### DomainOwnerRequest

| No | Field      | Type   | Required | Description |
| -- | ---------- | ------ | -------- | ----------- |
| 1  | domain\_id | string | ✅        |             |
| 2  | owner\_id  | string | ✅        |             |

### GetDomainOwnerRequest

| No | Field      | Type           | Required | Description |
| -- | ---------- | -------------- | -------- | ----------- |
| 1  | domain\_id | string         | ✅        |             |
| 2  | owner\_id  | string         | ✅        |             |
| 3  | only       | list of string | ❌        |             |

### UpdateDomainOwner

| No | Field      | Type   | Required | Description |
| -- | ---------- | ------ | -------- | ----------- |
| 1  | owner\_id  | string | ✅        |             |
| 2  | password   | string | ❌        |             |
| 3  | name       | string | ❌        |             |
| 4  | email      | string | ❌        |             |
| 5  | language   | string | ❌        |             |
| 6  | timezone   | string | ❌        |             |
| 7  | domain\_id | string | ✅        |             |
