Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This resource is designed to create and manage domains and their aliases.

Table of Contents
minLevel1
maxLevel3

Because the PBX platform is multi-domain, the domain name is a meaningful part of the full extension name. The fully qualified extension name consists of the client prefix, extension number, and domain, and has the following format:

...

Name

Type

Description

Required

Default value

name

string

Domain name. Cannot be changed after the domain has been created.

trueYes

domain_prefix

string

Unique domain prefix, must be a string of 5 digits. The domain prefix can be used for client calls from different domains to each other. For such call, dial a number in the format domain_prefix*client_prefix*extension_number

trueYes

comment

string

Comment

falseNo

null

id

integer

Unique domain id. Read only.

-

-

Anchor
domain_alias_fields
domain_alias_fields

...

Name

Type

Description

Required

Default value

name

string

A domain alias, which can be in the “From” field in place of the domain. Can be a domain IP address.

trueYes

comment

string

Comment

falseNo

null

id

integer

Unique domain alias id. Read only.

-

-

Anchor
force_source_fields
force_source_fields

...

Name

Type

Description

Required

Default value

ip

string

IP address, requests from which will be considered related to this domain.

trueYes

comment

string

Comment

falseNo

null

id

integer

Unique domain Force Source id. Read only.

-

-

Anchor
force_dst_fields
force_dst_fields

...

Name

Type

Description

Required

Default value

ip

string

The IP address in the “From” field that will map the request to this domain.

trueYes

comment

string

Comment

falseNo

null

id

integer

Unique domain Force Destination id. Read only.

-

-

Resources section "Admin"

POST /admin/domain/

Add Create a new domain

JSON params

Domain fields

...

PUT /admin/domain/{domain_id}

Update a domain

URL parameters

Name

Type

domain_id

integer

JSON

...

parameters

Domain fields

Response fields

...

GET /admin/domain/{domain_id}

Получить домен по его идентификаторуGet a domain by its id

URL parameters

Name

Type

domain_id

integer

...

DELETE /admin/domain/{domain_id}

Удалить доменDelete a domain

URL parameters

Name

Type

domain_id

integer

...

POST /admin/domain/{domain_id}/alias/

Добавить псевдоним домена

...

Add a domain alias

URL parameters

Name

Type

domain_id

integer

...

JSON

...

Поля псевдонима домена

Поля ответа

...

parameters

Domain alias fields

Response fields

Domain alias fields

GET /admin/domain/{domain_id}/alias/

Получить список псевдонимов домена

...

Get a list of the domain aliases

URL parameters

Name

Type

domain_id

integer

Поля ответа

...

Response fields

Domain alias fields


PUT /admin/domain/{domain_id}/alias/{id}

Обновить псевдоним домена

...

Update a domain alias

URL parameters

Name

Type

domain_id

integer

id

integer

...

JSON

...

Поля псевдонима домена

Поля ответа

...

parameters

Domain alias fields

Response fields

Domain alias fields

GET /admin/domain/{domain_id}/alias/{id}

Получить псевдоним домена по его идентификатору

...

Get a domain alias by its id

URL parameters

Name

Type

domain_id

integer

id

integer

Поля ответа

...

Response fields

Domain alias fields

DELETE /admin/domain/{domain_id}/alias/{id}

Удалить псевдоним домена

...

Delete a domain alias

URL parameters

Name

Type

domain_id

integer

id

integer

...

POST /admin/domain/{domain_id}/force_src/

Добавить Add a domain force source домена

...

URL parameters

Name

Type

domain_id

integer

...

JSON parameters

Поля Domain force source доменаfields

...

Response fields

Поля Domain force source доменаfields

GET /admin/domain/{domain_id}/force_src/

Получить список force source домена

...

Get a list of domain force source

URL parameters

Name

Type

domain_id

integer

...

Response fields

Поля Domain force source доменаfields

...

PUT /admin/domain/{domain_id}/force_src/{id}

Обновить force Update a domain force source домена

...

URL parameters

Name

Type

domain_id

integer

id

integer

...

JSON parameters

Поля Domain force source доменаfields

...

Response fields

Поля Domain force source доменаfields

GET /admin/domain/{domain_id}/force_src/{id}

Получить force Get a domain force source домена

...

URL parameters

Name

Type

domain_id

integer

id

integer

...

Response fields

Поля Domain force source доменаfields

DELETE /admin/domain/{domain_id}/force_src/{id}

Удалить force Delete a domain force source домена

...

URL parameters

Name

Type

domain_id

integer

id

integer

...

POST /admin/domain/{domain_id}/force_dst/

Добавить force desination домена

...

Add a domain force destination

URL parameters

Name

Type

domain_id

integer

...

JSON parameters

Поля Domain force destination доменаfields

...

Response fields

Поля Domain force destination доменаfields

GET /admin/domain/{domain_id}/force_dst/

Получить список force desination домена

...

Get a list of domain force destination

URL parameters

Name

Type

domain_id

integer

...

Response fields

Поля Domain force destination доменаfields

...

PUT /admin/domain/{domain_id}/force_dst/{id}

Обновить force desination домена

...

Update a domain force destination

URL parameters

Name

Type

domain_id

integer

id

integer

...

JSON parameters

Поля Domain force destination доменаfields

...

Response fields

Поля Domain force destination доменаfields

GET /admin/domain/{domain_id}/force_dst/{id}

Получить force desination домена

...

Get a domain force destination

URL parameters

Name

Type

domain_id

integer

id

integer

...

Response fields

Поля Domain force destination доменаfields

DELETE /admin/domain/{domain_id}/force_dst/{id}

Удалить force desination домена

...

Delete a domain force destination

URL parameters

Name

Type

domain_id

integer

id

integer