This endpoint is currently available as a BETA. Business-critical processes should not depend on this functionality.
Create a customer origin group through the following steps:
Create a customer origin group without origin entries through either of the following platform-specific endpoints:
These endpoints do not support Azure Block Blob origin groups.
Add an origin entry to your new customer origin group through either of the following platform-specific endpoints:
Use the cdn.origins scope to authenticate and authorize requests for the Origins API.
Create a customer origin group for the HTTP Large delivery platform.
Request
A request to create a customer origin group for the HTTP Large platform is described below.
HTTP Method | Request URI |
---|---|
POST |
https://api.vdms.io/cdn/origins/v0.5/http-large/groups |
This endpoint only takes advantage of common request headers.
Request parameters for this endpoint are described below.
Name | Data Type | Description |
---|---|---|
host_header |
String |
Indicates the value that will be assigned to the Host header for all requests to this customer origin configuration. |
name Required |
String |
Indicates the customer origin group's name. |
network_type_id |
Integer |
Indicates the method for resolving hostnames through its system-defined ID. Valid values are:
Use the Get Available Hostname Resolution Methods endpoint to retrieve a list of methods and their system-defined IDs. Default Value: 1
|
shield_pops |
Array of string values |
Contains this customer origin group's Origin Shield configuration. Key information:
|
strict_pci_certified |
Boolean |
Indicates whether this customer origin group is restricted to Payment Card Industry (PCI)-compliant Origin Shield POPs. Valid values are: true | false
|
tls_settings |
Object |
Contains settings that define TLS behavior. Delivery over TLS requires a TLS certificate, an edge CNAME, and a CNAME record. |
The tls_settings object defines TLS behavior through the following properties:
Name | Data Type | Description |
---|---|---|
allow_self_signed |
Boolean |
Indicates whether our CDN will allow delivery when an edge server detects a self-signed certificate from the origin server during the TLS handshake. The corresponding MCC setting is Disallow Self-Signed. If you set the allow_self_signed property to True, then the Disallow Self-Signed option will be set to False. Default Value: False
|
public_keys_to_verify |
Array of string values |
Contains a list of SHA-1 digests for the public key of your end-entity (i.e., leaf) certificate. |
sni_hostname |
String |
Indicates the hostname that will be sent as a SNI hint during the TLS handshake for this customer origin group. Our service will not use Server Name Indication (SNI) during the TLS handshake for this customer origin group when this property is set to null or an empty value. |
Response
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 contains the following response element:
Name | Data Type | Description |
---|---|---|
host_header |
String |
Indicates the value that will be assigned to the Host header for all requests to this customer origin configuration. |
id |
Integer |
Indicates the customer origin group's system-defined ID. |
name |
String |
Indicates the customer origin group's name. |
network_type_id |
Integer |
Indicates the method for resolving hostnames through its system-defined ID. Valid values are:
Use the Get Available Hostname Resolution Methods endpoint to retrieve a list of methods and their system-defined IDs. |
shield_pops |
Array of string values |
Contains this customer origin group's Origin Shield configuration. Key information:
|
strict_pci_certified |
Boolean |
Indicates whether this customer origin group is restricted to Payment Card Industry (PCI)-compliant Origin Shield POPs. Valid values are: true | false
|
tls_settings |
Object |
Contains settings that define TLS behavior. Delivery over TLS requires a TLS certificate, an edge CNAME, and a CNAME record. |
The tls_settings object defines TLS behavior through the following properties:
Name | Data Type | Description |
---|---|---|
allow_self_signed |
Boolean |
Indicates whether our CDN will allow delivery when an edge server detects a self-signed certificate from the origin server during the TLS handshake. The corresponding MCC setting is Disallow Self-Signed. If you set the allow_self_signed property to True, then the Disallow Self-Signed option will be set to False. |
public_keys_to_verify |
Array of string values |
Contains a list of SHA-1 digests for the public key of your end-entity (i.e., leaf) certificate. |
sni_hostname |
String |
Indicates the hostname that will be sent as a SNI hint during the TLS handshake for this customer origin group. Our service will not use Server Name Indication (SNI) during the TLS handshake for this customer origin group when this property is set to null or an empty value. |
The response body for an unsuccessful request may contain an error element that provides additional information.
Sample Request and Response (JSON)
A sample JSON request is shown below.
POST https://api.vdms.io/cdn/origins/v0.5/http-large/groups HTTP/1.1
Accept: application/json
Content-Type: application/json
Host:api.vdms.io
{ "name": "marketing", "http_host_header": "www.example.com" }
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: 188
{ "id": 2641409, "name": "marketing", "host_header": "www.example.com", "shield_pops": [], "network_type_id": 1, "strict_pci_certified": false, "tls_settings": null }
Create a customer origin group for the ADN delivery platform.
Request
A request to create a customer origin group for the ADN platform is described below.
HTTP Method | Request URI |
---|---|
POST |
https://api.vdms.io/cdn/origins/v0.5/adn/groups |
This endpoint only takes advantage of common request headers.
Request parameters for this endpoint are described below.
Name | Data Type | Description |
---|---|---|
gateway Required |
Object |
Describes this customer origin group's ADN gateway configuration. |
host_header |
String |
Indicates the value that will be assigned to the Host header for all requests to this customer origin configuration. |
name Required |
String |
Indicates the customer origin group's name. |
network_type_id |
Integer |
Indicates the method for resolving hostnames through its system-defined ID. Valid values are:
Use the Get Available Hostname Resolution Methods endpoint to retrieve a list of methods and their system-defined IDs. Default Value: 1
|
tls_settings |
Object |
Contains settings that define TLS behavior. Delivery over TLS requires a TLS certificate, an edge CNAME, and a CNAME record. |
validation_path |
String |
Indicates the URL to a sample asset. A set of optimal ADN gateway servers for this customer origin group is determined through the delivery of this sample asset. |
The gateway object describes an ADN gateway configuration through the following properties:
Name | Data Type | Description |
---|---|---|
follow_redirect Required |
Boolean |
Indicates whether our edge servers will respect a URL redirect when validating the set of optimal ADN gateway servers for this customer origin group. |
The tls_settings object defines TLS behavior through the following properties:
Name | Data Type | Description |
---|---|---|
allow_self_signed |
Boolean |
Indicates whether our CDN will allow delivery when an edge server detects a self-signed certificate from the origin server during the TLS handshake. The corresponding MCC setting is Disallow Self-Signed. If you set the allow_self_signed property to True, then the Disallow Self-Signed option will be set to False. Default Value: False
|
public_keys_to_verify |
Array of string values |
Contains a list of SHA-1 digests for the public key of your end-entity (i.e., leaf) certificate. |
sni_hostname |
String |
Indicates the hostname that will be sent as a SNI hint during the TLS handshake for this customer origin group. Our service will not use Server Name Indication (SNI) during the TLS handshake for this customer origin group when this property is set to null or an empty value. |
Response
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 contains the following response element:
Name | Data Type | Description |
---|---|---|
gateway |
Object |
Describes this customer origin group's ADN gateway configuration. |
host_header |
String |
Indicates the value that will be assigned to the Host header for all requests to this customer origin configuration. |
id |
Integer |
Indicates the customer origin group's system-defined ID. |
name |
String |
Indicates the customer origin group's name. |
network_type_id |
Integer |
Indicates the method for resolving hostnames through its system-defined ID. Valid values are:
Use the Get Available Hostname Resolution Methods endpoint to retrieve a list of methods and their system-defined IDs. |
tls_settings |
Object |
Contains settings that define TLS behavior. Delivery over TLS requires a TLS certificate, an edge CNAME, and a CNAME record. |
validation_path |
String |
Indicates the URL to a sample asset. A set of optimal ADN gateway servers for this customer origin group is determined through the delivery of this sample asset. |
The gateway object describes an ADN gateway configuration through the following properties:
Name | Data Type | Description |
---|---|---|
follow_redirect |
Boolean |
Indicates whether our edge servers will respect a URL redirect when validating the set of optimal ADN gateway servers for this customer origin group. |
gateway_reselection |
Boolean |
Returns False. |
pop_last_update |
String |
Indicates the timestamp at which the most recent ADN gateway selection took place. |
pops |
Array of objects |
Contains this customer origin group's ADN gateway configuration. |
selected |
Boolean |
Indicates whether an ADN gateway has been associated with this customer origin group. |
selection_error |
String |
Indicates the error message that occurred during ADN gateway selection. Returns a null value if an error did not occur during ADN gateway selection. |
selection_last_requested |
String |
Indicates the timestamp at which you manually requested ADN gateway selection for this customer origin group. |
The pops array describes each ADN gateway configuration through the following properties:
Name | Data Type | Description |
---|---|---|
city |
String |
Indicates the ADN gateway's city. |
code |
String |
Indicates the ADN gateway's POP code. |
ordinal |
Integer |
Indicates the ADN gateway's failover position. Valid values are:
|
region |
String |
Indicates the ADN gateway's region. |
The tls_settings object defines TLS behavior through the following properties:
Name | Data Type | Description |
---|---|---|
allow_self_signed |
Boolean |
Indicates whether our CDN will allow delivery when an edge server detects a self-signed certificate from the origin server during the TLS handshake. The corresponding MCC setting is Disallow Self-Signed. If you set the allow_self_signed property to True, then the Disallow Self-Signed option will be set to False. |
public_keys_to_verify |
Array of string values |
Contains a list of SHA-1 digests for the public key of your end-entity (i.e., leaf) certificate. |
sni_hostname |
String |
Indicates the hostname that will be sent as a SNI hint during the TLS handshake for this customer origin group. Our service will not use Server Name Indication (SNI) during the TLS handshake for this customer origin group when this property is set to null or an empty value. |
The response body for an unsuccessful request may contain an error element that provides additional information.
Sample Request and Response (JSON)
A sample JSON request is shown below.
POST https://api.vdms.io/cdn/origins/v0.5/adn/groups HTTP/1.1
Accept: application/json
Content-Type: application/json
Host:api.vdms.io
{ "name": "sales", "host_header": "sales.example.com", "validation_path": "http://sales.example.com/_images/PerformanceTestObject_5k.gif", "gateway": { "follow_redirect": true } }
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: 446
{ "id": 2641674, "name": "sales", "host_header": "sales.example.com", "validation_path": "http://sales.example.com/_images/PerformanceTestObject_5k.gif", "network_type_id": 1, "gateway": { "selection_last_requested": null, "follow_redirect": true, "pop_last_update": null, "selection_error": null, "selected": false, "gateway_reselection": false, "pops": [] }, "tls_settings": null }