Skip to content

Attributes not returned by graph_system_associations_list #51

Description

@pwillie

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions