ONEx API (0.0.1)

Download OpenAPI specification:Download

The Open Network Experiments API and Data Models

Configuration

set_config

Sets the ONEx configuration.

Request Body schema: application/json
Array of objects (Host)
object (Fabric)
object (Dataflow)
object (Chaos)

Configuration of chaos experiments

object (Insights)

Configuration of insights providing methods

Array of objects (L1SettingsProfile)

A list of Layer 1 settings profiles

Responses

Request samples

Content type
application/json
{
  • "hosts": [
    ],
  • "fabric": {
    },
  • "dataflow": {
    },
  • "chaos": {
    },
  • "insights": {
    },
  • "layer1_profiles": [
    ]
}

Response samples

Content type
application/json
{
  • "warnings": [
    ]
}

get_config

Gets the ONEx configuration.

Responses

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "fabric": {
    },
  • "dataflow": {
    },
  • "chaos": {
    },
  • "insights": {
    },
  • "layer1_profiles": [
    ]
}

State

set_state

Updates the state of ONEx configured experiment(s).

Request Body schema: application/json
object (State.Chaos)

Responses

Request samples

Content type
application/json
{
  • "chaos": {
    }
}

Response samples

Content type
application/json
{
  • "warnings": [
    ]
}

get_state

Gets the state of ONEx configured experiments.

Responses

Response samples

Content type
application/json
{
  • "chaos": {
    }
}

Metrics

get_metrics

Gets the requested fabric metrics.

Request Body schema: application/json
object (PortMetrics.Request)

Responses

Request samples

Content type
application/json
{
  • "port_metrics": {
    }
}

Response samples

Content type
application/json
{
  • "port_metrics": [
    ]
}