Dialpeers API

get specific entry

GET /api/rest/admin/dialpeers/:id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTQsInN1YiI6ODZ9.x5xRgVQ__3kwz-rUK3c04gWXWaGc5aGbANPJKNUePR0
Host: example.org
Cookie: 

Route

GET /api/rest/admin/dialpeers/1376791

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"078dde714f295a77d841eb1512557446"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ef01f94f-e335-405d-8c82-8c43cbbee259
X-Runtime: 0.014286
Content-Length: 2636

Status

200 OK

Body

{
  "data": {
    "id": "1376791",
    "type": "dialpeers",
    "links": {
      "self": "http://example.org/api/rest/admin/dialpeers/1376791"
    },
    "attributes": {
      "enabled": true,
      "next-rate": "0.0",
      "connect-fee": "0.0",
      "initial-rate": "0.0",
      "initial-interval": 60,
      "next-interval": 60,
      "valid-from": "2024-11-04T09:55:54.588Z",
      "valid-till": "2024-11-24T09:55:54.588Z",
      "prefix": "",
      "src-rewrite-rule": null,
      "dst-rewrite-rule": null,
      "acd-limit": 0.0,
      "asr-limit": 0.0,
      "src-rewrite-result": null,
      "dst-rewrite-result": null,
      "locked": false,
      "priority": 100,
      "exclusive-route": false,
      "capacity": 1,
      "lcr-rate-multiplier": "1.0",
      "force-hit-rate": null,
      "network-prefix-id": null,
      "created-at": "2024-11-14T09:55:54.655Z",
      "short-calls-limit": 1.0,
      "external-id": 8,
      "routing-tag-ids": [

      ],
      "dst-number-min-length": 0,
      "dst-number-max-length": 100,
      "reverse-billing": false
    },
    "relationships": {
      "gateway": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/gateway",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/gateway"
        },
        "data": null
      },
      "gateway-group": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/gateway-group",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/gateway-group"
        },
        "data": {
          "type": "gateway-groups",
          "id": "10"
        }
      },
      "routing-group": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/routing-group",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/routing-group"
        },
        "data": {
          "type": "routing-groups",
          "id": "29"
        }
      },
      "vendor": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/vendor",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/vendor"
        },
        "data": {
          "type": "contractors",
          "id": "72"
        }
      },
      "account": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/account",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/account"
        },
        "data": {
          "type": "accounts",
          "id": "76"
        }
      },
      "routing-tag-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/routing-tag-mode",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/routing-tag-mode"
        },
        "data": {
          "type": "routing-tag-modes",
          "id": "0"
        }
      },
      "routeset-discriminator": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/routeset-discriminator",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/routeset-discriminator"
        },
        "data": {
          "type": "routeset-discriminators",
          "id": "9"
        }
      },
      "dialpeer-next-rates": {
        "links": {
          "self": "http://example.org/api/rest/admin/dialpeers/1376791/relationships/dialpeer-next-rates",
          "related": "http://example.org/api/rest/admin/dialpeers/1376791/dialpeer-next-rates"
        }
      }
    }
  }
}