---
id: outposts-service-connections-kubernetes-create
title: "outposts_service_connections_kubernetes_create"
description: "KubernetesServiceConnection Viewset"
sidebar_label: "outposts_service_connections_kubernetes_create"
hide_title: true
hide_table_of_contents: true
api: eJzlV01v2zgQ/SsEL3vRWmnaw8Kn7WaDwth0G8RpLkUgUNJYYk2RWpJK6jX83ztDypacKGkKFOihl0Si5vPNG854y00LVnhp9KLkc2463xrnXebA3skCssJoDQV9d9m6y8Fq8OCywoLwwBNegiusbEkA1f85SCyj/tlBnd1IuHfgUceLyvH5p4MzfptwC/914Pxfptzw+ZajWw/a06NoWyWLEGL62ZGbLXdFDY2gJ79pgeLOP6Ob74oHT6RQ8n+wqNZawsFLcGRUiwZGxp23Ulco1Uh9AbryNZ+/2iVcmUKokVxujAKhH0WxWDHQIldQJqxzwHwNLOiyAd0Zu0IEpIWS/W2KNVjm6J9PhxTYAjGpYrE4uqdyoIGVrCiGY5eXwnlgG9NZNoixGizMmOgwAO3lmt1LpejVNGgU41GbQ3xFZy0K4YkDhSFiXKEmX/yMfN8heKtN5txL8r8Jwmy5vGBnBPKKyon5mFVwNcrw7eUCoSpbI7H2u12kBYFCdAlVQap46RU8X9yryCY0cWTD2w7wwAFmJz0S7RPSa48Gvt3uAhNdi2yPTDg9efXz6diup8i4MhbLhiddJ0tOcYvyg1abmOYA00f6jFlPk/rn07gwDeLdo/swyeOkIvFy4yB7qkWPQ74C31nNYjl+c+xI+xvWs1Z19giYFzqJet/01YAXWWNKUN+XDLYGIokOgi57yvyvdjsMNHoMbU/+hDrpAYWma/6yWyZeL8fZUPpvTk5+4KVxg7dCGVTZubVmYloZna0kqDID+u5GJoW1YoMK0kPjJpo/tF85dS3gF1GWktwKdTn2txuwGUKLkT2Jx+sfiMc70MiYIrBhGpASyy8nGvfZbMdc6g2MWNA7fSbN2NG1oS2KthqKStCmwNP9npNOLFXpsFSlnEaTRT66MJk6q0hbtDK9e51ymk37ybUkrGKyo/l1SKv2viVjQYpaD4QFG2IktK+GXev8i2haBcPSM1w+/ViIw2Tc0f0FI/XKBJ89REMgQdxFYE5PTt/M/pidPirje7FGP4frJpKBOUnhzHgS2CKKwBakBZWT16CU+bMyB08zacIAQ0xxYI+SeL+4RhMRQALDzdO0kr7u8hneE+nIRDo85crkKbrS6cXi7Pzf5XkAjCrXCD0yvi8n68s5Gn+ODeVk0zvyqA9eui7HotLtmrYK46OcQ27bnmKjVTpS6AHJeBwH0RW+ELNr4ihqbre5cPDRqt2OjpEZlhYjfLwTuJHkVFtcjFABJwySiJi5BhThZzGP368pPhJXXeDBw97eJXuNt0UBrX9W9nbURpcfllTGvP9N0ITe5Vbc07zDv9h2Cf5+iSmiQDjbciV01YmKZKPNcJl1BNQwjGJHJPsHymp/Z+rNKEKEJ0hcmzVohCjpU/H0juGi8a92O7S8
sidebar_class_name: "post api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"outposts_service_connections_kubernetes_create"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/outposts/service_connections/kubernetes/"}
>
  
</MethodEndpoint>



KubernetesServiceConnection Viewset

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<MimeTabs
  className={"openapi-tabs__mime"}
>
  <TabItem
    label={"application/json"}
    value={"application/json-schema"}
  >
    <details
      style={{}}
      className={"openapi-markdown__details mime"}
      data-collapsed={false}
      open={true}
    >
      <summary
        style={{}}
        className={"openapi-markdown__details-summary-mime"}
      >
        <h3
          className={"openapi-markdown__details-summary-header-body"}
        >
          Body
        </h3><strong
          className={"openapi-schema__required"}
        >
          required
        </strong>
      </summary><div
        style={{"textAlign":"left","marginLeft":"1rem"}}
      >
        
      </div><ul
        style={{"marginLeft":"1rem"}}
      >
        <SchemaItem
          collapsible={false}
          name={"name"}
          required={true}
          schemaName={"string"}
          qualifierMessage={"**Possible values:** `non-empty`"}
          schema={{"type":"string","minLength":1}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"local"}
          required={false}
          schemaName={"boolean"}
          qualifierMessage={undefined}
          schema={{"type":"boolean","description":"If enabled, use the local connection. Required Docker socket/Kubernetes Integration"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"kubeconfig"}
          required={false}
          schemaName={""}
          qualifierMessage={undefined}
          schema={{"description":"Paste your kubeconfig here. authentik will automatically use the currently selected context."}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"verify_ssl"}
          required={false}
          schemaName={"boolean"}
          qualifierMessage={undefined}
          schema={{"type":"boolean","description":"Verify SSL Certificates of the Kubernetes API endpoint"}}
        >
          
        </SchemaItem>
      </ul>
    </details>
  </TabItem>
</MimeTabs><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"201"}
        value={"201"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"pk"}
                        required={true}
                        schemaName={"uuid"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"uuid","readOnly":true,"title":"Uuid"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"name"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"local"}
                        required={false}
                        schemaName={"boolean"}
                        qualifierMessage={undefined}
                        schema={{"type":"boolean","description":"If enabled, use the local connection. Required Docker socket/Kubernetes Integration"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"component"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"verbose_name"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","description":"Return object's verbose_name","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"verbose_name_plural"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","description":"Return object's plural verbose_name","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"meta_model_name"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","description":"Return internal model name","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"kubeconfig"}
                        required={false}
                        schemaName={""}
                        qualifierMessage={undefined}
                        schema={{"description":"Paste your kubeconfig here. authentik will automatically use the currently selected context."}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"verify_ssl"}
                        required={false}
                        schemaName={"boolean"}
                        qualifierMessage={undefined}
                        schema={{"type":"boolean","description":"Verify SSL Certificates of the Kubernetes API endpoint"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"pk\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"name\": \"string\",\n  \"local\": true,\n  \"component\": \"string\",\n  \"verbose_name\": \"string\",\n  \"verbose_name_plural\": \"string\",\n  \"meta_model_name\": \"string\",\n  \"verify_ssl\": true\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"400"}
        value={"400"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"non_field_errors"}
                        required={false}
                        schemaName={"string[]"}
                        qualifierMessage={undefined}
                        schema={{"type":"array","items":{"type":"string"}}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        name={"property name*"}
                        required={false}
                        schemaName={"any"}
                        qualifierMessage={undefined}
                        schema={{"type":"object","description":"Validation Error","properties":{"non_field_errors":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}},"additionalProperties":{},"title":"ValidationError"}}
                        collapsible={false}
                        discriminator={false}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"non_field_errors\": [\n    \"string\"\n  ],\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"403"}
        value={"403"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"detail"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": \"string\",\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      