Download OpenAPI specification:Download
This spec defines the API provided by the application to validate authorization for the passed role.
Get K3s pod monitoring information.
namespace required | string |
{- "namespace": "string",
- "pods": [
- {
- "name": "string",
- "ready": "string",
- "status": "string",
- "restarts": "string",
- "age": "string",
- "ip": "string",
- "node": "string",
- "nominatedMode": "string",
- "readinessGate": "string"
}
]
}
Get K3s cluster resources.
namespace required | string Namespace of the pod. |
{- "statefulSetApps": {
- "statefulSetApps": [
- {
- "name": "string",
- "ready": "string",
- "age": "string"
}
]
}, - "replicaSetApps": {
- "replicaSetApps": [
- {
- "name": "string",
- "desired": "string",
- "current": "string",
- "ready": "string",
- "age": "string"
}
]
}, - "deploymentApps": {
- "deploymentApps": [
- {
- "name": "string",
- "ready": "string",
- "upToDate": "string",
- "available": "string",
- "age": "string"
}
]
}, - "servicePods": {
- "pods": [
- {
- "name": "string",
- "serviceType": "string",
- "clusterIP": "string",
- "externalIP": "string",
- "ports": "string"
}
]
}, - "pods": {
- "namespace": "string",
- "pods": [
- {
- "name": "string",
- "ready": "string",
- "status": "string",
- "restarts": "string",
- "age": "string",
- "ip": "string",
- "node": "string",
- "nominatedMode": "string",
- "readinessGate": "string"
}
]
}
}
{- "setupconfig": [
- {
- "version": "string",
- "type": "string",
- "mode": "string",
- "platform": "string",
- "secure": "string",
- "virtualIP": "string",
- "nodeCount": "string",
- "hostIP": "string",
- "PeerIPs": "string",
- "NodeIPs": "string",
- "user": "string",
- "installDir": "string",
- "configFile": "string",
- "bashEvnFile": "string",
- "build": "string",
- "timestamp": "string",
- "workDir": "string"
}
], - "nodes": {
- "nodes": [
- {
- "name": "string",
- "status": "string",
- "roles": "string",
- "age": "string",
- "version": "string",
- "active": "string",
- "arch": "string",
- "hostname": "string",
- "os": "string"
}
]
}
}
{- "deploymentConfig": {
- "setupconfig": [
- {
- "version": "string",
- "type": "string",
- "mode": "string",
- "platform": "string",
- "secure": "string",
- "virtualIP": "string",
- "nodeCount": "string",
- "hostIP": "string",
- "PeerIPs": "string",
- "NodeIPs": "string",
- "user": "string",
- "installDir": "string",
- "configFile": "string",
- "bashEvnFile": "string",
- "build": "string",
- "timestamp": "string",
- "workDir": "string"
}
], - "nodes": {
- "nodes": [
- {
- "name": "string",
- "status": "string",
- "roles": "string",
- "age": "string",
- "version": "string",
- "active": "string",
- "arch": "string",
- "hostname": "string",
- "os": "string"
}
]
}
}, - "resources": {
- "statefulSetApps": {
- "statefulSetApps": [
- {
- "name": "string",
- "ready": "string",
- "age": "string"
}
]
}, - "replicaSetApps": {
- "replicaSetApps": [
- {
- "name": "string",
- "desired": "string",
- "current": "string",
- "ready": "string",
- "age": "string"
}
]
}, - "deploymentApps": {
- "deploymentApps": [
- {
- "name": "string",
- "ready": "string",
- "upToDate": "string",
- "available": "string",
- "age": "string"
}
]
}, - "servicePods": {
- "pods": [
- {
- "name": "string",
- "serviceType": "string",
- "clusterIP": "string",
- "externalIP": "string",
- "ports": "string"
}
]
}, - "pods": {
- "namespace": "string",
- "pods": [
- {
- "name": "string",
- "ready": "string",
- "status": "string",
- "restarts": "string",
- "age": "string",
- "ip": "string",
- "node": "string",
- "nominatedMode": "string",
- "readinessGate": "string"
}
]
}
}, - "servicesStatus": {
- "services": [
- {
- "serviceName": "string",
- "version": "string",
- "active": "string",
- "status": "string",
- "memory": "string",
- "cpu": "string",
- "nodeIP": "string"
}
]
}, - "nodes": {
- "nodes": [
- {
- "name": "string",
- "status": "string",
- "roles": "string",
- "age": "string",
- "version": "string",
- "active": "string",
- "arch": "string",
- "hostname": "string",
- "os": "string"
}
]
}, - "pods": [
- {
- "namespace": "string",
- "pods": [
- {
- "name": "string",
- "ready": "string",
- "status": "string",
- "restarts": "string",
- "age": "string",
- "ip": "string",
- "node": "string",
- "nominatedMode": "string",
- "readinessGate": "string"
}
]
}
]
}
Send an alert to EFA (including health-related alerts). This API is available to authenticated clients only.
alert | string A base64-encoded JSON document representing the alert. |
{- "message": "string"
}
Send an alert to EFA (including health-related alerts). This API is available to local (on-machine) clients only, via the Monitor service's restricted Unix-domain socket.
alert | string A base64-encoded JSON document representing the alert. |
{- "message": "string"
}
Capture the supportsave data and return the file name in the response.
Supportsave request.
fabric | string |
device-ips | string |
fabric-all | boolean |
{- "fabric": "string",
- "device-ips": "10.24.131.3,162.101.21.2,192.24.32.204",
- "fabric-all": true
}
{- "ss_file_name": "/var/log/efa/efa_2020-11-16T23:33:03.logs.zip"
}
Backup all EFA configurations.
Configuration backup request.
fabric | string |
device-ips | Array of strings unique |
remote | boolean |
fabric-all | boolean |
{- "fabric": "string",
- "device-ips": [
- "10.10.10.10",
- "10.10.10.11",
- "10.10.10.12"
], - "remote": true,
- "fabric-all": true
}
{- "location": "/var/log/efa/backup/EFA-2020-11-16T23.33.03.tar"
}
Restore all EFA configurations.
tar_name required | string Name of the backup archive file. |
{- "tar_name": "EFA-2020-11-16T23.33.03.tar"
}
{- "id": "ade23a74-4ead-11eb-ae93-0242ac130002"
}
{- "items": [
- {
- "uuid": "string",
- "status": "initiated",
- "start_time": "string",
- "last_modified_time": "string",
- "message": "string",
- "request": {
- "tar_name": "EFA-2020-11-16T23.33.03.tar"
}
}
]
}
Get specified subinterface or all subinterfaces.
name | string Name of subinterface. |
{- "items": [
- {
- "vlan_id": 20,
- "ip_subnet": "192.168.2.1/24",
- "ipv6_subnet": "2000::1/64",
- "interface": "eth0",
- "name": "eth0.20"
}
]
}
Create subinterface.
Create a subinterface.
name required | string Name of the subinterface. |
vlan_id required | integer VLAN ID of the subinterface. |
ip_subnet required | string IP address including subnet mask of subinterface. |
ipv6_subnet | string IPv6 address including subnet mask of subinterface. |
{- "name": "eth0.20",
- "vlan_id": 20,
- "ip_subnet": "192.168.2.1/24",
- "ipv6_subnet": "2000::1/64"
}
{- "vlan_id": 20,
- "ip_subnet": "192.168.2.1/24",
- "ipv6_subnet": "2000::1/64",
- "interface": "eth0",
- "name": "eth0.20"
}
Delete subinterface.
name required | string Name of the subinterface. |
{- "vlan_id": 20,
- "ip_subnet": "192.168.2.1/24",
- "ipv6_subnet": "2000::1/64",
- "interface": "eth0",
- "name": "eth0.20"
}
[- {
- "subinterface": "efa-sub-200",
- "node1": {
- "name1": "node1",
- "ip1": "192.168.102.1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2"
}
}
]
Adding static IPs to subinterface.
Adding static IPs.
subinterface required | string Name of the subinterface where the static IPs will be assigned. |
ip1 required | string First static IP address+mask in CIDR format. |
ip2 required | string Second static IP address+mask in CIDR format. |
{- "subinterface": "efa-sub-200",
- "ip1": "192.168.102.1/24",
- "ip2": "192.168.102.2/24"
}
{- "subinterface": "efa-sub-200",
- "node1": {
- "name1": "node1",
- "ip1": "192.168.102.1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2"
}
}
Removing static IPs of subinterface.
name required | string Name of the subinterface. |
{- "subinterface": "efa-sub-200",
- "node1": {
- "name1": "node1",
- "ip1": "192.168.102.1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2"
}
}
{- "items": [
- {
- "route_src": "192.168.34.40",
- "route_to": "10.20.0.0/16",
- "route_via": "192.168.34.45"
}, - {
- "route_src": "192.168.100.21",
- "route_to": "10.30.40.0/24",
- "route_via": "192.168.100.1"
}, - {
- "route_src": "2000::1",
- "route_to": "3000:1::2/24",
- "route_via": "2000::2"
}
]
}
Create VirtualRoute
Create a virtual route.
route_src required | string IP/IPv6 address of virtual route source. |
route_to required | string CIDR spec of virtual route target network. |
route_via required | string IP/IPv6 address of virtual route next-hop. |
{- "route_src": "192.168.34.40",
- "route_to": "10.20.0.0/16",
- "route_via": "192.168.34.45"
}
{- "route_src": "192.168.34.40",
- "route_to": "10.20.0.0/16",
- "route_via": "192.168.34.45"
}
Delete virtual route.
Delete a virtual route.
route_src required | string IP/IPv6 address of virtual route source. |
route_to required | string CIDR spec of virtual route target network. |
route_via required | string IP/IPv6 address of virtual route next-hop. |
{- "route_src": "192.168.34.40",
- "route_to": "10.20.0.0/16",
- "route_via": "192.168.34.45"
}
{- "route_src": "192.168.34.40",
- "route_to": "10.20.0.0/16",
- "route_via": "192.168.34.45"
}
Gets the HQI (Health Quality Indicator) of the EFA System
resource | string Health resource path associated to the alert being sent |
{- "Resource": "/App/System/Security/Certificate",
- "HQI": {
- "Color": "yellow",
- "Value": 1
}, - "StatusText": "Provided resource is invalid"
}
Gets HQI values at Certificate and any metadata providing details for health deterioration
resource | string Health resource path associated to the alert being sent |
{- "Resource": "/App/System/Security/Certificate",
- "HQI": {
- "Color": "yellow",
- "Value": 1
}, - "Contributors": [
- "System"
], - "StatusText": "Provided resource is invalid"
}