This endpoint is currently available as a BETA. Business-critical processes should not depend on this functionality.
Lists the available methods through which our service may resolve a hostname assigned to an origin entry.
Use the cdn.origins scope to authenticate and authorize requests for the Origins API.
A request to retrieve a list of hostname resolution methods is described below.
HTTP Method | Request URI |
---|---|
GET |
https://api.vdms.io/cdn/origins/v0.5/network-types |
This endpoint only takes advantage of common request headers.
Request body parameters are not required by this endpoint.
The response to the above request includes an HTTP status code, response headers, and a response body.
A status code indicates whether the request was successfully performed.
The response for this endpoint only includes standard HTTP response headers.
The response body for a successful request returns the following object for each hostname resolution method:
Name | Data Type | Description |
---|---|---|
id |
Integer |
Indicates the hostname resolution method's system-defined ID. |
name |
String |
Identifies a hostname resolution method by name. |
value |
String |
Indicates the hostname resolution method's code name. |
The response body for an unsuccessful request may contain an error element that provides additional information.
A sample JSON request is shown below.
GET https://api.vdms.io/cdn/origins/v0.5/network-types HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: api.vdms.io
A sample JSON response is shown below.
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Apr 2021 12:00:00 GMT
Content-Length: 339
[{ "id": 1, "name": "Default", "value": "default" }, { "id": 2, "name": "V6 Preferred Over V4", "value": "prefv6" }, { "id": 3, "name": "V4 Preferred Over V6", "value": "prefv4" }, { "id": 4, "name": "V4 Only", "value": "onlyv4" }, { "id": 5, "name": "V6 Only", "value": "onlyv6" } ]