outposts_service_connections_kubernetes_create
POST/api/v3//outposts/service_connections/kubernetes/
KubernetesServiceConnection Viewset
Request
- application/json
Bodyrequired
namestringrequired
Possible values: non-empty
localboolean
If enabled, use the local connection. Required Docker socket/Kubernetes Integration
kubeconfig
Paste your kubeconfig here. authentik will automatically use the currently selected context.
verify_sslboolean
Verify SSL Certificates of the Kubernetes API endpoint
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pkuuidrequired
namestringrequired
localboolean
If enabled, use the local connection. Required Docker socket/Kubernetes Integration
componentstringrequired
verbose_namestringrequired
Return object's verbose_name
verbose_name_pluralstringrequired
Return object's plural verbose_name
meta_model_namestringrequired
Return internal model name
kubeconfig
Paste your kubeconfig here. authentik will automatically use the currently selected context.
verify_sslboolean
Verify SSL Certificates of the Kubernetes API endpoint
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"local": true,
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"verify_ssl": true
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/outposts/service_connections/kubernetes/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"name\": \"string\",\n \"local\": true,\n \"verify_ssl\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());