Vonage QoD

Quality of Service on Demand API leveraging carrier QoS capabilities

OpenAPI-Spezifikation herunterladen

QoD Sessions

QoD session management services

Create a QoD session

Enables applications to create a QoD session. The session represents the network flow(s) from the mobile device to the specified server(s) and the QoD profile(s) that will be applied to the network.

posthttps://api-eu.vonage.com/qod/v0.1/sessions

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Anfrage Körper
Inhalt Typ
application/json

msisdn
string
Erforderlich
Min10
Max15
Beispiel14040000000

A single phone number you want insights on, starting with the country code. You may optionally include a leading +, but do not use 00 at the beginning. Ideally, the number should follow the E.164 format. However, the API is designed to extract the phone number even if the input string contains alphanumeric characters, spaces, or symbols like brackets.

source_ip
string
Erforderlich
Beispiel192.158.1.38

IP address of the device, in IPv4 or IPv6 format. Note: not all mobile operators support both formats.

duration
integer
Erforderlich
Min60
Max86400
Beispiel60

The requested session duration in seconds.

channels
array
Erforderlich
source
object
Erforderlich

The source endpoint of the network flow.

port
integer(int32)
Min1
Max65535
destination
object
Erforderlich

The destination endpoint of the network flow.

cidr
string
Erforderlich
Beispiel2002::1234:abcd:ffff:c0a8:101/64

CIDR notation for IPv4 or IPv6 address ranges. Note: not all mobile operators support both formats.

port
integer(int32)
Min1
Max65535
qod_profile
string
Erforderlich

The QoD profile configures the flow in the network adapting network characteristics, for example throughput, latency, or jitter.

Beispiel Anfrage

{
   "msisdn": "14040000000",
   "source_ip": "192.158.1.38",
   "duration": 60,
   "channels": [
      {
         "source": {
            "port": 1
         },
         "destination": {
            "cidr": "2002::1234:abcd:ffff:c0a8:101/64",
            "port": 1
         },
         "qod_profile": "string"
      }
   ]
}

Antworten
Inhalt Typ
application/json

QoD session created

id
string
Erforderlich

Unique identifier for each QoD session.

msisdn
string
Erforderlich
Min10
Max15
Beispiel14040000000

A single phone number you want insights on, starting with the country code. You may optionally include a leading +, but do not use 00 at the beginning. Ideally, the number should follow the E.164 format. However, the API is designed to extract the phone number even if the input string contains alphanumeric characters, spaces, or symbols like brackets.

source_ip
string
Erforderlich
Beispiel192.158.1.38

IP address of the device, in IPv4 or IPv6 format. Note: not all mobile operators support both formats.

duration
integer
Erforderlich
Min60
Max86400
Beispiel60

The requested session duration in seconds.

channels
array
Erforderlich
source
object
Erforderlich

The source endpoint of the network flow.

port
integer(int32)
Min1
Max65535
destination
object
Erforderlich

The destination endpoint of the network flow.

cidr
string
Erforderlich
Beispiel2002::1234:abcd:ffff:c0a8:101/64

CIDR notation for IPv4 or IPv6 address ranges. Note: not all mobile operators support both formats.

port
integer(int32)
Min1
Max65535
qod_profile
string
Erforderlich

The QoD profile configures the flow in the network adapting network characteristics, for example throughput, latency, or jitter.

projected_end_time
string(date-time)

ISO 8601 date-time in UTC

statuses
array
status
string
Erforderlich

|- PENDING. The QoD session has not yet been processed by the underlying network. ACTIVE. The QoD session is active, the QoD profile is being applied to the network flow. CANCELLING. The QoD session is in the process of being cancelled, but has not yet reached a terminal state. COMPLETED. The QoD session has completed successfully. FAILED. The QoD session has completed but due to failure, see the reason for more details.

Muss eines der folgenden sein:PENDINGACTIVECANCELLINGCOMPLETEDFAILED
updated
string(date-time)
Erforderlich

The timestamp of the status update

reason
string

The reason why the status update occurred.

Beispiel Antwort

{
   "id": "string",
   "msisdn": "14040000000",
   "source_ip": "192.158.1.38",
   "duration": 60,
   "channels": [
      {
         "source": {
            "port": 1
         },
         "destination": {
            "cidr": "2002::1234:abcd:ffff:c0a8:101/64",
            "port": 1
         },
         "qod_profile": "string",
         "projected_end_time": "2019-08-24T14:15:22Z",
         "statuses": [
            {
               "status": "PENDING",
               "updated": "2019-08-24T14:15:22Z",
               "reason": "string"
            }
         ]
      }
   ]
}

