> For the complete documentation index, see [llms.txt](https://spaceone-dev.gitbook.io/spaceone-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spaceone-dev.gitbook.io/spaceone-apis/identity/v1/domain-owner.md).

# Domain Owner

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

## DomainOwner

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

| Method                | Request                                         | Response                                                                                                         |
| --------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [**create**](#create) | [CreateDomainOwner](#createdomainowner)         | [DomainOwnerInfo](#domainownerinfo)                                                                              |
| [**update**](#update) | [UpdateDomainOwner](#updatedomainowner)         | [DomainOwnerInfo](#domainownerinfo)                                                                              |
| [**delete**](#delete) | [DomainOwnerRequest](#domainownerrequest)       | [google.protobuf.Empty](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/empty.proto) |
| [**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

| Field      | Type   | Required | Description |
| ---------- | ------ | :------: | ----------- |
| owner\_id  | string |     ✘    |             |
| password   | string |     ✔    |             |
| name       | string |     ✘    |             |
| email      | string |     ✘    |             |
| language   | string |     ✘    |             |
| timezone   | string |     ✘    |             |
| domain\_id | string |     ✔    |             |

### DomainOwnerInfo

| Field              | Type   | Description |
| ------------------ | ------ | ----------- |
| owner\_id          | string |             |
| name               | string |             |
| email              | string |             |
| language           | string |             |
| timezone           | string |             |
| last\_accessed\_at | string |             |
| created\_at        | string |             |
| domain\_id         | string |             |

### DomainOwnerRequest

| Field      | Type   | Required | Description |
| ---------- | ------ | :------: | ----------- |
| domain\_id | string |     ✔    |             |
| owner\_id  | string |     ✔    |             |

### GetDomainOwnerRequest

| Field      | Type           | Required | Description |
| ---------- | -------------- | :------: | ----------- |
| domain\_id | string         |     ✔    |             |
| owner\_id  | string         |     ✔    |             |
| only       | list of string |     ✘    |             |

### UpdateDomainOwner

| Field      | Type   | Required | Description |
| ---------- | ------ | :------: | ----------- |
| owner\_id  | string |     ✔    |             |
| password   | string |     ✘    |             |
| name       | string |     ✘    |             |
| email      | string |     ✘    |             |
| language   | string |     ✘    |             |
| timezone   | string |     ✘    |             |
| domain\_id | string |     ✔    |             |
