Zum Inhalt springen

Command: put a provider zone under management (baseline = full ownership). The zone lives in its account's project.

POST
/zones/adopt
curl --request POST \
--url https://example.com/api/v1/zones/adopt \
--header 'Content-Type: application/json' \
--cookie dnse_session=<dnse_session> \
--data '{ "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "zone": "example.com" }'
Media typeapplication/json
object
accountId
required
string format: uuid
zone
required
string
Example
example.com

Zone adopted.

Media typeapplication/json
object
id
string format: uuid
name
string
accountId
string format: uuid
projectId
string format: uuid
Examplegenerated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Malformed request.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Zone already managed by this account.