QoD session status update callback callback

Provides updates on the status of the QoD session.

posthttps://example.com/webhooks/event

Anfrage Körper
Inhalt Typ
application/json

id
string
Erforderlich

The identifier of the QoD session that has been updated.

update
object
Erforderlich
status
string
Erforderlich

|- PENDING. The QoD session has not yet been processed by the underlying network. ACTIVE. The QoD session is active, the QoD profile is being applied to the network flow. CANCELLING. The QoD session is in the process of being cancelled, but has not yet reached a terminal state. COMPLETED. The QoD session has completed successfully. FAILED. The QoD session has completed but due to failure, see the reason for more details.

Muss eines der folgenden sein:PENDINGACTIVECANCELLINGCOMPLETEDFAILED
updated
string(date-time)
Erforderlich

The timestamp of the status update

reason
string

The reason why the status update occurred.

projected_end_time
string(date-time)

ISO 8601 date-time in UTC

Beispiel Nutzlast

{
   "id": "string",
   "update": {
      "status": "PENDING",
      "updated": "2019-08-24T14:15:22Z",
      "reason": "string"
   },
   "projected_end_time": "2019-08-24T14:15:22Z"
}

Antworten

Return this code if the server accepts the callback.

Query QoD sessions

Enables applications to create a QoD session. The session represents the network flow(s) from the mobile device to the specified server(s) and the QoD profile(s) that will be applied to the network.

posthttps://api-eu.vonage.com/qod/v0.1/sessions/query

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Anfrage Körper
Inhalt Typ
application/json

msisdn
string
Min10
Max15
Beispiel14040000000

A single phone number you want insights on, starting with the country code. You may optionally include a leading +, but do not use 00 at the beginning. Ideally, the number should follow the E.164 format. However, the API is designed to extract the phone number even if the input string contains alphanumeric characters, spaces, or symbols like brackets.

filter
string
Standardin-progress

If set to in-progress, only in-progress sessions (e.g. PENDING, ACTIVE, CANCELLING) will be returned; otherwise all sessions will be returned.

Muss eines der folgenden sein:in-progressall

Beispiel Anfrage

{
   "msisdn": "14040000000",
   "filter": "in-progress"
}

Antworten
Inhalt Typ
application/json

QoD session query response

array
id
string
Erforderlich

Unique identifier for each QoD session.

msisdn
string
Erforderlich
Min10
Max15
Beispiel14040000000

A single phone number you want insights on, starting with the country code. You may optionally include a leading +, but do not use 00 at the beginning. Ideally, the number should follow the E.164 format. However, the API is designed to extract the phone number even if the input string contains alphanumeric characters, spaces, or symbols like brackets.

source_ip
string
Erforderlich
Beispiel192.158.1.38

IP address of the device, in IPv4 or IPv6 format. Note: not all mobile operators support both formats.

duration
integer
Erforderlich
Min60
Max86400
Beispiel60

The requested session duration in seconds.

channels
array
Erforderlich
source
object
Erforderlich

The source endpoint of the network flow.

port
integer(int32)
Min1
Max65535
destination
object
Erforderlich

The destination endpoint of the network flow.

cidr
string
Erforderlich
Beispiel2002::1234:abcd:ffff:c0a8:101/64

CIDR notation for IPv4 or IPv6 address ranges. Note: not all mobile operators support both formats.

port
integer(int32)
Min1
Max65535
qod_profile
string
Erforderlich

The QoD profile configures the flow in the network adapting network characteristics, for example throughput, latency, or jitter.

projected_end_time
string(date-time)

ISO 8601 date-time in UTC

statuses
array
status
string
Erforderlich

|- PENDING. The QoD session has not yet been processed by the underlying network. ACTIVE. The QoD session is active, the QoD profile is being applied to the network flow. CANCELLING. The QoD session is in the process of being cancelled, but has not yet reached a terminal state. COMPLETED. The QoD session has completed successfully. FAILED. The QoD session has completed but due to failure, see the reason for more details.

Muss eines der folgenden sein:PENDINGACTIVECANCELLINGCOMPLETEDFAILED
updated
string(date-time)
Erforderlich

The timestamp of the status update

reason
string

The reason why the status update occurred.

Beispiel Antwort

[
   {
      "id": "string",
      "msisdn": "14040000000",
      "source_ip": "192.158.1.38",
      "duration": 60,
      "channels": [
         {
            "source": {
               "port": 1
            },
            "destination": {
               "cidr": "2002::1234:abcd:ffff:c0a8:101/64",
               "port": 1
            },
            "qod_profile": "string",
            "projected_end_time": "2019-08-24T14:15:22Z",
            "statuses": [
               {
                  "status": "PENDING",
                  "updated": "2019-08-24T14:15:22Z",
                  "reason": "string"
               }
            ]
         }
      ]
   }
]

