Applications
Create and manage applications in the tenant.
Return the list of apps of the tenant. Deprecated in favor of the new endpoint api/v1/apps.
Bearer authentication
Filter the returned entities to only those that created by the requesting subject
The complete set of permissions.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /v1/k8s/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z"
},
null,
{
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}
]Create a new app and assign it with a client secret. This endpoint requires ADMIN role. Deprecated in favor of the new endpoint api/v1/apps.
Bearer authentication
The complete set of permissions.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
POST /v1/k8s/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 327
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}Get the details of a given app. This endpoint requires ADMIN, EDITOR or VIEWER role. Deprecated in favor of the new endpoint api/v1/apps/{clientId}.
Bearer authentication
Unique identifier of the app
4008188b-ab50-4aa5-a3f2-b78091ccf92dApp details.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /v1/k8s/apps/{clientId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}Update the details of a given app. This endpoint requires ADMIN role. Deprecated in favor of the new endpoint api/v1/apps/{clientId}.
Bearer authentication
Unique identifier of the app
4008188b-ab50-4aa5-a3f2-b78091ccf92dUser updated successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PUT /v1/k8s/apps/{clientId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 327
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}Delete the given app from the tenant. This endpoint requires ADMIN role. Deprecated in favor of the new endpoint api/v1/apps/{clientId}.
Bearer authentication
Unique identifier of the app
4008188b-ab50-4aa5-a3f2-b78091ccf92dUser deleted successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /v1/k8s/apps/{clientId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Generate a new secret for a given application. This endpoint requires ADMIN role. Deprecated in favor of the new endpoint api/v1/apps/{clientId}/secret.
Bearer authentication
Unique identifier of the app
4008188b-ab50-4aa5-a3f2-b78091ccf92dThe secret generated succefully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /v1/k8s/apps/{clientId}/secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"clientId": "6d2894ba-f998-4039-bba1-caba57caf681",
"name": "MyApplication",
"revoked": false
}Retrieve a list of applications.
Bearer authentication
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "app123",
"createdBy": "test@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"enabled": true,
"tenantId": 1234567890,
"lastLogin": "2020-01-01T00:00:00Z",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "app123"
}
]Used to create an application.
Bearer authentication
The name of the application. The name must be unique within the organization and can only contain lowercase alphanumeric characters and hyphens. It must start and end with a letter.
^[a-z][-_a-z0-9]*[a-z0-9]$Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
POST /api/v1/apps HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"name": "app-123"
}{
"id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
"name": "app123",
"secret": "asdasidjn9d",
"clientId": "app123"
}Retrieve a list of installer applications.
Bearer authentication
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/apps/installer HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
"name": "app123",
"secret": "asdasidjn9d",
"clientId": "app123"
}Retrieve the details of an application by id.
Bearer authentication
The application id to retrieve
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "app123",
"createdBy": "test@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z",
"enabled": true,
"tenantId": 1234567890,
"lastLogin": "2020-01-01T00:00:00Z",
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"clientId": "app123"
}Use to delete an application by id.
Bearer authentication
The application id to retrieve
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Use to update the details of an application by id.
Bearer authentication
The application id to retrieve
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PATCH /api/v1/apps/{appId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"enabled": true
}No content
Use to regenerate the application secret by id.
Bearer authentication
The application id to retrieve
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/apps/{appId}/secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"secret": "189ej2ijd92fj092k049fk0"
}Last updated