Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes not returned by graph_system_associations_list #51

Open
pwillie opened this issue Jun 10, 2021 · 0 comments
Open

Attributes not returned by graph_system_associations_list #51

pwillie opened this issue Jun 10, 2021 · 0 comments

Comments

@pwillie
Copy link

pwillie commented Jun 10, 2021

When listing system associations attributes are not returned.

https://github.com/TheJumpCloud/jcapi-python/blob/master/jcapiv2/docs/GraphApi.md#graph_system_associations_list

Steps to reproduce is to follow example in documentation.

Curl returns attributes:

curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations?targets=user -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'x-api-key: {API_KEY}'

SDK returns objects without attributes:

from __future__ import print_function
import jcapiv2
from jcapiv2.rest import ApiException
from pprint import pprint

configuration = jcapiv2.Configuration()
configuration.api_key['x-api-key'] = '{API_KEY}'

api_instance = jcapiv2.GraphApi(jcapiv2.ApiClient(configuration))
system_id = '{System_ID}'  # str | ObjectID of the System.
content_type = 'application/json'  # str |  (default to application/json)
accept = 'application/json'  # str |  (default to application/json)
targets = ['user']  # list[str] |

try:
    # List the associations of a System
    api_response = api_instance.graph_system_associations_list(
        system_id, content_type, accept, targets)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->graph_system_associations_list: %s\n" % e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant