CDN

The VIS supports integration with various CDN providers, which are stored as a ‘CDN object’ in the system.


CDN Object

{
    "Id": "2106d0d5-e0c1-4287-a51c-db14f46092a3",
    "ConfigurationJson": "{...}",
    "Name": "live.origin.vualto.com"
}

Configuration Json

Schemas:

Cloudfront:

{
  "name": "Cloudfront",
  "type": "CLOUD_FRONT",
  "cdnSpecific": {
    "path": "/path-here",
    "distributionId": "distribution-id-here",
    "accessKey": "access-key-here",
    "secretKey": "secret-key-here",
    "region": "region-here" 
  }
}

LeaseWeb:

{
  "name": "LeaseWeb",
  "type": "LEASE_WEB",
  "cdnSpecific": {
    "host": "https://api.leasewebcdn.com/content/purge",
    "path": "['*']",
    "customerNumber": "customer-number",
    "zoneId": "zone-id-here",
    "secretKey": "secret-key-here"
  }
}

Level3:

{
  "name": "Level 3",
  "type": "LEVEL_3",
  "cdnSpecific": {
    "host": "host.level3.net/*",
    "notificationEmailAddresses": "email@vualto.com",
    "level3Key": "key-here",
    "level3Secret": "secret-here",
    "level3AccessGroup": "access-group-here"
  }
}

Supported Actions

POST /cdn/

Add or Update a CDN.

Request Body:

{
    "Id": "2106d0d5-e0c1-4287-a51c-db14f46092a3",
    "ConfigurationJson": "{...}",
    "Name": "live.origin.epvualto.com"
}

Note: id is required when updating a specific CDN, but is optional when adding.

Response: 200 OK


POST /cdn/clearcdncache/{id}

Clears the cache from the CDN by Id.

Request Body:

  AltPath {string} - Optional. Alternative path to one in Configuration Json for the CDN.

Response:

200 OK if the CDN was cleared.

or

204 No Content if no CDN was found.


PUT /cdn/{id}

Update a CDN by Id.

Request Body:

{
    "ConfigurationJson": "{...}",
    "Name": "live.origin.epvualto.com"
}

Response: 200 OK


GET /cdn/getcdnproviders/

Get all CDNs.

Response:

200 OK and a JSON array containing multiple CDN objects.


GET /cdn/{id}

Get a CDN by Id.

Response:

200 OK and JSON containing the CDN object.

or

204 No Content if no CDN was found.


DEL /cdn/{id}

Delete a CDN by Id.

Response: 200 OK or 204 No Content if no CDN was found by that Id.