Skip to main content
Version: 2.9.0

Node (v1) - Retrieve Information About Managed Devices

Introduction

The Superna Eyeglass REST API - v1 Node allows for the retrieval of information about managed devices, access zones, and SyncIQ policies, providing detailed insights and configuration data for effective management of resources.

Endpoints

GET /v1/nodes

Description: Returns all Superna Eyeglass Managed Devices.

Response Class (Status 200):

[
{
"id": "string",
"ip": "string",
"name": "string"
}
]

Response Content Type: application/json

Parameters:

ParameterValueDescriptionParameter TypeData Type
--No parameters required.--

Response Codes:

  • 200 OK: Devices successfully retrieved.
  • default: Error payload, see response structure.

Response Messages:

  • default (Error Payload):
{
"code": 0,
"message": "string"
}

GET /v1/nodes/{id}

Description: Retrieves a specific Superna Eyeglass Managed Device by its ID.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring

Response Codes:

  • 200 OK - Returns the node information.
  • default - Error payload.

Example Response:

{
"id": "string",
"ip": "string",
"name": "string"
}

GET /v1/nodes/{id}/policies

Description: Returns the syncIQ policies for a specific Superna Eyeglass Managed Device by its ID.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
foReadinessfalse (default)Retrieve also failover readiness status detailsqueryboolean

Response Codes:

  • 200 OK - Returns the syncIQ policies information.
  • default - Error payload.

Example Response:

[
{
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
],
"target": {
"id": "string",
"ip": "string",
"name": "string"
},
"zone": {
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
]
}
}
]

GET /v1/nodes/{id}/policies/{name}

Description: Returns the syncIQ policy for a specific Superna Eyeglass Managed Device by its ID and the policy name.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
namerequiredName of the policypathstring

Response Codes:

  • 200 OK - Returns the syncIQ policy information.
  • default - Error payload.

Example Response:

{
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
],
"target": {
"id": "string",
"ip": "string",
"name": "string"
},
"zone": {
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
]
}
}

GET /v1/nodes/{id}/pools

Description: Returns the pools for a specific Superna Eyeglass Managed Device by its ID.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
foReadinessfalse (default)Retrieve also failover readiness status detailsqueryboolean

Response Codes:

  • 200 OK - Returns the pool information for the node.
  • default - Error payload.

Example Response:

[
{
"failoverReadiness": {
"status": "OK"
},
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
],
"zone": "string"
}
]

GET /v1/nodes/{id}/pools/{name}

Description: Returns the pool by its name on a given Superna Eyeglass Managed Device.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
namerequiredName of the pool (groupName:subnetName:poolName)pathstring

Response Codes:

  • 200 OK - Returns the pool information.
  • default - Error payload.

Example Response:

{
"failoverReadiness": {
"status": "OK"
},
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
],
"zone": "string"
}

GET /v1/nodes/{id}/zones

Description: Returns the access zones for a given Superna Eyeglass Managed Device.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
foReadinessfalse (default)Retrieve also failover readiness status detailsqueryboolean

Response Codes:

  • 200 OK - Returns the zones information.
  • default - Error payload.

Example Response:

[
{
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
]
}
]

GET /v1/nodes/{id}/zones/{name}

Description: Find job by zone name for a given Superna Eyeglass Managed Device.

Parameters:

ParameterValueDescriptionParameter TypeData Type
idrequiredID of the node to retrievepathstring
namerequiredName of the zonepathstring

Response Codes:

  • 200 OK - Returns the zone information.
  • default - Error payload.

Example Response:

{
"failoverReadiness": {
"status": "OK"
},
"id": "string",
"name": "string",
"readinessDetail": [
{
"name": "string",
"reason": "string",
"status": {
"status": "OK"
},
"statusChildren": [
{}
]
}
]
}