ExOvh v0.4.0 ExOvh.V1.Webstorage View Source
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()
Link to this section 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
Link to this section Functions
Link to this function
get_credentials(service_name)
View Source
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)
Link to this function
get_service(service_name)
View Source
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
Link to this function
get_service_info(service_name)
View Source
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)
Link to this function
get_service_stats(service_name, opts \\ [])
View Source
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)