This endpoint is used to create Team API Tokens information inside Terrakube.
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 |
{
"days": "1",
"hours": "6",
"minutes"; "30",
"group": "TERRAKUBE_ADMIN",
"description": "Sample PAT"
}
{% 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 %}