Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Been Looking All Over And Can'T Find The Solution To This One. If I Have A User Id Hash (The 32 Alphanumeric), How Do I Find The User'S Name Which Is Associated With This Id Using Clearml Python Sdk? Cheers.

Been looking all over and can't find the solution to this one.

If I have a user id hash (the 32 alphanumeric), how do I find the user's name which is associated with this Id using clearml python sdk? Cheers.

  
  
Posted 7 months ago
Votes Newest

Answers 12


According to the documentation users.user should be a valid endpoint?

  
  
Posted 7 months ago

I think it is supported only through the API 🙂

  
  
Posted 7 months ago

Is there a way I can do this with the python APIClient or even with the requests library?

  
  
Posted 7 months ago

Furthermore, when using APIClient() , users is not a valid endpoint at all.

class APIClient(object):

    auth = None  # type: Any
    queues = None  # type: Any
    tasks = None  # type: Any
    workers = None  # type: Any
    events = None  # type: Any
    models = None  # type: Any
    projects = None  # type: Any

This is taken from clearml/backend_api/session/client/client.py

  
  
Posted 7 months ago

@<1529271085315395584:profile|AmusedCat74> users.user is simply not an endpoint supported by the server 🙂 what you're looking for is users.get_by_id (with the user query field containing the ID)

  
  
Posted 7 months ago

$ curl -H "Authorization: Bearer <TOKEN>" -X GET 


{"meta":{"id":"ed6c52d030f240a89f001b447ee64a6b","trx":"ed6c52d030f240a89f001b447ee64a6b","endpoint":{"name":"debug.ping","requested_version":"2.26","actual_version":"1.0"},"result_code":200,"result_subcode":0,"result_msg":"OK","error_stack":null,"error_data":{},"alarms":{}},"data":{"msg":"Hello World"}}%                                                                                                    

$ curl -H "Authorization: Bearer <TOKEN>" -X GET 


{"meta":{"id":"98fb3e83511941fd8d96c518d1c4d153","trx":"98fb3e83511941fd8d96c518d1c4d153","endpoint":{"name":"projects.get_all","requested_version":"2.26","actual_version":"1.0"},"result_code":200,"result_subcode":0,"result_msg":"OK","error_stack":null,"error_data":{},"alarms":{}},"data":...%                                                    

$ curl -H "Authorization: Bearer <TOKEN>" -X GET 
     

{"meta":{"id":"48c8eeec8b9d4b13a9add7b7b6828b33","trx":"48c8eeec8b9d4b13a9add7b7b6828b33","endpoint":{"name":"users.user","requested_version":"2.26","actual_version":null},"result_code":404,"result_subcode":0,"result_msg":"Unable to find endpoint for name users.user and version 2.26","error_stack":null,"error_data":{},"alarms":{}},"data":{}}% 

Any explanation for why I'm seeing the above behaviour? The debug.ping and projects.get_all endpoints work as expected but the users.user does not work.

  
  
Posted 7 months ago

Is there documentation for this as I was not able to figure this out unfortunately.

  
  
Posted 7 months ago

You certainly can do it with the python APIClient OR through the requests library

  
  
Posted 7 months ago

Also, regarding the APIClient, it was not designed to facilitate user management or server administration (which is why is does not have these endpoints set)

  
  
Posted 7 months ago

This is the definitions section, it describes returned objects, not endpoints

  
  
Posted 7 months ago

Ah ok

  
  
Posted 7 months ago
471 Views
12 Answers
7 months ago
7 months ago
Tags