Перейти до вмісту
NimbusNexus

DNS-зони

DNS-зона — це авторитативний домен, розміщений на серверах імен NimbusNexus. Створіть її через POST /api/v1/zones/, указавши name із крапкою в кінці (example.com.) та email адміністратора; зона належить проєкту, який робить виклик. Потім у реєстратора домену вкажіть наші сервери імен і додайте записи, щоб опублікувати адреси, поштову маршрутизацію й токени верифікації для цього домену.

Делегування

Ось сервери імен, які потрібно налаштувати у вашого реєстратора:

Text
ns1.dns.nimbusnexus.net
ns2.dns.nimbusnexus.net
ns3.dns.nimbusnexus.net
ns4.dns.nimbusnexus.net

Укажіть їх як NS-записи свого домену в реєстратора (GoDaddy, Cloudflare Registrar, Porkbun тощо). Коли поширення завершиться (зазвичай від кількох хвилин до кількох годин, залежно від TTL реєстратора), наші сервери імен стануть авторитативними для домену.

Під час міграції можна паралельно й далі користуватися наявним DNS-провайдером: NS-записи обох провайдерів можуть недовго співіснувати, якщо налаштувати реєстратора на використання обох наборів, а потім, коли ви перенесете всі записи, прибрати старий набір.

Зона чи піддомен

Одна зона = один домен. example.com — це одна зона; api.example.com — піддомен, який обслуговує запис A або CNAME у зоні example.com, а не окрема зона, — хіба що ви навмисно хочете делегувати api.example.com іншому DNS-провайдеру; тоді ви окремо створюєте і example.com (з NS-записами, що вказують на іншого провайдера для піддомену), і зону піддомену.

У типових випадках правильна схема — одна зона на кожен зареєстрований домен.

Що далі

Reference

GET/api/v1/zones/

Zones List

Lists DNS zones accessible to the calling project.

Parameters

NameInTypeDescription
namequerystring | null—
emailquerystring | null—
statusquerystring | null—
descriptionquerystring | null—
ttlqueryinteger | null—
limitqueryinteger | null—
markerquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/zones/

Zone Create

Creates a new DNS zone for the calling project.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
name*stringZone FQDN, e.g. example.com.
email*stringDNS admin email
ttlinteger | nullDefault TTL for the zone
descriptionstring | null—
typeZoneType | nullPRIMARY or SECONDARY
mastersarray of string | nullMasters for SECONDARY zones
attributesobject | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/zones/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "email": "[email protected]"
  }'
GET/api/v1/zones/artifacts

Get Zones Create Artifacts

Returns the DNS zone domain artifacts available for zone creation.

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/zones/{zone_id}

Zone Retrieve

Retrieves a single DNS zone by its identifier.

Parameters

NameInTypeDescription
zone_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PUT/api/v1/zones/{zone_id}

Zone Update

Updates the editable attributes of a DNS zone.

Parameters

NameInTypeDescription
zone_id*pathstring—

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
emailstring | null—
descriptionstring | null—
ttlinteger | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PUT "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/zones/{zone_id}

Zone Delete

Deletes a DNS zone, optionally removing its shares first.

Parameters

NameInTypeDescription
zone_id*pathstring—
delete_sharesquerybooleanDelete all zone shares before deleting the zone

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/zones/{zone_id}/shares/

Shared Zones List

Lists the projects a DNS zone is shared with.

Parameters

NameInTypeDescription
zone_id*pathstring—
admin_domainquerystring | null—
admin_projectquerystring | null—
target_project_idquerystring | null—
limitqueryinteger | null—
markerquerystring | null—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/zones/{zone_id}/shares/

Shared Zones Create

Shares a DNS zone with another project.

Parameters

NameInTypeDescription
zone_id*pathstring—

Request body

FieldTypeDescription
target_project_id*stringTarget project UUID to share the zone with

Responses

  • 201Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target_project_id": "<target_project_id>"
  }'
GET/api/v1/zones/{zone_id}/shares/{shared_zone_id}

Shared Zone Retrieve

Retrieves details of a single DNS zone share.

Parameters

NameInTypeDescription
zone_id*pathstring—
shared_zone_id*pathstring—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/<shared_zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/zones/{zone_id}/shares/{shared_zone_id}

Shared Zone Delete

Revokes a DNS zone share from a target project.

Parameters

NameInTypeDescription
zone_id*pathstring—
shared_zone_id*pathstring—

Responses

  • 204Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/<shared_zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →