Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.52 KB

personal-access-token-1.md

File metadata and controls

56 lines (42 loc) · 1.52 KB

Team API Tokens

This endpoint is used to create Team API Tokens information inside Terrakube.

Entity fields:

Path Type Description
days String Number of days for the token to be valid
hours String Number of hours the token will be valid
minutes String Number of minutes the token will be valid
description string Some sample description for the token

Example:

{
  "days": "1",
  "hours": "6",
  "minutes"; "30",
  "group": "TERRAKUBE_ADMIN",
  "description": "Sample PAT"
}

Supported Operations

{% swagger method="post" path="/" baseUrl="/access-token/v1/teams" summary="" %} {% swagger-description %}

{% endswagger-description %}

{% swagger-parameter in="body" name="days" type="int" required="true" %} Number of days {% endswagger-parameter %}

{% swagger-parameter in="body" name="description" type="String" required="true" %} Token description {% endswagger-parameter %}

{% swagger-parameter in="body" name="group" %} Team name {% endswagger-parameter %} {% endswagger %}

{% swagger method="get" path="" baseUrl="/access-token/v1/teams" summary="" %} {% swagger-description %} Get all the personal access token generated by the user {% endswagger-description %} {% endswagger %}

{% swagger method="delete" path="{tokenId}" baseUrl="/access-token/v1/teams/" summary="" %} {% swagger-description %}

{% endswagger-description %} {% endswagger %}