Download OpenAPI specification:Download
This spec defines the API provided by the application to validate authorization for the passed role.
{- "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"
}
]
}
}
{- "nodes": [
- {
- "name": "string",
- "status": "string",
- "role": "string",
- "IP": "string",
- "galera_host": true,
- "galera_size": 0,
- "reason": "string",
- "pod_count_running": 0,
- "pod_count_failed": 0,
- "pod_count_stopped": 0
}
]
}
{- "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"
}
]
}
]
}
Install 3rd Party Certificates
Install 3rd Party Certificates
certificate | string Custom Certificate in pem format to be installed for EFA |
key | string Custom Key in pem format to be installed for EFA |
cacert | string Custom CA Certificate in pem format to be installed for EFA |
{- "certificate": "string",
- "key": "string",
- "cacert": "string"
}
{- "status": "Success"
}
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 |
file-name | string Optional file name. If provided, same name will be used |
{- "fabric": "string",
- "device-ips": "10.24.131.3,162.101.21.2,192.24.32.204",
- "fabric-all": true,
- "file-name": "string"
}
{- "ss_file_name": "/var/log/efa/efa_2020-11-16T23:33:03.logs.zip",
- "ss_file_name_remote": "10.37.34.151:/home/user/defect_logs/efa_2023-02-28T08-24-37.821.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",
- "ip3": "2000::1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2",
- "ip4": "2000::1"
}
}
]
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 IPv4 address+mask in CIDR format. |
ip2 required | string Second static IPv4 address+mask in CIDR format. |
ip3 | string First static IPv6 address+mask in CIDR format. |
ip4 | string Second static IPv6 address+mask in CIDR format. |
{- "subinterface": "efa-sub-200",
- "ip1": "192.168.102.1/24",
- "ip2": "192.168.102.2/24",
- "ip3": "2000::1/64",
- "ip4": "2000::2/64"
}
{- "subinterface": "efa-sub-200",
- "node1": {
- "name1": "node1",
- "ip1": "192.168.102.1",
- "ip3": "2000::1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2",
- "ip4": "2000::1"
}
}
Removing static IPs of subinterface.
name required | string Name of the subinterface. |
{- "subinterface": "efa-sub-200",
- "node1": {
- "name1": "node1",
- "ip1": "192.168.102.1",
- "ip3": "2000::1"
}, - "node2": {
- "name2": "node2",
- "ip2": "192.168.102.2",
- "ip4": "2000::1"
}
}
Get specified virtual route or all virtual routes.
{- "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 IPv4/IPv6 address of virtual route source. |
route_to required | string IPv4/IPv6 CIDR spec of virtual route target network. |
route_via required | string IPv4/IPv6 address of virtual route next-hop. |
{- "route_src": "192.168.34.40 or 2000::1",
- "route_to": "10.20.0.0/16 or 3000::/64",
- "route_via": "192.168.34.45 or 2000::2"
}
{- "route_src": "192.168.34.40 or 2000::1",
- "route_to": "10.20.0.0/16 or 3000::/64",
- "route_via": "192.168.34.45 or 2000::2"
}
Delete virtual route.
Delete a virtual route.
route_src required | string IPv4/IPv6 address of virtual route source. |
route_to required | string IPv4/IPv6 CIDR spec of virtual route target network. |
route_via required | string IPv4/IPv6 address of virtual route next-hop. |
{- "route_src": "192.168.34.40 or 2000::1",
- "route_to": "10.20.0.0/16 or 3000::/64",
- "route_via": "192.168.34.45 or 2000::2"
}
{- "route_src": "192.168.34.40 or 2000::1",
- "route_to": "10.20.0.0/16 or 3000::/64",
- "route_via": "192.168.34.45 or 2000::2"
}
Gets the HQI (Health Quality Indicator) of the EFA System
resource | string Health resource path associated to the alert being sent |
detail | boolean Default: false Detail of health resource associated with the alert |
{- "items": [
- {
- "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": [
- "/App/System"
], - "StatusText": "Provided resource is invalid"
}