Domain
Package : spaceone.api.identity.v2
Domain
Domain Methods:
Method | Request | Response |
---|---|---|
create
POST /identity/v2/domain/create
{{< tabs " create " >}}
{{< tab "Request Example" >}}
name (string)
Required
admin (Admin)
Required
tags (Struct)
{{< highlight json >}} { "name": "wonny-dev", "admin": { "user_id": "wonny@cloudforet.io", "name": "Wonny", "password": "Password1234!", "email": "wonny@cloudforet.io", "language": "en", "timezone": "UTC" } } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
update
POST /identity/v2/domain/update
{{< tabs " update " >}}
{{< tab "Request Example" >}}
domain_id (string)
Required
name (string)
tags (Struct)
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev" } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
delete
POST /identity/v2/domain/delete
{{< tabs " delete " >}}
{{< tab "Request Example" >}}
domain_id (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
enable
POST /identity/v2/domain/enable
{{< tabs " enable " >}}
{{< tab "Request Example" >}}
domain_id (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
disable
POST /identity/v2/domain/disable
{{< tabs " disable " >}}
{{< tab "Request Example" >}}
domain_id (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
get
POST /identity/v2/domain/get
{{< tabs " get " >}}
{{< tab "Request Example" >}}
domain_id (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6" } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
get_auth_info
+noauth
POST /identity/v2/domain/get-auth-info
{{< tabs " get_auth_info " >}}
{{< tab "Request Example" >}}
name (string)
Required
{{< highlight json >}} { "name": "wonny-dev" } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
domain_id (string)
Required
name (string)
Required
external_auth_state (ExternalAuthState)
Required
metadata (Struct)
Required
config (Struct)
Required
{{< highlight json >}} { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev", "external_auth_state": "DISABLED", "metadata": {}, "config": { "settings": { "unified_cost_config": { "aggregation_day": 15.0, "currency": "KRW", "custom_exchange_rate": {}, "exchange_date": 15.0, "exchange_rate_mode": "AUTO", "exchange_source": "Yahoo! Finance", "is_exchange_last_day": false, "is_last_day": false, "run_hour": 0.0 } } } } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
get_public_key
list
POST /identity/v2/domain/list
{{< tabs " list " >}}
{{< tab "Request Example" >}}
query (Query)
domain_id (string)
name (string)
state (State)
{{< highlight json >}} { "query": { "filter": [{ "k": "tag.env", "v": "dev", "o": "eq" }], "sort": [{ "key": "created_at", "desc": true }] } } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
results (DomainInfo)
Repeated
Required
total_count (int32)
Required
{{< highlight json >}} { "results": [ { "domain_id": "domain-a1b2c3d4e5f6", "name": "wonny-dev1", "state": "ENABLED", "created_at": "2024-11-12T02:24:01.233Z" }, { "domain_id": "domain-g7h8i9j1k2l3", "name": "wonny-dev2", "state": "ENABLED", "created_at": "2024-11-01T03:34:01.233Z" } ], "total_count": 2 } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
stat
Message
Admin
user_id (string)
Required
name (string)
Required
password (string)
Required
email (string)
language (string)
timezone (string)
tags (Struct)
reset_password (bool)
CreateDomainRequest
name (string)
Required
admin (Admin)
Required
tags (Struct)
DomainAuthInfo
domain_id (string)
Required
name (string)
Required
external_auth_state (ExternalAuthState)
Required
metadata (Struct)
Required
config (Struct)
Required
DomainInfo
domain_id (string)
Required
name (string)
Required
state (State)
Required
tags (Struct)
Required
created_at (string)
Required
deleted_at (string)
Required
DomainRequest
domain_id (string)
Required
DomainSearchQuery
query (Query)
domain_id (string)
name (string)
state (State)
DomainStatQuery
query (StatisticsQuery)
Required
DomainsInfo
results (DomainInfo)
Repeated
Required
total_count (int32)
Required
GetDomainAuthRequest
name (string)
Required
UpdateDomainRequest
domain_id (string)
Required
name (string)
tags (Struct)
Last updated