Python
import requests url = "https://{FUSION HOST}/api/subscriptions/{id}" headers = {"Authorization": "Basic <encoded-value>"} response = requests.get(url, headers=headers) print(response.text)
{ "resource": "<string>", "topic": "<string>", "numberOfListenerThreads": 123, "maxRetries": 123, "initialPosition": "<string>", "contextProperties": {}, "id": "<string>" }
Get the entity as JSON by unique ID
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The subscription ID
OK
Show child attributes
Was this page helpful?