Testkube Control Plane ../tokens operations
Testkube Pro API (cloud-api/1.10.51)
Download OpenAPI specification:Download
E-mail: testkube@kubeshop.io  License: COMMERICAL 
API for Testkube Pro
List API Tokens
Lists API Tokens for an Organization
Authorizations:
None
path Parameters
| id required  | string  unique id of the object  | 
query Parameters
| limit | integer  limit queries for list of resources  | 
Responses
Response samples
- 200
 - 401
 - 404
 
Content type
application/json
{- "elements": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "labels": {
- "property1": "string",
 - "property2": "string"
 
}, - "createdAt": "2019-08-24T14:15:22Z",
 - "updatedAt": "2019-08-24T14:15:22Z",
 - "type": "user",
 - "token": "tkcagnt_ade343dafecb5412232adeaa521add",
 - "scopes": [
- {
- "identifier": "tkcorg_xxxxxxxxxx",
 - "resource": "org",
 - "role": "admin"
 
} 
], - "meta": {
- "property1": "string",
 - "property2": "string"
 
}, - "expiresAt": "2019-08-24T14:15:22Z",
 - "lastActive": "2019-08-24T14:15:22Z"
 
} 
] 
}Create API Token
Creates an API Token for an Organization
Authorizations:
None
path Parameters
| id required  | string  unique id of the object  | 
Request Body schema: application/jsonrequired
token body
| name required  | string  API Token name  | 
| expiration | string <duration>   Expiration represented as duration string  | 
Array of objects (Scope)   API token scopes  | 
Responses
Request samples
- Payload
 
Content type
application/json
{- "name": "Organization Read-only token",
 - "expiration": "P3D",
 - "scopes": [
- {
- "identifier": "tkcorg_xxxxxxxxxx",
 - "resource": "org",
 - "role": "admin"
 
} 
] 
}Response samples
- 200
 - 400
 - 402
 - 403
 
Content type
application/json
{- "id": "string",
 - "name": "string",
 - "description": "string",
 - "labels": {
- "property1": "string",
 - "property2": "string"
 
}, - "createdAt": "2019-08-24T14:15:22Z",
 - "updatedAt": "2019-08-24T14:15:22Z",
 - "type": "user",
 - "token": "tkcagnt_ade343dafecb5412232adeaa521add",
 - "scopes": [
- {
- "identifier": "tkcorg_xxxxxxxxxx",
 - "resource": "org",
 - "role": "admin"
 
} 
], - "meta": {
- "property1": "string",
 - "property2": "string"
 
}, - "expiresAt": "2019-08-24T14:15:22Z",
 - "lastActive": "2019-08-24T14:15:22Z"
 
}Delete API Token
Deletes an API Token for an Organization
Authorizations:
None
path Parameters
| id required  | string  unique id of the object  | 
| tokenID required  | string  unique ID of the API Token  | 
Responses
Response samples
- 400
 - 401
 - 403
 
Content type
application/problem+json
{- "title": "Invalid test name",
 - "status": 500,
 - "detail": "Your test name can't contain forbidden characters like \"}}}\" passed",
 
}