ExOvh v0.3.2 ExOvh.V1.Webstorage

NOTE: This is a deprecated service!!!

Helper functions for building queries directed at the /cdn/webstorage part of the OVH API.

Functions Summary

Function Description OVH API call
get_services/0 Get a list of all webstorage cdn services. GET /v1/​cdn/webstorage
get_service/1 Get the domain, server and storage limits for a specific webstorage cdn service GET /v1/​cdn/webstorage​/{serviceName}
get_service_info/1 Get a administrative details for a specific webstorage cdn service GET /v1/​cdn/webstorage​/{serviceName}/serviceInfos
get_service_stats/2 Get statistics for a specific webstorage cdn service GET /v1/​cdn/webstorage​/{serviceName}/statistics
get_credentials/1 Get credentials for using the swift compliant api GET /v1/​cdn/webstorage​/{serviceName}/statistics

Example

ExOvh.V1.Webstorage.get_services() |> ExOvh.request()

Summary

Functions

Get credentials for using the swift compliant api

Get the domain, server and storage limits for a specific webstorage cdn service

Get a administrative details for a specific webstorage cdn service

Get statistics for a specific webstorage cdn service

​Get a list of all webstorage cdn services available for the client account

Functions

get_credentials(service_name)
get_credentials(String.t) :: HTTPipe.Conn.t

Get credentials for using the swift compliant api

Api call

GET /v1/​cdn/webstorage​/{serviceName}/credentials

Arguments

  • service_name: Name of the Webstorage CDN service - assigned by OVH.

Example

alias ExOvh.V1.Webstorage
service_name = "cdnwebstorage-????"
conn = Webstorage.get_webstorage_credentials(service_name)
{:ok, conn} = ExOvh.Ovh.request(conn)
get_service(service_name)
get_service(String.t) :: HTTPipe.Conn.t

Get the domain, server and storage limits for a specific webstorage cdn service

Api call

GET /v1/​cdn/webstorage​/{serviceName}

Arguments

  • service_name: Name of the Webstorage CDN service - assigned by OVH.

Example

alias ExOvh.V1.Webstorage
service_name = "cdnwebstorage-????"
conn = Webstorage.get_service(service_name)
{:ok, conn} = ExOvh.Ovh.request(conn)
%{
  "domain" => domain,
  "storageLimit => storage_limit,
  "server" => server
 } = conn.response.body
get_service_info(service_name)
get_service_info(String.t) :: HTTPipe.Conn.t

Get a administrative details for a specific webstorage cdn service

Api call

GET /v1/​cdn/webstorage​/{serviceName}/serviceInfos

Arguments

  • service_name: Name of the Webstorage CDN service - assigned by OVH.

Example

alias ExOvh.V1.Webstorage
service_name = "cdnwebstorage-????"
Webstorage.get_service_info(service_name)
{:ok, conn} = ExOvh.Ovh.request(conn)
get_service_stats(service_name, opts \\ [])
get_service_stats(String.t, Keyword.t) :: HTTPipe.Conn.t

Get statistics for a specific webstorage cdn service

Api call

GET /v1/​cdn/webstorage​/{serviceName}/statistics

Arguments

  • service_name: Name of the Webstorage CDN service - assigned by OVH.
  • options:
    • period can be "month", "week" or "day"
    • type can be "backend", "quota" or "cdn"

Example

alias ExOvh.V1.Webstorage
service_name = "cdnwebstorage-????"
conn = Webstorage.get_service_stats(service_name, [period: "month", type: "backend"])
{:ok, conn} = ExOvh.Ovh.request(conn)
get_services()
get_services() :: HTTPipe.Conn.t

​Get a list of all webstorage cdn services available for the client account

Api call

GET /v1/​cdn/webstorage

Example

ExOvh.V1.Webstorage.get_services() |> ExOvh.request()