Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED 11.3-U1: API Request Doesn't Return a List of Replication Tasks

irTwit

Newbie
Joined
Aug 18, 2014
Messages
29
I have been unable to get the GET Replications API request to return a replication task list on 11.3-U1. This was not an issued on 11.2.

Task:
Replication.png

Code:
import requests

r = requests.get(
    'http://freenas/api/v1.0/storage/replication/',
    auth=('root', 'aaa'),
    headers={'Content-Type': 'application/json'}
    )

print(r.status_code)
print(r.text)

Result:
200
[]
 
Last edited:

irTwit

Newbie
Joined
Aug 18, 2014
Messages
29
Joined
Mar 3, 2019
Messages
13
API 1.0 is a legacy API that only displays legacy replication tasks (with Transport: LEGACY). You'll only be able to see new-style replication tasks using API 2.0.
 

irTwit

Newbie
Joined
Aug 18, 2014
Messages
29
API 1.0 is a legacy API that only displays legacy replication tasks (with Transport: LEGACY). You'll only be able to see new-style replication tasks using API 2.0.
That was it. I'm getting results now.
 
Top