Skip to main content

Permissions

Obtains the list of the permissions the user has. Permissions are different depending on the type of user you are: Member, Admin or Owner. See the roles section to get more info.

Obtain the permissions

Get an array containing the permissions you have according to your account type.

curl -X 'GET' \
'https://api.gigapipe.com/v1/users/me/permissions' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>'
# Payload response ::Array[Dictionary]
[
{
"type": "VIEW_MEMBERS",
"name": "view_members"
},
{
"type": "VIEW_CLUSTERS",
"name": "view_clusters"
},
...
]

The Permission Object

Attributes


type  ::String

The permission type


name  ::Float

The permission name