Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.79 KB

File metadata and controls

60 lines (41 loc) · 1.79 KB

nexus_api_python_client.SecurityManagementApi

All URIs are relative to http://localhost/service/rest

Method HTTP request Description
get_user_sources GET /beta/security/user-sources Retrieve a list of the available user sources.

get_user_sources

list[ApiUserSource] get_user_sources()

Retrieve a list of the available user sources.

Example

from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint

# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = nexus_api_python_client.SecurityManagementApi(api_client)
    
    try:
        # Retrieve a list of the available user sources.
        api_response = api_instance.get_user_sources()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling SecurityManagementApi->get_user_sources: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[ApiUserSource]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -
403 The user does not have permission to perform the operation. -

[Back to top] [Back to API list] [Back to Model list] [Back to README]