This endpoint is currently available as a BETA. Business-critical processes should not depend on this functionality.
Update a customer origin group's configuration through either of the following platform-specific endpoints:
Use the Add Origin Entry, Delete Origin Entry, and Update Origin Entry endpoints to manage a customer origin group's origin entries.
The Update Customer Origin Group endpoints do not support Azure Block Blob origin groups.
Use the cdn.origins scope to authenticate and authorize requests for the Origins API.
Update a customer origin group for the HTTP Large delivery platform.
Request
A request to update a customer origin group for the HTTP Large platform is described below.
HTTP Method | Request URI |
---|---|
PUT |
https://api.vdms.io/cdn/origins/v0.5/http-large/groups/Customer Origin Group ID |
Define the following variable when submitting the above request:
VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). | Description |
---|---|
Required |
Replace this variable with the desired origin group's system-defined ID. Use the Get All Customer Origin Groups (HTTP Large) endpoint to retrieve a list of origin entries and their system-defined IDs. |
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. |
id |
Integer |
Indicates the customer origin group's system-defined ID. |
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.
PUT https://api.vdms.io/cdn/origins/v0.5/http-large/groups/2641409 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host:api.vdms.io
{ "name": "marketing", "host_header": "marketing.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": "marketing.example.com", "shield_pops": [], "network_type_id": 1, "strict_pci_certified": false, "tls_settings": null }
Update a customer origin group for the ADN delivery platform.
Request
A request to update a customer origin group for the ADN platform is described below.
HTTP Method | Request URI |
---|---|
PUT |
https://api.vdms.io/cdn/origins/v0.5/adn/groups/Customer Origin Group ID |
Define the following variable when submitting the above request:
VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). | Description |
---|---|
Required |
Replace this variable with the desired origin group's system-defined ID. Use the Get All Customer Origin Groups (ADN) endpoint to retrieve a list of origin entries and their system-defined IDs. |
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. |
id |
Integer |
Indicates the customer origin group's system-defined ID. |
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 Required |
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. |
gateway_reselection |
Boolean |
Set to True to request ADN gateway reselection. |
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.
PUT https://api.vdms.io/cdn/origins/v0.5/adn/groups/2641678 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host:api.vdms.io
{ "name": "sales", "host_header": "www.example.com", "gateway": { "follow_redirect": true, "gateway_reselection": true }, "validation_path": "http://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: 346
{ "id": 2641678, "name": "sales", "host_header": "www.example.com", "validation_path": "http://www.example.com", "network_type_id": 1, "gateway": { "selection_last_requested": "2022-06-18T01:09:36Z", "follow_redirect": true, "pop_last_update": "2019-08-08T20:30:45Z", "selection_error": null, "selected": false, "gateway_reselection": false, "pops": [] }, "tls_settings": null }