Spectrum Applications
Create Spectrum application using a name for the origin
POST /zones/{zone_id}/spectrum/apps
Creates a new Spectrum application from a configuration using a name for the origin.
Responses
200 Create Spectrum application using a name for the origin response.
Data is at
body["result"]
null4XX Create Spectrum application using a name for the origin response failure.
{
"errors": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"messages": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"result": {},
"success": "*boolean*"
}List Spectrum applications
GET /zones/{zone_id}/spectrum/apps
Retrieves a list of currently existing Spectrum applications inside a zone.
Responses
200 List Spectrum applications response.
Data is at
body["result"]
null4XX List Spectrum applications response failure.
{
"errors": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"messages": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"result": {},
"success": "*boolean*"
}Update Spectrum application configuration using a name for the origin
PUT /zones/{zone_id}/spectrum/apps/{app_id}
Updates a previously existing application's configuration that uses a name for the origin.
Responses
200 Update Spectrum application configuration using a name for the origin response.
Data is at
body["result"]
null4XX Update Spectrum application configuration using a name for the origin response failure.
{
"errors": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"messages": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"result": {},
"success": "*boolean*"
}Get Spectrum application configuration
GET /zones/{zone_id}/spectrum/apps/{app_id}
Gets the application configuration of a specific application inside a zone.
Responses
200 Get Spectrum application configuration response.
Data is at
body["result"]
null4XX Get Spectrum application configuration response failure.
{
"errors": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"messages": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"result": {},
"success": "*boolean*"
}Delete Spectrum application
DELETE /zones/{zone_id}/spectrum/apps/{app_id}
Deletes a previously existing application.
Responses
200 Delete Spectrum application response.
Data is at
body["result"]
{
"id": "*string*"
}4XX Delete Spectrum application response failure.
{
"errors": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"messages": [
{
"code": "*integer*",
"documentation_url": "*string*",
"message": "*string*",
"source": {
"pointer": "*string*"
}
}
],
"result": {},
"success": "*boolean*"
}
Summary
Functions
@spec client(Restlax.Resource.action_options()) :: module()
@spec create( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: {:ok, map()} | {:error, term()}
@spec create!( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: map() | no_return()
@spec delete(id :: term(), opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec delete!(id :: term(), opts :: Restlax.Resource.action_options()) :: map() | no_return()
@spec index(opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec index!(opts :: Restlax.Resource.action_options()) :: map() | no_return()
@spec show(id :: term(), opts :: Restlax.Resource.action_options()) :: {:ok, map()} | {:error, term()}
@spec show!(id :: term(), opts :: Restlax.Resource.action_options()) :: map() | no_return()
@spec update( id :: term(), body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: {:ok, map()} | {:error, term()}
@spec update!( id :: term(), body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: map() | no_return()