XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    REST API for simple User

    Scheduled Pinned Locked Moved Solved REST API
    2 Posts 2 Posters 444 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      irtaza9
      last edited by irtaza9

      I have created a new user with user-permission and then I created a token for this user from XO. I used this token to use the rest-apis but on calling it's returning unauthorized. Can you please give me reason about this behavior?

      from this I am getting that only admin user have rights to use rest-apis

      762e398e-f4e3-467e-8f51-68ebb7dbf0d8-image.png

      286feba9-d27f-4a85-a0d4-71d39d2519e3-image.png

      /v6 route is also throwing errors for user with user-permission

      a15eee7e-eefd-47d6-998a-776a319b8b42-image.png

      MathieuRAM 1 Reply Last reply Reply Quote 0
      • MathieuRAM Offline
        MathieuRA Vates 🪐 XO Team @irtaza9
        last edited by

        Hi @irtaza9.
        The REST API is only available for admin users.
        It is planned to handle other types of users in a few months

        1 Reply Last reply Reply Quote 1
        • olivierlambertO olivierlambert marked this topic as a question on
        • olivierlambertO olivierlambert has marked this topic as solved on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post