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

irTwit

Dabbler
Joined
Aug 18, 2014
Messages
48
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

Dabbler
Joined
Aug 18, 2014
Messages
48
Joined
Mar 3, 2019
Messages
17
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

Dabbler
Joined
Aug 18, 2014
Messages
48
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