• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. vManager vAPI authentication

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 14550
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

vManager vAPI authentication

BGarcia
BGarcia over 4 years ago

Hello Support Team,

I have issues trying to use the vAPI, as it show an error that requires full authentication:

    <h2>HTTP ERROR 401</h2>
    <p>Problem accessing /vmgr/vapi/rest/sessions/list. Reason:
        <pre>    Full authentication is required to access this resource</pre>

I've looked into the documentation and I could not find what to pass as a parameter or any kind of token information for authentication.

Could you please help me how to authenticate or point me to the right documentation?

Best Regards,

Baudilio Garcia

  • Cancel
Parents
  • StephenH
    StephenH over 4 years ago

    Hi Baudilio.

    It's telling you that you need to provide your credentials (username and password). What method are you using to make the request (e.g. are you using the Python "requests" module?).
    What happens if you try with "curl" at the Linux prompt, for example:

    Listing all session owners:

    curl -X POST "https://yourserver:8080/vmgr/vapi/rest/sessions/list" -H "accept: application/json" -H "content-type: application/json" -d '{ "filter": { "condition": "AND", "@c": ".ChainedFilter", "chain": [] }, "grouping": [ "owner" ], "pageOffset": 0, "pageLength": 50, "settings": {"write-hidden": true, "stream-mode": false }, "projection": { "type": "SELECTION_ONLY", "selection": ["owner" ] }}' -k -user ${USER}:yourpassword -v

    (replace <yourserver> and <yourpassword> of course). If you don't want to specify the password, omit the -u option and curl should prompt for your password interactively.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • BGarcia
    BGarcia over 4 years ago in reply to StephenH

    Hi Stephen,

    I was just using Postman for it, which uses curl. Once providing the data for basic authentication it worked! Thanks for your help!

    Do you happen to have a call to list all sessions that are older than a specific date? I am trying to follow the examples in vmgr/vapi/examples/index.html?op=/sessions/list/POST but having some issues.

    Best Regards,

    Baudilio Garcia

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 4 years ago in reply to BGarcia

    Cool. Slight smile

    Here's a JSON for /sessions/list that works for me:

    {
    "filter": {
    "attName": "start_time",
    "operand": "LESS_THAN",
    "@c": ".AttValueFilter",
    "attValue": "1605106174000"
    },
    "projection": {
    "type": "SELECTION_ONLY",
    "selection": [
    "owner", "name", "start_time"
    ]
    }
    }

    note the attValue field is the "date" expressed as milliseconds since the Unix Epoch. I tend to do all my scripting in Python and use the "time" module to make conversions easy, but you can achieve the same things with the Unix "date" command and a format string, for example:

    % date -d '2 weeks ago' '+%s000'
    1605693511000

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • BGarcia
    BGarcia over 4 years ago in reply to StephenH

    Works flawlessly. Amazing support as always, Stephen!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • BGarcia
    BGarcia over 4 years ago in reply to StephenH

    Works flawlessly. Amazing support as always, Stephen!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information