Storage

Available endpoints:
NameMethodPath
get/v3/storage
post/v3/storage
get/v3/storage/{id}
post/v3/storage/{id}
delete/v3/storage/{id}

List of CDN Storages

gethttps://api.cdn77.com/v3/storage

Responses

200List of all storages returned.
// response
[
  {
    "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
    "label": "My storage",
    "server": {
      "hostname": "push-XX.cdn77.com",
      "location": "North America - Chicago"
    },
    "credentials": {
      "username": "user_abc123",
      "password": "Y0urS3cr3tP4ssw0rd"
    }
  }
]

Add CDN Storage

posthttps://api.cdn77.com/v3/storage

Request bodyrequired

locationstring
labelstring
passwordstring

Responses

201CDN Storage was created.
// response
{
  "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
  "label": "My storage",
  "server": {
    "hostname": "push-XX.cdn77.com",
    "location": "North America - Chicago"
  },
  "credentials": {
    "username": "user_abc123",
    "password": "Y0urS3cr3tP4ssw0rd"
  }
}
404Unable to create CDN Storage, requested server doesn't exist.
422Unable to create CDN Storage with the requested parameters.

Detail of CDN Storage

gethttps://api.cdn77.com/v3/storage/{id}

Request parameters

idrequiredstring in path

Responses

200Storage detail returned.
// response
{
  "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
  "label": "My storage",
  "server": {
    "hostname": "push-XX.cdn77.com",
    "location": "North America - Chicago"
  },
  "credentials": {
    "username": "user_abc123",
    "password": "Y0urS3cr3tP4ssw0rd"
  }
}
404Storage does not exist.

Edit CDN Storage

posthttps://api.cdn77.com/v3/storage/{id}

Request parameters

idrequiredstring in path

Request bodyrequired

passwordstring

Responses

204Storage updated.
404Storage does not exist.
422Unable to create CDN Storage with requested parameters.

Delete CDN Storage

deletehttps://api.cdn77.com/v3/storage/{id}

Request parameters

idrequiredstring in path

Responses

204Storage deleted.
404Storage does not exist.