Command: register a provider access in a project (credentials stored encrypted; requires manager on the project).
POST
/accounts/register
const url = 'https://example.com/api/v1/accounts/register';const options = { method: 'POST', headers: {cookie: 'dnse_session=<dnse_session>', 'Content-Type': 'application/json'}, body: '{"projectId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","provider":"powerdns","name":"example","credentials":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/accounts/register \ --header 'Content-Type: application/json' \ --cookie dnse_session=<dnse_session> \ --data '{ "projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "provider": "powerdns", "name": "example", "credentials": { "additionalProperty": "example" } }'Authorizations
Abschnitt betitelt „Authorizations“Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Media typeapplication/json
object
projectId
Target project; defaults to the caller’s base project.
string format: uuid
provider
required
string
Example
powerdnsname
required
string
credentials
required
object
key
additional properties
string
Responses
Abschnitt betitelt „Responses“Account registered; status reflects the probe result.
Media typeapplication/json
object
id
string format: uuid
projectId
string format: uuid
provider
string
name
string
status
string
Example
{ "status": "ok"}Malformed request.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}