Unsolved
1 Rookie
•
2 Posts
0
25
API Call for legacy command
Looking for an API Call for isi sync recovery and can't see to locate it (if it exists). Anyone know what it might be?
Unsolved
1 Rookie
•
2 Posts
0
25
Looking for an API Call for isi sync recovery and can't see to locate it (if it exists). Anyone know what it might be?
Top
DELL-Sam L
Moderator
Moderator
•
7K Posts
0
July 23rd, 2024 21:08
Hello tchstnut,
There is not an api call for isi sync recovery. There is a CLI command but that is all.
tomfinn
1 Rookie
1 Rookie
•
7 Posts
0
July 25th, 2024 07:05
curl -X [METHOD] "[URL]" -H "Authorization: Bearer [TOKEN]" -d "[BODY]"
requests.[METHOD]('[URL]', headers={'Authorization': 'Bearer [TOKEN]'}, data={'param': 'value'})
Refer to specific API documentation for details.
Phil.Lam
3 Apprentice
3 Apprentice
•
586 Posts
0
August 20th, 2024 16:42
@tchstnut ,
try isi --debug <command>, it should give you the API.
EXAMPLE
onefs97-1# isi --debug network pools list
2024-08-20 09:28:41,961 DEBUG rest.py:87: >>>GET ['18', 'network', 'pools']
...
USING CURL IN BASIC AUTH
onefs97-1# isi_gconfig -t web-config auth_basic=true
onefs97-1# curl --insecure --basic --user root:a "https://192.168.1.31:8080/platform/18/network/pools"
{
"pools" :
[
{
"access_zone" : "System",
"addr_family" : "ipv4",
"aggregation_mode" : "lacp",
"alloc_method" : "static",
"description" : "Initial ext-1 pool",
"external_manager" : null,
"firewall_policy" : "default_pools_policy",
"groupnet" : "groupnet0",
"id" : "groupnet0.subnet0.pool0",
"ifaces" :
...