Forum Discussion

Inder's avatar
Inder
Icon for Nimbostratus rankNimbostratus
Jun 03, 2019

Member not found via REST call

Hi guys,

 

I am getting an unexpected error where below REST call is not returning me the member detail. The error says - Object not found, when I can clearly locate the partition-member combination through the F5 web interface.

 

REST call: https://F5Host.com/mgmt/tm/ltm/pool/~partition~pool/members/~partition~member

 

 

Output:

{

 "code": 404,

 "message": "Object not found - /partition/member:443",

 "errorStack": [],

 "apiError": 1

}

 

 

Any suggestions?

3 Replies

  • Inder's avatar
    Inder
    Icon for Nimbostratus rankNimbostratus

    Hello Dario, thanks for your response but even this syntax is not fetching me the result. I am getting result only for the Common partition but not for the client specific partition. Refer the attached screenshots.

     

    Result for Common partition: OK

     

     

    Result for client specific partition (Dario's Syntax): 404 Not Found

     

     

    Result for client specific partition: 404 Not Found

  • Hello Inder.

    The message is "object not found" because maybe you have some mistake when you write the name of your object in the URL.

    The best way to troubleshoot this is following the json branches from the root (list of pools).

    # curl -sku admin:xxxx -X GET https://localhost/mgmt/tm/ltm/pool/ | json-format | grep -e \"link\"
            "link": "https://localhost/mgmt/tm/ltm/pool/~APPLICATIONS~mypool/members?ver\u003d12.1.4.1",
    		
    # curl -sku admin:xxxx -X GET https://localhost/mgmt/tm/ltm/pool/~APPLICATIONS~mypool/members | json-format | grep -e \"selfLink\" 
      "selfLink": "https://localhost/mgmt/tm/ltm/pool/~APPLICATIONS~mypool/members?ver\u003d12.1.4.1",
          "selfLink": "https://localhost/mgmt/tm/ltm/pool/~APPLICATIONS~mypool/members/~APPLICATIONS~2.2.2.2:80?ver\u003d12.1.4.1",
     
    # curl -sku admin:xxxx -X GET https://localhost/mgmt/tm/ltm/pool/~APPLICATIONS~mypool/members/~APPLICATIONS~2.2.2.2:80 | json-format 
    {
      "kind": "tm:ltm:pool:members:membersstate",
      "name": "2.2.2.2:80",
      "partition": "APPLICATIONS",
      "fullPath": "/APPLICATIONS/2.2.2.2:80",
      ...
    }

    If you cannot find the pool in its partition in the fisrt query, then you should validate that your user has access to this partition (RBAC).

    KR,

    Dario.