Get QoD session by identifier

Enables applications to retrieve detailed information about a specific session.

gethttps://api-eu.vonage.com/qod/v0.1/sessions/:session_id

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Pfad Parameter

session_id
string
Erforderlich

The unique identifier for the QoD session

Antworten
Inhalt Typ
application/json

QoD session for the specified identifier

id
string
Erforderlich

Unique identifier for each QoD session.

msisdn
string
Erforderlich
Min10
Max15
Beispiel14040000000

A single phone number you want insights on, starting with the country code. You may optionally include a leading +, but do not use 00 at the beginning. Ideally, the number should follow the E.164 format. However, the API is designed to extract the phone number even if the input string contains alphanumeric characters, spaces, or symbols like brackets.

source_ip
string
Erforderlich
Beispiel192.158.1.38

IP address of the device, in IPv4 or IPv6 format. Note: not all mobile operators support both formats.

duration
integer
Erforderlich
Min60
Max86400
Beispiel60

The requested session duration in seconds.

channels
array
Erforderlich
source
object
Erforderlich

The source endpoint of the network flow.

port
integer(int32)
Min1
Max65535
destination
object
Erforderlich

The destination endpoint of the network flow.

cidr
string
Erforderlich
Beispiel2002::1234:abcd:ffff:c0a8:101/64

CIDR notation for IPv4 or IPv6 address ranges. Note: not all mobile operators support both formats.

port
integer(int32)
Min1
Max65535
qod_profile
string
Erforderlich

The QoD profile configures the flow in the network adapting network characteristics, for example throughput, latency, or jitter.

projected_end_time
string(date-time)

ISO 8601 date-time in UTC

statuses
array
status
string
Erforderlich

|- PENDING. The QoD session has not yet been processed by the underlying network. ACTIVE. The QoD session is active, the QoD profile is being applied to the network flow. CANCELLING. The QoD session is in the process of being cancelled, but has not yet reached a terminal state. COMPLETED. The QoD session has completed successfully. FAILED. The QoD session has completed but due to failure, see the reason for more details.

Muss eines der folgenden sein:PENDINGACTIVECANCELLINGCOMPLETEDFAILED
updated
string(date-time)
Erforderlich

The timestamp of the status update

reason
string

The reason why the status update occurred.

Beispiel Antwort

{
   "id": "string",
   "msisdn": "14040000000",
   "source_ip": "192.158.1.38",
   "duration": 60,
   "channels": [
      {
         "source": {
            "port": 1
         },
         "destination": {
            "cidr": "2002::1234:abcd:ffff:c0a8:101/64",
            "port": 1
         },
         "qod_profile": "string",
         "projected_end_time": "2019-08-24T14:15:22Z",
         "statuses": [
            {
               "status": "PENDING",
               "updated": "2019-08-24T14:15:22Z",
               "reason": "string"
            }
         ]
      }
   ]
}

Cancel a QoD session

Enables applications to request the cancellation of a QoD session.

deletehttps://api-eu.vonage.com/qod/v0.1/sessions/:session_id

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Pfad Parameter

session_id
string
Erforderlich

The unique identifier for the QoD session

Antworten

Session cancellation request accepted

QoD status update callback callback

Provides updates on the status of the QoD session.

posthttps://example.com/webhooks/event

Anfrage Körper
Inhalt Typ
application/json

id
string
Erforderlich

The identifier of the QoD session that has been updated.

update
object
Erforderlich
status
string
Erforderlich

|- PENDING. The QoD session has not yet been processed by the underlying network. ACTIVE. The QoD session is active, the QoD profile is being applied to the network flow. CANCELLING. The QoD session is in the process of being cancelled, but has not yet reached a terminal state. COMPLETED. The QoD session has completed successfully. FAILED. The QoD session has completed but due to failure, see the reason for more details.

Muss eines der folgenden sein:PENDINGACTIVECANCELLINGCOMPLETEDFAILED
updated
string(date-time)
Erforderlich

The timestamp of the status update

reason
string

The reason why the status update occurred.

projected_end_time
string(date-time)

ISO 8601 date-time in UTC

Beispiel Nutzlast

{
   "id": "string",
   "update": {
      "status": "PENDING",
      "updated": "2019-08-24T14:15:22Z",
      "reason": "string"
   },
   "projected_end_time": "2019-08-24T14:15:22Z"
}

Antworten

Return this code if the server accepts the callback.