Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
Table of Contents
maxlevel2

...


 Description

URI

http://host_name/uc/resources/user/token/list

HTTP Method

GET

Description

List the user tokens

Example URI

http://localhost:9090/uc/resources/user/token/list

http://localhost:9090/uc/resources/user/token/list?username=test

http://localhost:9090/uc/resources/user/token/list?userid=1234567

Authentication

HTTP Basic

Produces Content-Type

Application/XML, Application/JSON

Consumes Content-Type


Example Responses

  • Status 200

    • Successful token list

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

List Personal Access Tokens: Query Parameters

The following request parameters can be used to filter the results of this service.

Property

UI Field Name

Description

Specifications

Required

Mutually Exclusive With

userid

N/A

UUID of the user

UUID of the user

N

username

username

N/A

User Name

String value of User name

N

userid

...


 Description

URI

http://host_name/uc/resources/user/token

HTTP Method

DELETE

Description

Delete the personal access token(s)

Example URI

http://localhost:9090/uc/resources/user/token?tokenname=test1&username=abc

http://localhost:9090/uc/resources/user/token?tokenname=test1&userid=1234567

Authentication

HTTP Basic

Produces Content-Type


Consumes Content-Type


Example Responses

  • Status 200

    • Personal access token revoked successfully.

  • Status 400

    • Error message.

  • Status 403

    • Operation prohibited due to security constraints.

  • Status 404

    • A user with name “{name}” does not exist.

    • A user with id "{uuid}" does not exist.

  • Status 500

    • Unexpected request failure. See log(s) for more details.

...