Skip to main content

outposts_service_connections_docker_create

POST 

/api/v3//outposts/service_connections/docker/

DockerServiceConnection Viewset

Request

Bodyrequired

    namestringrequired

    Possible values: non-empty

    localboolean

    If enabled, use the local connection. Required Docker socket/Kubernetes Integration

    urlstringrequired

    Can be in the format of 'unix://' when connecting to a local docker daemon, or 'https://:2376' when connecting to a remote system.

    Possible values: non-empty

    tls_verificationuuidnullable

    CA which the endpoint's Certificate is verified against. Can be left empty for no validation.

    tls_authenticationuuidnullable

    Certificate/Key used for authentication. Can be left empty for no authentication.

Responses

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

    urlstringrequired

    Can be in the format of 'unix://' when connecting to a local docker daemon, or 'https://:2376' when connecting to a remote system.

    tls_verificationuuidnullable

    CA which the endpoint's Certificate is verified against. Can be left empty for no validation.

    tls_authenticationuuidnullable

    Certificate/Key used for authentication. Can be left empty for no authentication.

Authorization: http

name: authentiktype: httpscheme: bearer
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());
Request Collapse all
Base URL
/api/v3
Auth
Body required
{
  "name": "string",
  "local": true,
  "url": "string",
  "tls_verification": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "tls_authentication": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}