outposts_service_connections_docker_create
POST/api/v3//outposts/service_connections/docker/
DockerServiceConnection Viewset
Request
- application/json
Bodyrequired
Possible values: non-empty
If enabled, use the local connection. Required Docker socket/Kubernetes Integration
Can be in the format of 'unix://
Possible values: non-empty
CA which the endpoint's Certificate is verified against. Can be left empty for no validation.
Certificate/Key used for authentication. Can be left empty for no authentication.
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
If enabled, use the local connection. Required Docker socket/Kubernetes Integration
Return object's verbose_name
Return object's plural verbose_name
Return internal model name
Can be in the format of 'unix://
CA which the endpoint's Certificate is verified against. Can be left empty for no validation.
Certificate/Key used for authentication. Can be left empty for no authentication.
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"local": true,
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"url": "string",
"tls_verification": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tls_authentication": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (auto)
Schema
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
{
"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/docker/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"name\": \"string\",\n \"local\": true,\n \"url\": \"string\",\n \"tls_verification\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"tls_authentication\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());