Get the site's HD information
get
http://<SDWAN_TENANT_IP>/v1/admin/system/hd_info
Request
There are no request parameters for this operation.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Result OK
Root Schema : schema
Type:
Show Source
object
-
data: object
object
data
-
status: string
Example:
success
Example:
{
"status":"success",
"data":[
[
{
"hdInfo":[
[
{
"Active OS partition":"82%"
},
{
"/home/talariuser directory":"11%"
},
{
"WANOp Cache":"0%"
},
{
"hdUsageViewDetails":[
{
"user_partition_string":"Active OS partition"
},
{
"usage":16,
"file_path":"/tmp",
"acceptable_val":"100 MB",
"percent":16
},
{
"usage":2115,
"percent":15.89,
"home_acceptable_usages":"13 GB",
"home_file_path":"T2_Stats & T2_Config"
},
{
"WANOp Cache Size":"100GB",
"Used_disk_Cache":"0GB"
},
[
{
"df-l-output":[
{
"0-df":[
{
"filesystem":"devtmpfs"
},
{
"1kb":4062740
},
{
"used":0
},
{
"available":4062740
},
{
"pctused":"0%"
},
{
"mountedon":"/dev"
}
]
}
]
}
]
]
}
]
]
}
]
]
}
Nested Schema : hdInfo
Type:
Show Source
object
-
/home/talariuser directory: string
Example:
11%
-
Active OS partition: string
Example:
82%
-
hdUsageViewDetails: object
object
hdUsageViewDetails
-
WANOp Cache: string
Example:
0%
Nested Schema : hdUsageViewDetails
Type:
Show Source
object
-
acceptable_val: string
Example:
100 MB
-
file_path: string
Example:
/tmp
-
percent: string
Example:
16.00
-
usage: integer
Example:
16
-
Used_disk_Cache: string
Example:
0GB
-
user_partition_string: string
Example:
Active OS partition
-
WANOp Cache Size: string
Example:
100GB
Example:
[
{
"user_partition_string":"Active OS partition"
},
{
"usage":16,
"file_path":"/tmp",
"acceptable_val":"100 MB",
"percent":16
}
]
401 Response
Not Logged into the SDWAN-Edge device
Root Schema : 401NotLoggedin
Type:
Show Source
object
-
message: string
Example:
Not logged in.
-
status: string
Example:
fail
403 Response
Insufficient Userlevel
Root Schema : 403InsufficientUserLevel
Type:
Show Source
object
-
message: string
Example:
User Level for user <user_name> is not sufficient for this <URL value> operation.
-
required_user_level: string
Example:
ADMIN
-
status: string
Example:
fail
-
user_level: string
Example:
GUEST
-
user_name: string
Example:
username
405 Response
Invalid request method
Root Schema : 405ExpectedGet
Type:
Show Source
object
-
message: string
Example:
Operation must use a GET
-
status: string
Example:
fail
Examples
Example of Accessing the API with cURL
The following example shows how to get the Site's HD information like active OS parition and HD usage by submitting a GET request on the REST resource using cURL. If the request requires a timestamp, use the timestamp from the response of the /login API. For more information about cURL, see Use cURL.
curl -X GET \
-b cookies.txt \
"https://$IPADDR/v1/admin/system/hd_info"
Example of the Response Body
The following example shows the contents of the response body in JSON format.
{
"status": "success",
"data": [
[
{
"hdInfo": [
[
{
"Active OS partition": "73%"
},
{
"/home/talariuser directory": "17%"
},
{
"WANOp Cache": "0%"
},
{
"ssdLife": 99
},
{
"hdUsageViewDetails": [
{
"user_partition_string": "Active OS partition"
},
{
"usage": "31 MB",
"file_path": "/tmp",
"acceptable_val": "100 MB",
"percent": "31.00%"
},
{
"usage": "1 MB",
"file_path": "/var/lib/net-snmp/snmpd.conf",
"acceptable_val": "3 MB",
"percent": "33.33%"
},
{
"usage": "544 MB",
"file_path": "/var/log",
"acceptable_val": "600 MB",
"percent": "90.67%"
},
{
"usage": "11 MB",
"file_path": "/var/mail",
"acceptable_val": "12 MB",
"percent": "91.67%"
},
{
"usage": "0 MB",
"file_path": "/var/spool/mqueue-client",
"acceptable_val": "3 MB",
"percent": "0.00%"
},
{
"usage": "2145 MB",
"file_path": "System files",
"acceptable_val": "2.4 GB",
"percent": "87.28%"
},
{
"home_partition_string": "/home/talariuser directory"
},
{
"usage": "1 MB",
"percent": "0.83%",
"home_acceptable_usages": "120 MB",
"home_file_path": "/home/talariuser/backup/cores"
},
{
"usage": "349 MB",
"percent": "69.80%",
"home_acceptable_usages": "500 MB",
"home_file_path": "/home/talariuser/backup/diagnostics"
},
{
"usage": "1 MB",
"percent": "50.00%",
"home_acceptable_usages": "2 MB",
"home_file_path": "/home/talariuser/log/init.log"
},
{
"usage": "1 MB",
"percent": "0.17%",
"home_acceptable_usages": "575 MB",
"home_file_path": "/home/talariuser/packet.pcap"
},
{
"usage": "1 MB",
"percent": "0.17%",
"home_acceptable_usages": "575 MB",
"home_file_path": "/home/talariuser/pcapture.cap"
},
{
"usage": "1059 MB",
"percent": "3.04%",
"home_acceptable_usages": "34 GB",
"home_file_path": "Change Management"
},
{
"usage": "1002 MB",
"percent": "15.42%",
"home_acceptable_usages": "6500 MB",
"home_file_path": "Oracle software"
},
{
"usage": "581 MB",
"percent": "",
"home_acceptable_usages": "",
"home_file_path": "service_chaining"
},
{
"usage": "539 MB",
"percent": "44.92%",
"home_acceptable_usages": "1200 MB",
"home_file_path": "T2_Events"
},
{
"usage": "8125 MB",
"percent": "61.04%",
"home_acceptable_usages": "13 GB",
"home_file_path": "T2_Stats & T2_Config"
},
{
"WANOp Cache Size": "140GB",
"Used_disk_Cache": "0GB"
},
[
{
"df-l-output": [
{
"0-df": [
{
"filesystem": "devtmpfs"
},
{
"1kb": 16388512
},
{
"used": 0
},
{
"available": 16388512
},
{
"pctused": "0%"
},
{
"mountedon": "/dev"
}
]
},
{
"1-df": [
{
"filesystem": "tmpfs"
},
{
"1kb": 16438536
},
{
"used": 0
},
{
"available": 16438536
},
{
"pctused": "0%"
},
{
"mountedon": "/dev/shm"
}
]
},
{
"2-df": [
{
"filesystem": "tmpfs"
},
{
"1kb": 16438536
},
{
"used": 1204
},
{
"available": 16437332
},
{
"pctused": "1%"
},
{
"mountedon": "/run"
}
]
},
{
"3-df": [
{
"filesystem": "tmpfs"
},
{
"1kb": 16438536
},
{
"used": 0
},
{
"available": 16438536
},
{
"pctused": "0%"
},
{
"mountedon": "/sys/fs/cgroup"
}
]
},
{
"4-df": [
{
"filesystem": "/dev/sda3"
},
{
"1kb": 4030144
},
{
"used": 2805988
},
{
"available": 1014444
},
{
"pctused": "74%"
},
{
"mountedon": "/"
}
]
},
{
"5-df": [
{
"filesystem": "/dev/sda1"
},
{
"1kb": 91099
},
{
"used": 1750
},
{
"available": 84434
},
{
"pctused": "3%"
},
{
"mountedon": "/grub"
}
]
},
{
"6-df": [
{
"filesystem": "/dev/sda6"
},
{
"1kb": 222989620
},
{
"used": 11990624
},
{
"available": 199754372
},
{
"pctused": "6%"
},
{
"mountedon": "/home"
}
]
},
{
"7-df": [
{
"filesystem": "tmpfs"
},
{
"1kb": 3287708
},
{
"used": 0
},
{
"available": 3287708
},
{
"pctused": "0%"
},
{
"mountedon": "/run/user/0"
}
]
},
{
"8-df": [
{
"filesystem": "tmpfs"
},
{
"1kb": 3287708
},
{
"used": 0
},
{
"available": 3287708
},
{
"pctused": "0%"
},
{
"mountedon": "/run/user/1000"
}
]
}
]
}
]
]
}
]
]
}
]
]
}