You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a specific condition beyond no workloads that needs to be met here? I've tested against both SaaS and on-prem PCEs and haven't run into a 404 calling /settings/workloads.
Tested just now with a freshly spun up 19.3.0 SNC and it resolves just fine.
After discussion, this error seems to be due to a difference in permissions between a Service Account API key vs a User API key - service account keys return a 403 forbidden when hitting the /settings/workloads endpoint. It's not clear whether this is intentional or is part of restricting permissions on user/service account endpoints.
I'll add a note to the documentation about this and see if there's a better option for the orgs call in check_connection().
workload settings endpoints only works if there are workloads defined
Expected Result
should use workloads endpoint instead:
self.get('/workloads', **{**kwargs, **{'include_org': True}})
Actual Result
self.get('/settings/workloads', **{**kwargs, **{'include_org': True}})
Steps to reproduce
Empty PCE (any vers)
System Information
https://docs.illumio.com/core/22.2/API-Reference/index.html#get-workloads-settings
- vs -
https://docs.illumio.com/core/22.2/API-Reference/index.html#Illumio-Core-workloads
The text was updated successfully, but these errors were encountered: