class_docstr: A thin client for the REST Service.
class_docstr_tok: ["A","thin","client","for","the","REST","Service","."]
docstr: Returns endpoints from the management API.
  
  Parameters
  ----------
  
  type : str
      The type of endpoint to return. None will include all endpoints.
      Other options are 'model' and 'alias'.
docstr_tok: ["Returns","endpoints","from","the","management","API",".","Parameters","--","--","--","--","--","type",":","str","The","type","of","endpoint","to","return",".","None","will","include","all","endpoints",".","Other","options","are","'model","'","and","'alias","'","."]
code: def get_endpoints(self, type=None):
      """Returns endpoints from the management API.
  
      Parameters
      ----------
  
      type : str
          The type of endpoint to return. None will include all endpoints.
          Other options are 'model' and 'alias'.
      """
      result = {}
      for name, attrs in self.service_client.GET(
          "endpoints", {"type": type}
      ).items():
          endpoint = Endpoint.from_json(attrs)
          endpoint.name = name
          result[name] = endpoint
      return result
  
imports: from .rest import RESTObject, RESTProperty
  from datetime import datetime
label_desc: Use image node_id 5 for calling the RESTServiceClient obj's underlying member method code with example usage: obj.get_endpoints(type) and returns: result