Nanocl Daemon (v0.17.0)
The Nanocl Daemon is an HTTP REST API.
It is the API the Nanocl Client uses, so everything the Nanocl Client can do can be done with the API.
Most of the client's commands map directly to API endpoints e.g: nanocl ps is GET /processes.
The notable exception is running Cargo, which consists of several API calls.
This API is documented in OpenAPI format using Utoipa
The specification is generated automatically when running in development only.
When releasing a version, the generated file is transferred to our Documentation.
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec.
And that allows cross-domain communication from the browser.
All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
List cargoes with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "test" } } } } Generic filter |
| namespace | string Namespace where the cargoes belongs default to 'global' |
Responses
Response samples
- 200
[- {
- "NamespaceName": "string",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}
]Create a new cargo by it specification
query Parameters
| namespace | string Namespace where to create the cargo default to 'global' |
Request Body schema: application/jsonrequired
required | object (Config) Container specification of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or Config (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata of the cargo (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}Response samples
- 201
- 409
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}create_exec_command
path Parameters
| Name required | string Name of the cargo |
query Parameters
| Namespace | string Namespace of the cargo |
Request Body schema: application/jsonrequired
| AttachStderr | boolean or null Attach to stderr of the exec command. |
| AttachStdin | boolean or null Attach to |
| AttachStdout | boolean or null Attach to stdout of the exec command. |
| Cmd | Array of strings or null Command to run, as a string or array of strings. |
| DetachKeys | string or null Override the key sequence for detaching a container. Format is a single character |
| Env | Array of strings or null A list of environment variables in the form |
| Privileged | boolean or null Runs the exec process with extended privileges. |
| Tty | boolean or null Allocate a pseudo-TTY. |
| User | string or null The user, and optionally, group to run the exec process inside the container. Format is one
of: |
| WorkingDir | string or null The working directory for the exec process inside the container. |
Responses
Request samples
- Payload
{- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "Tty": true,
- "DetachKeys": "string",
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Privileged": true,
- "User": "string",
- "WorkingDir": "string"
}Response samples
- 404
{- "msg": "string"
}Update a cargo by it's new specification and create a history record
path Parameters
| name required | string Name of the cargo |
query Parameters
| namespace | string Namespace where the cargoes belongs default to 'global' |
Request Body schema: application/jsonrequired
required | object (Config) Container specification of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or Config (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata of the cargo (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}Response samples
- 200
- 404
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}Delete a cargo by it's name
path Parameters
| name required | string Name of the cargo |
query Parameters
| force required | boolean If true forces the delete operation even if the cargo is started |
| namespace | string Namespace where the cargoes belongs default to 'global' |
Responses
Response samples
- 404
{- "msg": "string"
}Patch a cargo with it's specification meaning merging current spec with the new one and add history record
path Parameters
| name required | string Name of the cargo |
query Parameters
| namespace | string Namespace where the cargoes belongs default to 'global' |
Request Body schema: application/jsonrequired
null or Config (object) | |||
One of null | |||
null or ImagePullPolicy (string) | |||
One of null | |||
| ImagePullSecret | string or null Secret to use when pulling the image | ||
null or Config (object) | |||
One of null | |||
object New metadata of the cargo (user defined) | |||
| |||
| Name | string or null New name of the cargo | ||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||
One of null | |||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": { },
- "Replication": { }
}Response samples
- 200
- 404
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}List cargo histories
path Parameters
| name required | string Name of the cargo |
query Parameters
| namespace | string Namespace where the cargoes belongs default to 'global' |
Responses
Response samples
- 200
- 404
[- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
]Revert a cargo to a specific history record
path Parameters
| key required | string Key of the cargo history |
| name required | string Name of the cargo |
query Parameters
| namespace | string Namespace where the cargoes belongs default to 'global' |
Responses
Response samples
- 200
- 404
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}Get detailed information about a cargo by its name
path Parameters
| name required | string Name of the cargo |
query Parameters
| namespace | string Namespace where the cargoes belongs default to 'global' |
Responses
Response samples
- 200
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}List events with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "kind": { "eq": "normal" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "ReportingNode": "string",
- "ReportingController": "string",
- "Kind": "error",
- "Action": "string",
- "Reason": "string",
- "Note": "string",
- "Actor": { },
- "Related": { },
- "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
]Watch on new events of all peer nodes with optional condition to stop the stream
Request Body schema: application/json
required | Array of strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or objects (NativeEventAction) |
| ActorKey | string or null |
null or EventActorKind (string) | |
| Kind required | Array of strings (EventKind) Items Enum: "error" "normal" "warning" |
| RelatedKey | string or null |
null or EventActorKind (string) |
Responses
Request samples
- Payload
[- {
- "ActorKey": "string",
- "ActorKind": { },
- "RelatedKey": "string",
- "RelatedKind": { },
- "Kind": [
- "error"
], - "Action": [
- "create"
]
}
]Response samples
- 200
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "ReportingNode": "string",
- "ReportingController": "string",
- "Kind": "error",
- "Action": "string",
- "Reason": "string",
- "Note": "string",
- "Actor": { },
- "Related": { },
- "Metadata": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 404
{- "CanRemove": true,
- "DetachKeys": "string",
- "ID": "string",
- "Running": true,
- "ExitCode": 0,
- "ProcessConfig": { },
- "OpenStdin": true,
- "OpenStderr": true,
- "OpenStdout": true,
- "ContainerID": "string",
- "Pid": 0
}start_exec_command
path Parameters
| id required | string Exec command id |
Request Body schema: application/jsonrequired
| Detach required | boolean Detach from the command. |
| OutputCapacity | integer or null >= 0 The maximum size for a line of output. The default is 8 * 1024 (roughly 1024 characters). |
| Tty required | boolean Allocate a pseudo-TTY. |
Responses
Request samples
- Payload
{- "Detach": true,
- "Tty": true,
- "OutputCapacity": 0
}Response samples
- 404
{- "msg": "string"
}List jobs with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "job-example" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "InstanceTotal": 0,
- "InstanceSuccess": 0,
- "InstanceRunning": 0,
- "InstanceFailed": 0,
- "Spec": {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}
}
]Create a new job
Request Body schema: application/jsonrequired
required | Array of objects (Config) List of container to run | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the job | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule | string or null Schedule of the job (cron) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null Secrets to load as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Ttl | integer or null >= 0 Remove the job after (x) seconds after execution | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "Name": "string",
- "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}Response samples
- 201
- 409
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}Response samples
- 200
{- "InstanceTotal": 0,
- "InstanceSuccess": 0,
- "InstanceRunning": 0,
- "InstanceFailed": 0,
- "Spec": {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}List metrics with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "kind": { "eq": "CPU" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "NodeName": "string",
- "Kind": "string",
- "Data": null,
- "Note": "string"
}
]Create a new metric
Request Body schema: application/jsonrequired
| Data required | any The data of the metric |
| Kind required | string The kind of the metric |
| Note | string or null Optional note about the metric |
Responses
Request samples
- Payload
{- "Kind": "string",
- "Data": null,
- "Note": "string"
}Response samples
- 201
- 409
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "NodeName": "string",
- "Kind": "string",
- "Data": null,
- "Note": "string"
}Get detailed information about a metric
path Parameters
| key required | string Key of the metric |
Responses
Response samples
- 200
- 404
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "NodeName": "string",
- "Kind": "string",
- "Data": null,
- "Note": "string"
}Create a new namespace
Request Body schema: application/jsonrequired
| Metadata | any User defined metadata |
| Name required | string Name of the namespace |
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": null
}Response samples
- 200
- 409
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Metadata": null
}Get detailed information about a namespace
path Parameters
| name required | string The namespace name to inspect |
Responses
Response samples
- 200
- 404
[- {
- "Name": "string",
- "Cargoes": [
- {
- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}
]
}
]List nodes
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "test" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "IpAddress": "string",
- "Endpoint": "string",
- "Version": "string",
- "Metadata": null
}
]List processes with optional filter
query Parameters
| filter | string Example: filter={ "where": { "name": { "eq": "test" } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]Send a signal to all processes of given kind and name (cargo, job, vm)
path Parameters
| kind required | string Example: cargo Kind of the process |
| name required | string Example: deploy-example Name of the process |
query Parameters
| namespace | string Namespace where the process belongs if needed |
Request Body schema: application/jsonrequired
| signal required | string Signal to send to the container default: SIGKILL |
Responses
Request samples
- Payload
{- "signal": "string"
}Get logs of processes of given kind and name (cargo, job, vm)
path Parameters
| kind required | string Example: cargo Kind of the process |
| name required | string Example: deploy-example Name of the process |
query Parameters
| follow | boolean Boolean to return a stream or not |
| namespace | string Namespace of the process |
| since | integer <int64> Only logs returned since timestamp |
| tail | string Only return the n last (integer) or all ('all') logs |
| timestamps | boolean Add timestamps to every log line |
| until | integer <int64> Only logs returned until timestamp |
Responses
Get stats of all processes of given kind and name (cargo, job, vm)
path Parameters
| kind required | string Example: cargo Kind of process |
| name required | string Example: deploy-example Name of the process group |
query Parameters
| namespace | string Namespace where the process belongs if needed |
| one_shot | boolean Return stats only once |
| stream | boolean Return a stream of stats |
Responses
Response samples
- 404
{- "msg": "string"
}Get detailed information about a process by it's name
path Parameters
| name required | string Name of the process |
Responses
Response samples
- 200
- 404
{- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}Get logs of a single process instance by it's name or id
path Parameters
| name required | string Example: deploy-example Name of the process |
query Parameters
| follow | boolean Boolean to return a stream or not |
| since | integer <int64> Only logs returned since timestamp |
| tail | string Only return the n last (integer) or all ('all') logs |
| timestamps | boolean Add timestamps to every log line |
| until | integer <int64> Only logs returned until timestamp |
Responses
List resource kinds
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "test" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Name": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Metadata": null,
- "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}
]Create a resource kind
Request Body schema: application/jsonrequired
required | object (ResourceKindSpec) Spec of the resource kind | ||||
| |||||
object Metadata (user defined) of the resource kind | |||||
| |||||
| Name required | string The name of the resource kind | ||||
| Version required | string The version of the resource kind | ||||
Responses
Request samples
- Payload
{- "Name": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}Response samples
- 201
- 409
{- "Name": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Metadata": null,
- "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}Get detailed information about a resource kind
path Parameters
| domain required | string Domain of the resource kind |
| name required | string Name of the resource kind |
Responses
Response samples
- 200
- 404
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Versions": [
- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "KindKey": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}
]
}Get detailed information about a resource kind version
path Parameters
| domain required | string Domain of the resource kind |
| name required | string Name of the resource kind |
| version required | string Version of the resource kind |
Responses
Response samples
- 200
- 404
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "KindKey": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}List resources with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "kind": { "eq": "ncproxy.io/rule" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
]Create a new resource
Request Body schema: application/jsonrequired
required | object The data of the resource (json object) | ||
| |||
| Kind required | string The kind of the resource | ||
object The metadata of the resource (user defined) | |||
| |||
| Name required | string The name of the resource | ||
Responses
Request samples
- Payload
{- "Name": "string",
- "Kind": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 409
{- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}Create a new resource spec and add history entry
path Parameters
| name required | string Name of the resource |
Request Body schema: application/jsonrequired
required | object The spec of the resource as a json object | ||
| |||
object The metadata of the resource as a json object | |||
| |||
Responses
Request samples
- Payload
{- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 404
{- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}Response samples
- 200
- 404
[- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
]Revert a resource to a specific history
path Parameters
| id required | string The resource history id to revert to |
| name required | string The resource name to revert |
Responses
Response samples
- 200
- 404
{- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}Get detailed information about a resource
path Parameters
| name required | string The resource name to inspect |
Responses
Response samples
- 200
- 404
{- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}| Addr | string or null IP address. |
| PrefixLen | integer or null <int64> Mask length of the IP address. |
{- "Addr": "string",
- "PrefixLen": 0
}Helper to generate have Any type for OpenApi useful for dynamic json objects like ResourceSpec
{- "property1": "string",
- "property2": "string"
}| Arch required | string Arch is the architecture of the current binary |
| Channel required | string Channel is the channel of the current binary |
| CommitId required | string CommitID is the commit id of the current binary |
| Version required | string Version is the version of the current binary |
{- "Arch": "string",
- "Channel": "string",
- "Version": "string",
- "CommitId": "string"
}Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
Array of objects or null (BlkioStatsEntry) | |||||||||
Array
| |||||||||
{- "io_service_bytes_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_serviced_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_queue_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_service_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_wait_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_merged_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "sectors_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
]
}| major required | integer <int64> >= 0 |
| minor required | integer <int64> >= 0 |
| op required | string |
| value required | integer <int64> >= 0 |
{- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}required | object (CPUUsage) CPU usage statistics for the container. | ||||||||
| |||||||||
| online_cpus | integer or null <int64> >= 0 | ||||||||
| system_cpu_usage | integer or null <int64> >= 0 | ||||||||
required | object (ThrottlingData) CPU throttling statistics. | ||||||||
| |||||||||
{- "cpu_usage": {
- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}, - "system_cpu_usage": 0,
- "online_cpus": 0,
- "throttling_data": {
- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}
}| percpu_usage | Array of integers or null <int64> [ items <int64 > >= 0 ] |
| total_usage required | integer <int64> >= 0 |
| usage_in_kernelmode required | integer <int64> >= 0 |
| usage_in_usermode required | integer <int64> >= 0 |
{- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}| CreatedAt required | string <date-time> When the cargo was created | ||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||
required | object (CargoSpec) Specification of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}| CreatedAt required | string <date-time> When the cargo was created | ||||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of running instances | ||||||||||||||||||||||||
required | Array of objects (Process) List of instances | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||
required | object (CargoSpec) Specification of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}| signal required | string Signal to send to the container default: SIGKILL |
{- "signal": "string"
}| CargoKey required | string The key of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (Config) Container specification of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CreatedAt required | string <date-time> Creation date of the cargo spec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or Config (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Key required | string <uuid> Unique identifier of the cargo spec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata of the cargo (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version required | string Version of the spec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}required | object (Config) Container specification of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or Config (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata of the cargo (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the cargo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}null or Config (object) | |||
One of null | |||
null or ImagePullPolicy (string) | |||
One of null | |||
| ImagePullSecret | string or null Secret to use when pulling the image | ||
null or Config (object) | |||
One of null | |||
object New metadata of the cargo (user defined) | |||
| |||
| Name | string or null New name of the cargo | ||
null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object))) | |||
One of null | |||
| Secrets | Array of strings or null List of secrets to use as environment variables | ||
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": { },
- "Replication": { }
}| CreatedAt required | string <date-time> When the cargo was created | ||||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of running instances | ||||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||
required | object (CargoSpec) Specification of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the cargo | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
{- "NamespaceName": "string",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
}null or String (string) | |
One of null | |
| DataPathPort | integer or null <int32> >= 0 DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. |
| DefaultAddrPool | Array of strings or null Default Address Pool specifies default subnet pools for global scope networks. |
| ID | string or null The ID of the swarm. |
| RootRotationInProgress | boolean or null Whether there is currently a root CA rotation in progress for the swarm |
null or SwarmSpec (object) | |
One of null | |
| SubnetSize | integer or null <int32> >= 0 SubnetSize specifies the subnet size of the networks created from the default subnet pool. |
null or TlsInfo (object) | |
One of null | |
null or String (string) | |
One of null | |
null or ObjectVersion (object) | |
One of null | |
{- "ID": "string",
- "Version": { },
- "CreatedAt": { },
- "UpdatedAt": { },
- "Spec": { },
- "TLSInfo": { },
- "RootRotationInProgress": true,
- "DataPathPort": 0,
- "DefaultAddrPool": [
- "string"
], - "SubnetSize": 0
}| Expected | string or null Commit ID of external tool expected by dockerd as set at build time. |
| ID | string or null Actual commit ID of external tool. |
{- "ID": "string",
- "Expected": "string"
}| ArgsEscaped | boolean or null Command is already escaped (Windows only) | ||
| AttachStderr | boolean or null Whether to attach to | ||
| AttachStdin | boolean or null Whether to attach to | ||
| AttachStdout | boolean or null Whether to attach to | ||
| Cmd | Array of strings or null Command to run specified as a string or an array of strings. | ||
| Domainname | string or null The domain name to use for the container. | ||
| Entrypoint | Array of strings or null The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string ( | ||
| Env | Array of strings or null A list of environment variables to set inside the container in the form | ||
object or null An object mapping ports to an empty object in the form: | |||
| |||
null or HealthConfig (object) | |||
One of null | |||
null or HostConfig (object) | |||
One of null | |||
| Hostname | string or null The hostname to use for the container, as a valid RFC 1123 hostname. | ||
| Image | string or null The name of the image to use when creating the container | ||
object or null User-defined key/value metadata. | |||
| |||
| MacAddress | string or null MAC address of the container. | ||
| NetworkDisabled | boolean or null Disable networking for the container. | ||
null or NetworkingConfig_String (object) | |||
One of null | |||
| OnBuild | Array of strings or null
| ||
| OpenStdin | boolean or null Open | ||
| Shell | Array of strings or null Shell for when | ||
| StdinOnce | boolean or null Close | ||
| StopSignal | string or null Signal to stop a container as a string or unsigned integer. | ||
| StopTimeout | integer or null <int64> Timeout to stop a container in seconds. | ||
| Tty | boolean or null Attach standard streams to a TTY, including | ||
| User | string or null The user that commands are run as inside the container. | ||
object or null An object mapping mount point paths inside the container to empty objects. | |||
| |||
| WorkingDir | string or null The working directory for commands to run in. | ||
{- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}| ArgsEscaped | boolean or null Command is already escaped (Windows only) | ||
| AttachStderr | boolean or null Whether to attach to | ||
| AttachStdin | boolean or null Whether to attach to | ||
| AttachStdout | boolean or null Whether to attach to | ||
| Cmd | Array of strings or null Command to run specified as a string or an array of strings. | ||
| Domainname | string or null The domain name to use for the container. | ||
| Entrypoint | Array of strings or null The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string ( | ||
| Env | Array of strings or null A list of environment variables to set inside the container in the form | ||
object or null An object mapping ports to an empty object in the form: | |||
| |||
null or HealthConfig (object) | |||
One of null | |||
| Hostname | string or null The hostname to use for the container, as a valid RFC 1123 hostname. | ||
| Image | string or null The name (or reference) of the image to use when creating the container, or which was used when the container was created. | ||
object or null User-defined key/value metadata. | |||
| |||
| MacAddress | string or null MAC address of the container. Deprecated: this field is deprecated in API v1.44 and up. Use EndpointSettings.MacAddress instead. | ||
| NetworkDisabled | boolean or null Disable networking for the container. | ||
| OnBuild | Array of strings or null
| ||
| OpenStdin | boolean or null Open | ||
| Shell | Array of strings or null Shell for when | ||
| StdinOnce | boolean or null Close | ||
| StopSignal | string or null Signal to stop a container as a string or unsigned integer. | ||
| StopTimeout | integer or null <int64> Timeout to stop a container in seconds. | ||
| Tty | boolean or null Attach standard streams to a TTY, including | ||
| User | string or null The user that commands are run as inside the container. | ||
object or null An object mapping mount point paths inside the container to empty objects. | |||
| |||
| WorkingDir | string or null The working directory for commands to run in. | ||
{- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
]
}| AppArmorProfile | string or null | ||||||||||||||||
| Args | Array of strings or null The arguments to the command being run | ||||||||||||||||
null or ContainerConfig (object) | |||||||||||||||||
One of null | |||||||||||||||||
| Created | string or null The time the container was created | ||||||||||||||||
| Driver | string or null | ||||||||||||||||
| ExecIDs | Array of strings or null IDs of exec instances that are running in the container. | ||||||||||||||||
null or GraphDriverData (object) | |||||||||||||||||
One of null | |||||||||||||||||
null or HostConfig (object) | |||||||||||||||||
One of null | |||||||||||||||||
| HostnamePath | string or null | ||||||||||||||||
| HostsPath | string or null | ||||||||||||||||
| Id | string or null The ID of the container | ||||||||||||||||
| Image | string or null The container's image ID | ||||||||||||||||
| LogPath | string or null | ||||||||||||||||
| MountLabel | string or null | ||||||||||||||||
Array of objects or null (MountPoint) | |||||||||||||||||
Array
| |||||||||||||||||
| Name | string or null | ||||||||||||||||
null or NetworkSettings (object) | |||||||||||||||||
One of null | |||||||||||||||||
| Path | string or null The path to the command being run | ||||||||||||||||
| Platform | string or null | ||||||||||||||||
| ProcessLabel | string or null | ||||||||||||||||
| ResolvConfPath | string or null | ||||||||||||||||
| RestartCount | integer or null <int64> | ||||||||||||||||
| SizeRootFs | integer or null <int64> The total size of all the files in this container. | ||||||||||||||||
| SizeRw | integer or null <int64> The size of files that have been created or changed by this container. | ||||||||||||||||
null or ContainerState (object) | |||||||||||||||||
One of null | |||||||||||||||||
{- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}| Dead | boolean or null |
| Error | string or null |
| ExitCode | integer or null <int64> The last exit code of this container |
| FinishedAt | string or null The time when this container last exited. |
null or Health (object) | |
One of null | |
| OOMKilled | boolean or null Whether a process within this container has been killed because it ran out of memory since the container was last started. |
| Paused | boolean or null Whether this container is paused. |
| Pid | integer or null <int64> The process ID of this container |
| Restarting | boolean or null Whether this container is restarting. |
| Running | boolean or null Whether this container is running. Note that a running container can be paused. The |
| StartedAt | string or null The time when this container was last started. |
null or ContainerStateStatusEnum (string) | |
One of null | |
{- "Status": { },
- "Running": true,
- "Paused": true,
- "Restarting": true,
- "OOMKilled": true,
- "Dead": true,
- "Pid": 0,
- "ExitCode": 0,
- "Error": "string",
- "StartedAt": "string",
- "FinishedAt": "string",
- "Health": { }
}"EMPTY"| AttachStderr | boolean or null Attach to stderr of the exec command. |
| AttachStdin | boolean or null Attach to |
| AttachStdout | boolean or null Attach to stdout of the exec command. |
| Cmd | Array of strings or null Command to run, as a string or array of strings. |
| DetachKeys | string or null Override the key sequence for detaching a container. Format is a single character |
| Env | Array of strings or null A list of environment variables in the form |
| Privileged | boolean or null Runs the exec process with extended privileges. |
| Tty | boolean or null Allocate a pseudo-TTY. |
| User | string or null The user, and optionally, group to run the exec process inside the container. Format is one
of: |
| WorkingDir | string or null The working directory for the exec process inside the container. |
{- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "Tty": true,
- "DetachKeys": "string",
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Privileged": true,
- "User": "string",
- "WorkingDir": "string"
}| advertise_addr required | string Address to advertise to other nodes |
| conf_dir required | string Config directory |
| docker_host | string Docker host to use |
| gateway required | string Host gateway automatically detected to host default gateway if not set |
| gid required | integer <int32> >= 0 Group id |
| hostname required | string Hostname to use for the node automatically detected if not set |
| hosts required | Array of strings List of hosts to listen on |
| nodes required | Array of strings List of nodes to join |
null or SslConfig (object) | |
One of null | |
| state_dir required | string Path to the state directory |
| store_addr | string or null Store address to connect to |
{- "hosts": [
- "string"
], - "state_dir": "string",
- "docker_host": "string",
- "store_addr": "string",
- "gateway": "string",
- "hostname": "string",
- "nodes": [
- "string"
], - "advertise_addr": "string",
- "conf_dir": "string",
- "gid": 0,
- "ssl": { }
}| CgroupPermissions | string or null |
| PathInContainer | string or null |
| PathOnHost | string or null |
{- "PathOnHost": "string",
- "PathInContainer": "string",
- "CgroupPermissions": "string"
}| Capabilities | Array of strings or null[ items ] A list of capabilities; an OR list of AND lists of capabilities. | ||
| Count | integer or null <int64> | ||
| DeviceIDs | Array of strings or null | ||
| Driver | string or null | ||
object or null Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. | |||
| |||
{- "Driver": "string",
- "Count": 0,
- "DeviceIDs": [
- "string"
], - "Capabilities": [
- [
- "string"
]
], - "Options": {
- "property1": "string",
- "property2": "string"
}
}required | string or string or string or string or object (NetworkKind) |
One of string Value: "All" Network binding kinds | |
| Name required | string |
{- "Name": "string",
- "IpAddress": "All"
}| IPv4Address | string or null |
| IPv6Address | string or null |
| LinkLocalIPs | Array of strings or null |
{- "IPv4Address": "string",
- "IPv6Address": "string",
- "LinkLocalIPs": [
- "string"
]
}| Aliases | Array of strings or null | ||
| DNSNames | Array of strings or null List of all DNS names an endpoint has on a specific network. This list is based on the container name, network aliases, container short ID, and hostname. These DNS names are non-fully qualified but can contain several dots. You can get fully qualified DNS names by appending | ||
object or null DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. | |||
| |||
| EndpointID | string or null Unique ID for the service endpoint in a Sandbox. | ||
| Gateway | string or null Gateway address for this network. | ||
| GlobalIPv6Address | string or null Global IPv6 address. | ||
| GlobalIPv6PrefixLen | integer or null <int64> Mask length of the global IPv6 address. | ||
| IPAddress | string or null IPv4 address. | ||
null or EndpointIpamConfig (object) | |||
One of null | |||
| IPPrefixLen | integer or null <int64> Mask length of the IPv4 address. | ||
| IPv6Gateway | string or null IPv6 gateway address. | ||
| Links | Array of strings or null | ||
| MacAddress | string or null MAC address for the endpoint on this network. The network driver might ignore this parameter. | ||
| NetworkID | string or null Unique ID of the network. | ||
{- "IPAMConfig": { },
- "Links": [
- "string"
], - "MacAddress": "string",
- "Aliases": [
- "string"
], - "NetworkID": "string",
- "EndpointID": "string",
- "Gateway": "string",
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "DriverOpts": {
- "property1": "string",
- "property2": "string"
}, - "DNSNames": [
- "string"
]
}| Action required | string Action is what action was taken/failed regarding to the regarding actor. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. | ||
null or EventActor (object) | |||
One of null | |||
| CreatedAt required | string <date-time> When the event was created. | ||
| ExpiresAt required | string <date-time> When the event expires. | ||
| Key required | string <uuid> Unique identifier of this event. | ||
| Kind required | string (EventKind) Enum: "error" "normal" "warning" Kind of this event (Error, Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. | ||
object Standard metadata. | |||
| |||
| Note | string or null Human-readable description of the status of this operation | ||
| Reason required | string Reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. | ||
null or EventActor (object) | |||
One of null | |||
| ReportingController required | string Reporting Controller is the name of the controller that emitted this Event.
e.g. | ||
| ReportingNode required | string Reporting Node is the name of the node where the Event was generated. | ||
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "ReportingNode": "string",
- "ReportingController": "string",
- "Kind": "error",
- "Action": "string",
- "Reason": "string",
- "Note": "string",
- "Actor": { },
- "Related": { },
- "Metadata": {
- "property1": "string",
- "property2": "string"
}
}object | |||
| |||
| Key | string or null | ||
| Kind required | string (EventActorKind) Enum: "Namespace" "Cargo" "Vm" "Job" "Resource" "Secret" "Process" "ContainerImage" Kind is the type of event related to the actor kind | ||
{- "Key": "string",
- "Kind": "Namespace",
- "Attributes": {
- "property1": "string",
- "property2": "string"
}
}Kind is the type of event related to the actor kind
"Namespace"required | Array of strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or strings or objects (NativeEventAction) |
Array One of string Value: "create" Action is the action that triggered the event | |
| ActorKey | string or null |
null or EventActorKind (string) | |
One of null | |
| Kind required | Array of strings (EventKind) Items Enum: "error" "normal" "warning" |
| RelatedKey | string or null |
null or EventActorKind (string) | |
One of null | |
{- "ActorKey": "string",
- "ActorKind": { },
- "RelatedKey": "string",
- "RelatedKind": { },
- "Kind": [
- "error"
], - "Action": [
- "create"
]
}Kind of event (Error, Normal, Warning), new types could be added in the future.
"error"| CanRemove | boolean or null |
| ContainerID | string or null |
| DetachKeys | string or null |
| ExitCode | integer or null <int64> |
| ID | string or null |
| OpenStderr | boolean or null |
| OpenStdin | boolean or null |
| OpenStdout | boolean or null |
| Pid | integer or null <int64> The system process ID for the exec process. |
null or ProcessConfig (object) | |
One of null | |
| Running | boolean or null |
{- "CanRemove": true,
- "DetachKeys": "string",
- "ID": "string",
- "Running": true,
- "ExitCode": 0,
- "ProcessConfig": { },
- "OpenStdin": true,
- "OpenStderr": true,
- "OpenStdout": true,
- "ContainerID": "string",
- "Pid": 0
}null or GenericResourcesInnerDiscreteResourceSpec (object) | |
One of null | |
null or GenericResourcesInnerNamedResourceSpec (object) | |
One of null | |
{- "NamedResourceSpec": { },
- "DiscreteResourceSpec": { }
}| Kind | string or null |
| Value | integer or null <int64> |
{- "Kind": "string",
- "Value": 0
}| Kind | string or null |
| Value | string or null |
{- "Kind": "string",
- "Value": "string"
}required | object Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. | ||
| |||
| Name required | string Name of the storage driver. | ||
{- "Name": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}
}| FailingStreak | integer or null <int64> FailingStreak is the number of consecutive failures | ||||||||
Array of objects or null (HealthcheckResult) Log contains the last few results (oldest first) | |||||||||
Array
| |||||||||
null or HealthStatusEnum (string) | |||||||||
One of null | |||||||||
{- "Status": { },
- "FailingStreak": 0,
- "Log": [
- {
- "Start": { },
- "End": { },
- "ExitCode": 0,
- "Output": "string"
}
]
}| Interval | integer or null <int64> The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. |
| Retries | integer or null <int64> The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. |
| StartInterval | integer or null <int64> The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit. |
| StartPeriod | integer or null <int64> Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. |
| Test | Array of strings or null The test to perform. Possible values are: - |
| Timeout | integer or null <int64> The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. |
{- "Test": [
- "string"
], - "Interval": 0,
- "Timeout": 0,
- "Retries": 0,
- "StartPeriod": 0,
- "StartInterval": 0
}"EMPTY"null or String (string) | |
One of null | |
| ExitCode | integer or null <int64> ExitCode meanings: - |
| Output | string or null Output from last check |
null or String (string) | |
One of null | |
{- "Start": { },
- "End": { },
- "ExitCode": 0,
- "Output": "string"
}object or null Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started. | |||||||||||||||||
| |||||||||||||||||
| AutoRemove | boolean or null Automatically remove the container when the container's process exits. This has no effect if | ||||||||||||||||
| Binds | Array of strings or null A list of volume bindings for this container. Each volume binding is a string in one of these forms: - | ||||||||||||||||
Array of objects or null (ThrottleDevice) Limit read rate (bytes per second) from a device, in the form: | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects or null (ThrottleDevice) Limit read rate (IO per second) from a device, in the form: | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects or null (ThrottleDevice) Limit write rate (bytes per second) to a device, in the form: | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects or null (ThrottleDevice) Limit write rate (IO per second) to a device, in the form: | |||||||||||||||||
Array
| |||||||||||||||||
| BlkioWeight | integer or null <int32> >= 0 Block IO weight (relative weight). | ||||||||||||||||
Array of objects or null (ResourcesBlkioWeightDevice) Block IO weight (relative device weight) in the form: | |||||||||||||||||
Array
| |||||||||||||||||
| CapAdd | Array of strings or null A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. | ||||||||||||||||
| CapDrop | Array of strings or null A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. | ||||||||||||||||
| Cgroup | string or null Cgroup to use for the container. | ||||||||||||||||
null or HostConfigCgroupnsModeEnum (string) | |||||||||||||||||
One of null | |||||||||||||||||
| CgroupParent | string or null Path to | ||||||||||||||||
| ConsoleSize | Array of integers or null <int32> [ items <int32 > ] Initial console size, as an | ||||||||||||||||
| ContainerIDFile | string or null Path to a file where the container ID is written | ||||||||||||||||
| CpuCount | integer or null <int64> The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is | ||||||||||||||||
| CpuPercent | integer or null <int64> The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is | ||||||||||||||||
| CpuPeriod | integer or null <int64> The length of a CPU period in microseconds. | ||||||||||||||||
| CpuQuota | integer or null <int64> Microseconds of CPU time that the container can get in a CPU period. | ||||||||||||||||
| CpuRealtimePeriod | integer or null <int64> The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. | ||||||||||||||||
| CpuRealtimeRuntime | integer or null <int64> The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. | ||||||||||||||||
| CpusetCpus | string or null CPUs in which to allow execution (e.g., | ||||||||||||||||
| CpusetMems | string or null Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. | ||||||||||||||||
| CpuShares | integer or null <int64> An integer value representing this container's relative CPU weight versus other containers. | ||||||||||||||||
| DeviceCgroupRules | Array of strings or null a list of cgroup rules to apply to the container | ||||||||||||||||
Array of objects or null (DeviceRequest) A list of requests for devices to be sent to device drivers. | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects or null (DeviceMapping) A list of devices to add to the container. | |||||||||||||||||
Array
| |||||||||||||||||
| Dns | Array of strings or null A list of DNS servers for the container to use. | ||||||||||||||||
| DnsOptions | Array of strings or null A list of DNS options. | ||||||||||||||||
| DnsSearch | Array of strings or null A list of DNS search domains. | ||||||||||||||||
| ExtraHosts | Array of strings or null A list of hostnames/IP mappings to add to the container's | ||||||||||||||||
| GroupAdd | Array of strings or null A list of additional groups that the container process will run as. | ||||||||||||||||
| Init | boolean or null Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. | ||||||||||||||||
| IOMaximumBandwidth | integer or null <int64> Maximum IO in bytes per second for the container system drive (Windows only). | ||||||||||||||||
| IOMaximumIOps | integer or null <int64> Maximum IOps for the container system drive (Windows only) | ||||||||||||||||
| IpcMode | string or null IPC sharing mode for the container. Possible values are: - | ||||||||||||||||
null or HostConfigIsolationEnum (string) | |||||||||||||||||
One of null | |||||||||||||||||
| KernelMemoryTCP | integer or null <int64> Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. | ||||||||||||||||
| Links | Array of strings or null A list of links for the container in the form | ||||||||||||||||
null or HostConfigLogConfig (object) | |||||||||||||||||
One of null | |||||||||||||||||
| MaskedPaths | Array of strings or null The list of paths to be masked inside the container (this overrides the default set of paths). | ||||||||||||||||
| Memory | integer or null <int64> Memory limit in bytes. | ||||||||||||||||
| MemoryReservation | integer or null <int64> Memory soft limit in bytes. | ||||||||||||||||
| MemorySwap | integer or null <int64> Total memory limit (memory + swap). Set as | ||||||||||||||||
| MemorySwappiness | integer or null <int64> Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. | ||||||||||||||||
Array of objects or null (Mount) Specification for mounts to be added to the container. | |||||||||||||||||
Array
| |||||||||||||||||
| NanoCpus | integer or null <int64> CPU quota in units of 10-9 CPUs. | ||||||||||||||||
| NetworkMode | string or null Network mode to use for this container. Supported standard values are: | ||||||||||||||||
| OomKillDisable | boolean or null Disable OOM Killer for the container. | ||||||||||||||||
| OomScoreAdj | integer or null <int64> An integer value containing the score given to the container in order to tune OOM killer preferences. | ||||||||||||||||
| PidMode | string or null Set the PID (Process) Namespace mode for the container. It can be either: - | ||||||||||||||||
| PidsLimit | integer or null <int64> Tune a container's PIDs limit. Set | ||||||||||||||||
null or HashMap (object) | |||||||||||||||||
One of null | |||||||||||||||||
| Privileged | boolean or null Gives the container full access to the host. | ||||||||||||||||
| PublishAllPorts | boolean or null Allocates an ephemeral host port for all of a container's exposed ports. Ports are de-allocated when the container stops and allocated when the container starts. The allocated port might be changed when restarting the container. The port is selected from the ephemeral port range that depends on the kernel. For example, on Linux the range is defined by | ||||||||||||||||
| ReadonlyPaths | Array of strings or null The list of paths to be set as read-only inside the container (this overrides the default set of paths). | ||||||||||||||||
| ReadonlyRootfs | boolean or null Mount the container's root filesystem as read only. | ||||||||||||||||
null or RestartPolicy (object) | |||||||||||||||||
One of null | |||||||||||||||||
| Runtime | string or null Runtime to use with this container. | ||||||||||||||||
| SecurityOpt | Array of strings or null A list of string values to customize labels for MLS systems, such as SELinux. | ||||||||||||||||
| ShmSize | integer or null <int64> Size of | ||||||||||||||||
object or null Storage driver options for this container, in the form | |||||||||||||||||
| |||||||||||||||||
object or null A list of kernel parameters (sysctls) to set in the container. For example: | |||||||||||||||||
| |||||||||||||||||
object or null A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: | |||||||||||||||||
| |||||||||||||||||
Array of objects or null (ResourcesUlimits) A list of resource limits to set in the container. For example: | |||||||||||||||||
Array
| |||||||||||||||||
| UsernsMode | string or null Sets the usernamespace mode for the container when usernamespace remapping option is enabled. | ||||||||||||||||
| UTSMode | string or null UTS namespace to use for the container. | ||||||||||||||||
| VolumeDriver | string or null Driver that this container uses to mount volumes. | ||||||||||||||||
| VolumesFrom | Array of strings or null A list of volumes to inherit from another container, specified in the form | ||||||||||||||||
{- "CpuShares": 0,
- "Memory": 0,
- "CgroupParent": "string",
- "BlkioWeight": 0,
- "BlkioWeightDevice": [
- {
- "Path": "string",
- "Weight": 0
}
], - "BlkioDeviceReadBps": [
- {
- "Path": "string",
- "Rate": 0
}
], - "BlkioDeviceWriteBps": [
- {
- "Path": "string",
- "Rate": 0
}
], - "BlkioDeviceReadIOps": [
- {
- "Path": "string",
- "Rate": 0
}
], - "BlkioDeviceWriteIOps": [
- {
- "Path": "string",
- "Rate": 0
}
], - "CpuPeriod": 0,
- "CpuQuota": 0,
- "CpuRealtimePeriod": 0,
- "CpuRealtimeRuntime": 0,
- "CpusetCpus": "string",
- "CpusetMems": "string",
- "Devices": [
- {
- "PathOnHost": "string",
- "PathInContainer": "string",
- "CgroupPermissions": "string"
}
], - "DeviceCgroupRules": [
- "string"
], - "DeviceRequests": [
- {
- "Driver": "string",
- "Count": 0,
- "DeviceIDs": [
- "string"
], - "Capabilities": [
- [
- "string"
]
], - "Options": {
- "property1": "string",
- "property2": "string"
}
}
], - "KernelMemoryTCP": 0,
- "MemoryReservation": 0,
- "MemorySwap": 0,
- "MemorySwappiness": 0,
- "NanoCpus": 0,
- "OomKillDisable": true,
- "Init": true,
- "PidsLimit": 0,
- "Ulimits": [
- {
- "Name": "string",
- "Soft": 0,
- "Hard": 0
}
], - "CpuCount": 0,
- "CpuPercent": 0,
- "IOMaximumIOps": 0,
- "IOMaximumBandwidth": 0,
- "Binds": [
- "string"
], - "ContainerIDFile": "string",
- "LogConfig": { },
- "NetworkMode": "string",
- "PortBindings": { },
- "RestartPolicy": { },
- "AutoRemove": true,
- "VolumeDriver": "string",
- "VolumesFrom": [
- "string"
], - "Mounts": [
- {
- "Target": "string",
- "Source": "string",
- "Type": { },
- "ReadOnly": true,
- "Consistency": "string",
- "BindOptions": { },
- "VolumeOptions": { },
- "TmpfsOptions": { }
}
], - "ConsoleSize": [
- 0
], - "Annotations": {
- "property1": "string",
- "property2": "string"
}, - "CapAdd": [
- "string"
], - "CapDrop": [
- "string"
], - "CgroupnsMode": { },
- "Dns": [
- "string"
], - "DnsOptions": [
- "string"
], - "DnsSearch": [
- "string"
], - "ExtraHosts": [
- "string"
], - "GroupAdd": [
- "string"
], - "IpcMode": "string",
- "Cgroup": "string",
- "Links": [
- "string"
], - "OomScoreAdj": 0,
- "PidMode": "string",
- "Privileged": true,
- "PublishAllPorts": true,
- "ReadonlyRootfs": true,
- "SecurityOpt": [
- "string"
], - "StorageOpt": {
- "property1": "string",
- "property2": "string"
}, - "Tmpfs": {
- "property1": "string",
- "property2": "string"
}, - "UTSMode": "string",
- "UsernsMode": "string",
- "ShmSize": 0,
- "Sysctls": {
- "property1": "string",
- "property2": "string"
}, - "Runtime": "string",
- "Isolation": { },
- "MaskedPaths": [
- "string"
], - "ReadonlyPaths": [
- "string"
]
}"EMPTY""EMPTY"object or null | |||
| |||
| Type | string or null | ||
{- "Type": "string",
- "Config": {
- "property1": "string",
- "property2": "string"
}
}| Architecture | string or null Hardware architecture of the host, as returned by the Go runtime ( | ||||||||||||||||||||||||||
| BridgeNfIp6tables | boolean or null Indicates if | ||||||||||||||||||||||||||
| BridgeNfIptables | boolean or null Indicates if | ||||||||||||||||||||||||||
| CDISpecDirs | Array of strings or null List of directories where (Container Device Interface) CDI specifications are located. These specifications define vendor-specific modifications to an OCI runtime specification for a container being created. An empty list indicates that CDI device injection is disabled. Note that since using CDI device injection requires the daemon to have experimental enabled. For non-experimental daemons an empty list will always be returned. | ||||||||||||||||||||||||||
null or SystemInfoCgroupDriverEnum (string) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
null or SystemInfoCgroupVersionEnum (string) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
required | object (DaemonConfig) Daemon configuration | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
null or Commit (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| Containers | integer or null <int64> Total number of containers on the host. | ||||||||||||||||||||||||||
| ContainersPaused | integer or null <int64> Number of containers with status | ||||||||||||||||||||||||||
| ContainersRunning | integer or null <int64> Number of containers with status | ||||||||||||||||||||||||||
| ContainersStopped | integer or null <int64> Number of containers with status | ||||||||||||||||||||||||||
| CpuCfsPeriod | boolean or null Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host. | ||||||||||||||||||||||||||
| CpuCfsQuota | boolean or null Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host. | ||||||||||||||||||||||||||
| CPUSet | boolean or null Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host. See cpuset(7) | ||||||||||||||||||||||||||
| CPUShares | boolean or null Indicates if CPU Shares limiting is supported by the host. | ||||||||||||||||||||||||||
| Debug | boolean or null Indicates if the daemon is running in debug-mode / with debug-level logging enabled. | ||||||||||||||||||||||||||
Array of objects or null (SystemInfoDefaultAddressPools) List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. | |||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||
| DefaultRuntime | string or null Name of the default OCI runtime that is used when starting containers. The default can be overridden per-container at create time. | ||||||||||||||||||||||||||
| DockerRootDir | string or null Root directory of persistent Docker state. Defaults to | ||||||||||||||||||||||||||
| Driver | string or null Name of the storage driver in use. | ||||||||||||||||||||||||||
| DriverStatus | Array of strings or null[ items ] Information specific to the storage driver, provided as "label" / "value" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of | ||||||||||||||||||||||||||
| ExperimentalBuild | boolean or null Indicates if experimental features are enabled on the daemon. | ||||||||||||||||||||||||||
null or GenericResourcesInner (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| HostGateway required | string HostGateway is the gateway address of the host | ||||||||||||||||||||||||||
| HttpProxy | string or null HTTP-proxy configured for the daemon. This value is obtained from the | ||||||||||||||||||||||||||
| HttpsProxy | string or null HTTPS-proxy configured for the daemon. This value is obtained from the | ||||||||||||||||||||||||||
| ID | string or null Unique identifier of the daemon. | ||||||||||||||||||||||||||
| Images | integer or null <int64> Total number of images on the host. Both tagged and untagged (dangling) images are counted. | ||||||||||||||||||||||||||
| IndexServerAddress | string or null Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud. | ||||||||||||||||||||||||||
| InitBinary | string or null Name and, optional, path of the | ||||||||||||||||||||||||||
null or Commit (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| IPv4Forwarding | boolean or null Indicates IPv4 forwarding is enabled. | ||||||||||||||||||||||||||
null or SystemInfoIsolationEnum (string) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| KernelMemoryTCP | boolean or null Indicates if the host has kernel memory TCP limit support enabled. This field is omitted if not supported. Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding | ||||||||||||||||||||||||||
| KernelVersion | string or null Kernel version of the host. On Linux, this information obtained from | ||||||||||||||||||||||||||
| Labels | Array of strings or null User-defined labels (key/value metadata) as set on the daemon. /nodes/(id) endpoint > on a manager node in the Swarm.
| ||||||||||||||||||||||||||
| LiveRestoreEnabled | boolean or null Indicates if live restore is enabled. If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected. | ||||||||||||||||||||||||||
| LoggingDriver | string or null The logging driver to use as a default for new containers. | ||||||||||||||||||||||||||
| MemoryLimit | boolean or null Indicates if the host has memory limit support enabled. | ||||||||||||||||||||||||||
| MemTotal | integer or null <int64> Total amount of physical memory available on the host, in bytes. | ||||||||||||||||||||||||||
| Name | string or null Hostname of the host. | ||||||||||||||||||||||||||
| NCPU | integer or null <int64> The number of logical CPUs usable by the daemon. The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected. | ||||||||||||||||||||||||||
required | object (Network) Network configuration | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| NEventsListener | integer or null <int64> Number of event listeners subscribed. | ||||||||||||||||||||||||||
| NFd | integer or null <int64> The total number of file Descriptors in use by the daemon process. This information is only returned if debug-mode is enabled. | ||||||||||||||||||||||||||
| NGoroutines | integer or null <int64> The number of goroutines that currently exist. This information is only returned if debug-mode is enabled. | ||||||||||||||||||||||||||
| NoProxy | string or null Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the | ||||||||||||||||||||||||||
| OomKillDisable | boolean or null Indicates if OOM killer disable is supported on the host. | ||||||||||||||||||||||||||
| OperatingSystem | string or null Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS" or "Windows Server 2016 Datacenter" | ||||||||||||||||||||||||||
| OSType | string or null Generic type of the operating system of the host, as returned by the Go runtime ( | ||||||||||||||||||||||||||
| OSVersion | string or null Version of the host's operating system | ||||||||||||||||||||||||||
| PidsLimit | boolean or null Indicates if the host kernel has PID limit support enabled. | ||||||||||||||||||||||||||
null or PluginsInfo (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| ProductLicense | string or null Reports a summary of the product license on the daemon. If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included. | ||||||||||||||||||||||||||
null or RegistryServiceConfig (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
null or Commit (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
object or null List of OCI compliant runtimes configured on the daemon. Keys hold the "name" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| SecurityOptions | Array of strings or null List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. | ||||||||||||||||||||||||||
| ServerVersion | string or null Version string of the daemon. | ||||||||||||||||||||||||||
| SwapLimit | boolean or null Indicates if the host has memory swap limit support enabled. | ||||||||||||||||||||||||||
null or SwarmInfo (object) | |||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||
| SystemTime | string or null Current system-time in RFC 3339 format with nano-seconds. | ||||||||||||||||||||||||||
| Warnings | Array of strings or null List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. | ||||||||||||||||||||||||||
{- "ID": "string",
- "Containers": 0,
- "ContainersRunning": 0,
- "ContainersPaused": 0,
- "ContainersStopped": 0,
- "Images": 0,
- "Driver": "string",
- "DriverStatus": [
- [
- "string"
]
], - "DockerRootDir": "string",
- "Plugins": { },
- "MemoryLimit": true,
- "SwapLimit": true,
- "KernelMemoryTCP": true,
- "CpuCfsPeriod": true,
- "CpuCfsQuota": true,
- "CPUShares": true,
- "CPUSet": true,
- "PidsLimit": true,
- "OomKillDisable": true,
- "IPv4Forwarding": true,
- "BridgeNfIptables": true,
- "BridgeNfIp6tables": true,
- "Debug": true,
- "NFd": 0,
- "NGoroutines": 0,
- "SystemTime": "string",
- "LoggingDriver": "string",
- "CgroupDriver": { },
- "CgroupVersion": { },
- "NEventsListener": 0,
- "KernelVersion": "string",
- "OperatingSystem": "string",
- "OSVersion": "string",
- "OSType": "string",
- "Architecture": "string",
- "NCPU": 0,
- "MemTotal": 0,
- "IndexServerAddress": "string",
- "RegistryConfig": { },
- "GenericResources": { },
- "HttpProxy": "string",
- "HttpsProxy": "string",
- "NoProxy": "string",
- "Name": "string",
- "Labels": [
- "string"
], - "ExperimentalBuild": true,
- "ServerVersion": "string",
- "Runtimes": {
- "property1": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}
}, - "DefaultRuntime": "string",
- "Swarm": { },
- "LiveRestoreEnabled": true,
- "Isolation": { },
- "InitBinary": "string",
- "ContainerdCommit": { },
- "RuncCommit": { },
- "InitCommit": { },
- "SecurityOptions": [
- "string"
], - "ProductLicense": "string",
- "DefaultAddressPools": [
- {
- "Base": "string",
- "Size": 0
}
], - "Warnings": [
- "string"
], - "CDISpecDirs": [
- "string"
], - "HostGateway": "string",
- "Network": {
- "Name": "string",
- "Id": "string",
- "Created": { },
- "Scope": "string",
- "Driver": "string",
- "EnableIPv6": true,
- "IPAM": { },
- "Internal": true,
- "Attachable": true,
- "Ingress": true,
- "Containers": {
- "property1": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}, - "property2": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}
}, - "Options": {
- "property1": "string",
- "property2": "string"
}, - "Labels": {
- "property1": "string",
- "property2": "string"
}
}, - "Config": {
- "hosts": [
- "string"
], - "state_dir": "string",
- "docker_host": "string",
- "store_addr": "string",
- "gateway": "string",
- "hostname": "string",
- "nodes": [
- "string"
], - "advertise_addr": "string",
- "conf_dir": "string",
- "gid": 0,
- "ssl": { }
}
}{- "Config": {
- "MaxAge": 0,
- "Preload": true,
- "Always": true,
- "IncludeSubDomains": true
}
}| Always required | boolean |
| IncludeSubDomains required | boolean |
| MaxAge required | integer <int64> >= 0 |
| Preload required | boolean |
{- "MaxAge": 0,
- "Preload": true,
- "Always": true,
- "IncludeSubDomains": true
}null or UrlRedirect (string) | |
One of null | |
| Url required | string Url to target |
{- "Url": "string",
- "Redirect": { }
}Policy for pulling images related to process objects (job, cargo, vm)
"Never"| Mirrors | Array of strings or null List of mirrors, expressed as URIs. |
| Name | string or null Name of the registry, such as "docker.io". |
| Official | boolean or null Indicates whether this is an official registry (i.e., Docker Hub / docker.io) |
| Secure | boolean or null Indicates if the registry is part of the list of insecure registries. If |
{- "Name": "string",
- "Mirrors": [
- "string"
], - "Secure": true,
- "Official": true
}Array of objects or null (IpamConfig) List of IPAM configuration options, specified as a map: | |||||||||
Array
| |||||||||
| Driver | string or null Name of the IPAM driver to use. | ||||||||
object or null Driver-specific options, specified as a map. | |||||||||
| |||||||||
{- "Driver": "string",
- "Config": [
- {
- "Subnet": "string",
- "IPRange": "string",
- "Gateway": "string",
- "AuxiliaryAddresses": {
- "property1": "string",
- "property2": "string"
}
}
], - "Options": {
- "property1": "string",
- "property2": "string"
}
}object or null | |||
| |||
| Gateway | string or null | ||
| IPRange | string or null | ||
| Subnet | string or null | ||
{- "Subnet": "string",
- "IPRange": "string",
- "Gateway": "string",
- "AuxiliaryAddresses": {
- "property1": "string",
- "property2": "string"
}
}required | Array of objects (Config) Containers to run | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CreatedAt required | string <date-time> When the job have been created | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the job | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule | string or null Schedule of the job (cron) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null Secrets to load as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the job | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Ttl | integer or null >= 0 Remove the job after (x) seconds after execution | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UpdatedAt required | string <date-time> When the job have been updated | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}| InstanceFailed required | integer >= 0 Number of instance failed | ||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of instance running | ||||||||||||||||||||||
required | Array of objects (Process) List of instances | ||||||||||||||||||||||
Array
| |||||||||||||||||||||||
| InstanceSuccess required | integer >= 0 Number of instance that succeeded | ||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||
required | object (Job) Specification of the job | ||||||||||||||||||||||
| |||||||||||||||||||||||
{- "InstanceTotal": 0,
- "InstanceSuccess": 0,
- "InstanceRunning": 0,
- "InstanceFailed": 0,
- "Spec": {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}required | Array of objects (Config) List of container to run | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
null or ImagePullPolicy (string) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ImagePullSecret | string or null Secret to use when pulling the image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Metadata (user defined) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the job | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule | string or null Schedule of the job (cron) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Secrets | Array of strings or null Secrets to load as environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Ttl | integer or null >= 0 Remove the job after (x) seconds after execution | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "Name": "string",
- "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}| InstanceFailed required | integer >= 0 Number of instance failed | ||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of instance running | ||||||||||||||||||||||
| InstanceSuccess required | integer >= 0 Number of instance that succeeded | ||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||
required | object (Job) Specification of the job | ||||||||||||||||||||||
| |||||||||||||||||||||||
{- "InstanceTotal": 0,
- "InstanceSuccess": 0,
- "InstanceRunning": 0,
- "InstanceFailed": 0,
- "Spec": {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}
}| Burst required | integer >= 0 The burst size |
| Delay | integer or null >= 0 The delay to wait before retrying |
{- "Burst": 0,
- "Delay": 0
}| Rate required | integer >= 0 The max number of request per second |
| Size required | integer >= 0 The max size of the cache in megabytes |
{- "Size": 0,
- "Rate": 0
}Current local status of this node.
Enumeration of values.
Since this enum's variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
"EMPTY"| DisableLogging | boolean or null Disable logging for this target |
| Key required | string The key of the cargo or the vm to target |
| Path | string or null The http path to target when using http |
| Port required | integer <int32> >= 0 The port of the cargo or the vm to target |
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |
One of null | |
{- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}| commit | integer or null <int64> >= 0 |
| commit_peak | integer or null <int64> >= 0 |
| commitbytes | integer or null <int64> >= 0 |
| commitpeakbytes | integer or null <int64> >= 0 |
| failcnt | integer or null <int64> >= 0 |
| limit | integer or null <int64> >= 0 |
| max_usage | integer or null <int64> >= 0 |
| privateworkingset | integer or null <int64> >= 0 |
null or (MemoryStatsStats (MemoryStatsStatsV1 (object) or MemoryStatsStatsV2 (object))) | |
One of null | |
| usage | integer or null <int64> >= 0 |
{- "stats": { },
- "max_usage": 0,
- "usage": 0,
- "failcnt": 0,
- "limit": 0,
- "commit": 0,
- "commit_peak": 0,
- "commitbytes": 0,
- "commitpeakbytes": 0,
- "privateworkingset": 0
}| active_anon required | integer <int64> >= 0 |
| active_file required | integer <int64> >= 0 |
| cache required | integer <int64> >= 0 |
| dirty required | integer <int64> >= 0 |
| hierarchical_memory_limit required | integer <int64> >= 0 |
| hierarchical_memsw_limit | integer or null <int64> >= 0 |
| inactive_anon required | integer <int64> >= 0 |
| inactive_file required | integer <int64> >= 0 |
| mapped_file required | integer <int64> >= 0 |
| pgfault required | integer <int64> >= 0 |
| pgmajfault required | integer <int64> >= 0 |
| pgpgin required | integer <int64> >= 0 |
| pgpgout required | integer <int64> >= 0 |
| rss required | integer <int64> >= 0 |
| rss_huge required | integer <int64> >= 0 |
| shmem | integer or null <int64> >= 0 |
| total_active_anon required | integer <int64> >= 0 |
| total_active_file required | integer <int64> >= 0 |
| total_cache required | integer <int64> >= 0 |
| total_dirty required | integer <int64> >= 0 |
| total_inactive_anon required | integer <int64> >= 0 |
| total_inactive_file required | integer <int64> >= 0 |
| total_mapped_file required | integer <int64> >= 0 |
| total_pgfault required | integer <int64> >= 0 |
| total_pgmajfault required | integer <int64> >= 0 |
| total_pgpgin required | integer <int64> >= 0 |
| total_pgpgout required | integer <int64> >= 0 |
| total_rss required | integer <int64> >= 0 |
| total_rss_huge required | integer <int64> >= 0 |
| total_shmem | integer or null <int64> >= 0 |
| total_unevictable required | integer <int64> >= 0 |
| total_writeback required | integer <int64> >= 0 |
| unevictable required | integer <int64> >= 0 |
| writeback required | integer <int64> >= 0 |
{- "cache": 0,
- "dirty": 0,
- "mapped_file": 0,
- "total_inactive_file": 0,
- "pgpgout": 0,
- "rss": 0,
- "total_mapped_file": 0,
- "writeback": 0,
- "unevictable": 0,
- "pgpgin": 0,
- "total_unevictable": 0,
- "pgmajfault": 0,
- "total_rss": 0,
- "total_rss_huge": 0,
- "total_writeback": 0,
- "total_inactive_anon": 0,
- "rss_huge": 0,
- "hierarchical_memory_limit": 0,
- "total_pgfault": 0,
- "total_active_file": 0,
- "active_anon": 0,
- "total_active_anon": 0,
- "total_pgpgout": 0,
- "total_cache": 0,
- "total_dirty": 0,
- "inactive_anon": 0,
- "active_file": 0,
- "pgfault": 0,
- "inactive_file": 0,
- "total_pgmajfault": 0,
- "total_pgpgin": 0,
- "hierarchical_memsw_limit": 0,
- "shmem": 0,
- "total_shmem": 0
}| active_anon required | integer <int64> >= 0 |
| active_file required | integer <int64> >= 0 |
| cache required | integer <int64> >= 0 |
| dirty required | integer <int64> >= 0 |
| hierarchical_memory_limit required | integer <int64> >= 0 |
| hierarchical_memsw_limit | integer or null <int64> >= 0 |
| inactive_anon required | integer <int64> >= 0 |
| inactive_file required | integer <int64> >= 0 |
| mapped_file required | integer <int64> >= 0 |
| pgfault required | integer <int64> >= 0 |
| pgmajfault required | integer <int64> >= 0 |
| pgpgin required | integer <int64> >= 0 |
| pgpgout required | integer <int64> >= 0 |
| rss required | integer <int64> >= 0 |
| rss_huge required | integer <int64> >= 0 |
| shmem | integer or null <int64> >= 0 |
| total_active_anon required | integer <int64> >= 0 |
| total_active_file required | integer <int64> >= 0 |
| total_cache required | integer <int64> >= 0 |
| total_dirty required | integer <int64> >= 0 |
| total_inactive_anon required | integer <int64> >= 0 |
| total_inactive_file required | integer <int64> >= 0 |
| total_mapped_file required | integer <int64> >= 0 |
| total_pgfault required | integer <int64> >= 0 |
| total_pgmajfault required | integer <int64> >= 0 |
| total_pgpgin required | integer <int64> >= 0 |
| total_pgpgout required | integer <int64> >= 0 |
| total_rss required | integer <int64> >= 0 |
| total_rss_huge required | integer <int64> >= 0 |
| total_shmem | integer or null <int64> >= 0 |
| total_unevictable required | integer <int64> >= 0 |
| total_writeback required | integer <int64> >= 0 |
| unevictable required | integer <int64> >= 0 |
| writeback required | integer <int64> >= 0 |
{- "cache": 0,
- "dirty": 0,
- "mapped_file": 0,
- "total_inactive_file": 0,
- "pgpgout": 0,
- "rss": 0,
- "total_mapped_file": 0,
- "writeback": 0,
- "unevictable": 0,
- "pgpgin": 0,
- "total_unevictable": 0,
- "pgmajfault": 0,
- "total_rss": 0,
- "total_rss_huge": 0,
- "total_writeback": 0,
- "total_inactive_anon": 0,
- "rss_huge": 0,
- "hierarchical_memory_limit": 0,
- "total_pgfault": 0,
- "total_active_file": 0,
- "active_anon": 0,
- "total_active_anon": 0,
- "total_pgpgout": 0,
- "total_cache": 0,
- "total_dirty": 0,
- "inactive_anon": 0,
- "active_file": 0,
- "pgfault": 0,
- "inactive_file": 0,
- "total_pgmajfault": 0,
- "total_pgpgin": 0,
- "hierarchical_memsw_limit": 0,
- "shmem": 0,
- "total_shmem": 0
}| active_anon required | integer <int64> >= 0 |
| active_file required | integer <int64> >= 0 |
| anon required | integer <int64> >= 0 |
| anon_thp required | integer <int64> >= 0 |
| file required | integer <int64> >= 0 |
| file_dirty required | integer <int64> >= 0 |
| file_mapped required | integer <int64> >= 0 |
| file_writeback required | integer <int64> >= 0 |
| inactive_anon required | integer <int64> >= 0 |
| inactive_file required | integer <int64> >= 0 |
| kernel_stack required | integer <int64> >= 0 |
| pgactivate required | integer <int64> >= 0 |
| pgdeactivate required | integer <int64> >= 0 |
| pgfault required | integer <int64> >= 0 |
| pglazyfree required | integer <int64> >= 0 |
| pglazyfreed required | integer <int64> >= 0 |
| pgmajfault required | integer <int64> >= 0 |
| pgrefill required | integer <int64> >= 0 |
| pgscan required | integer <int64> >= 0 |
| pgsteal required | integer <int64> >= 0 |
| shmem required | integer <int64> >= 0 |
| slab required | integer <int64> >= 0 |
| slab_reclaimable required | integer <int64> >= 0 |
| slab_unreclaimable required | integer <int64> >= 0 |
| sock required | integer <int64> >= 0 |
| thp_collapse_alloc required | integer <int64> >= 0 |
| thp_fault_alloc required | integer <int64> >= 0 |
| unevictable required | integer <int64> >= 0 |
| workingset_activate required | integer <int64> >= 0 |
| workingset_nodereclaim required | integer <int64> >= 0 |
| workingset_refault required | integer <int64> >= 0 |
{- "anon": 0,
- "file": 0,
- "kernel_stack": 0,
- "slab": 0,
- "sock": 0,
- "shmem": 0,
- "file_mapped": 0,
- "file_dirty": 0,
- "file_writeback": 0,
- "anon_thp": 0,
- "inactive_anon": 0,
- "active_anon": 0,
- "inactive_file": 0,
- "active_file": 0,
- "unevictable": 0,
- "slab_reclaimable": 0,
- "slab_unreclaimable": 0,
- "pgfault": 0,
- "pgmajfault": 0,
- "workingset_refault": 0,
- "workingset_activate": 0,
- "workingset_nodereclaim": 0,
- "pgrefill": 0,
- "pgscan": 0,
- "pgsteal": 0,
- "pgactivate": 0,
- "pgdeactivate": 0,
- "pglazyfree": 0,
- "pglazyfreed": 0,
- "thp_fault_alloc": 0,
- "thp_collapse_alloc": 0
}| CreatedAt required | string <date-time> When the metric was created |
| Data required | any The data of the metric |
| ExpiresAt required | string <date-time> When the metric will expire |
| Key required | string <uuid> The key of the metric in the database |
| Kind required | string The kind of the metric |
| NodeName required | string The node where the metric come from |
| Note | string or null Optional note about the metric |
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ExpiresAt": "2019-08-24T14:15:22Z",
- "NodeName": "string",
- "Kind": "string",
- "Data": null,
- "Note": "string"
}| Data required | any The data of the metric |
| Kind required | string The kind of the metric |
| Note | string or null Optional note about the metric |
{- "Kind": "string",
- "Data": null,
- "Note": "string"
}null or MountBindOptions (object) | |
One of null | |
| Consistency | string or null The consistency requirement for the mount: |
| ReadOnly | boolean or null Whether the mount should be read-only. |
| Source | string or null Mount source (e.g. a volume name, a host path). |
| Target | string or null Container path. |
null or MountTmpfsOptions (object) | |
One of null | |
null or MountTypeEnum (string) | |
One of null | |
null or MountVolumeOptions (object) | |
One of null | |
{- "Target": "string",
- "Source": "string",
- "Type": { },
- "ReadOnly": true,
- "Consistency": "string",
- "BindOptions": { },
- "VolumeOptions": { },
- "TmpfsOptions": { }
}| CreateMountpoint | boolean or null Create mount point on host if missing |
| NonRecursive | boolean or null Disable recursive bind mount. |
null or MountBindOptionsPropagationEnum (string) | |
One of null | |
| ReadOnlyForceRecursive | boolean or null Raise an error if the mount cannot be made recursively read-only. |
| ReadOnlyNonRecursive | boolean or null Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to |
{- "Propagation": { },
- "NonRecursive": true,
- "CreateMountpoint": true,
- "ReadOnlyNonRecursive": true,
- "ReadOnlyForceRecursive": true
}"EMPTY"| Destination | string or null Destination is the path relative to the container root ( |
| Driver | string or null Driver is the volume driver used to create the volume (if it is a volume). |
| Mode | string or null Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific ( |
| Name | string or null Name is the name reference to the underlying data defined by |
| Propagation | string or null Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the Linux kernel documentation for details. This field is not used on Windows. |
| RW | boolean or null Whether the mount is mounted writable (read-write). |
| Source | string or null Source location of the mount. For volumes, this contains the storage location of the volume (within |
null or MountPointTypeEnum (string) | |
One of null | |
{- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}"EMPTY"| Mode | integer or null <int64> The permission mode for the tmpfs mount in an integer. |
| SizeBytes | integer or null <int64> The size for the tmpfs mount in bytes. |
{- "SizeBytes": 0,
- "Mode": 0
}null or MountVolumeOptionsDriverConfig (object) | |||
One of null | |||
object or null User-defined key/value metadata. | |||
| |||
| NoCopy | boolean or null Populate volume with data from the target. | ||
| Subpath | string or null Source path inside the volume. Must be relative without any back traversals. | ||
{- "NoCopy": true,
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "DriverConfig": { },
- "Subpath": "string"
}| Name | string or null Name of the driver to use to create the volume. | ||
object or null key/value map of driver specific options. | |||
| |||
{- "Name": "string",
- "Options": {
- "property1": "string",
- "property2": "string"
}
}| CreatedAt required | string <date-time> When the namespace was created |
| Metadata | any User defined metadata |
| Name required | string The name as primary key of the namespace |
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Metadata": null
}required | Array of objects (CargoInspect) Number of cargoes | ||||||||||||||
Array
| |||||||||||||||
| Name required | string Name of the namespace | ||||||||||||||
{- "Name": "string",
- "Cargoes": [
- {
- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CargoKey": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}
]
}| Metadata | any User defined metadata |
| Name required | string Name of the namespace |
{- "Name": "string",
- "Metadata": null
}| Cargoes required | integer >= 0 Number of cargoes |
| CreatedAt required | string <date-time> When the namespace was created |
| Instances required | integer >= 0 Number of instances |
| Name required | string Name of the namespace |
{- "Name": "string",
- "Cargoes": 0,
- "Instances": 0,
- "CreatedAt": "2019-08-24T14:15:22Z"
}Action is the action that triggered the event
{- "other": "string"
}| Attachable | boolean or null | ||
object or null | |||
| |||
null or String (string) | |||
One of null | |||
| Driver | string or null | ||
| EnableIPv6 | boolean or null | ||
| Id | string or null | ||
| Ingress | boolean or null | ||
| Internal | boolean or null | ||
null or Ipam (object) | |||
One of null | |||
object or null | |||
| |||
| Name | string or null | ||
object or null | |||
| |||
| Scope | string or null | ||
{- "Name": "string",
- "Id": "string",
- "Created": { },
- "Scope": "string",
- "Driver": "string",
- "EnableIPv6": true,
- "IPAM": { },
- "Internal": true,
- "Attachable": true,
- "Ingress": true,
- "Containers": {
- "property1": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}, - "property2": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}
}, - "Options": {
- "property1": "string",
- "property2": "string"
}, - "Labels": {
- "property1": "string",
- "property2": "string"
}
}| EndpointID | string or null |
| IPv4Address | string or null |
| IPv6Address | string or null |
| MacAddress | string or null |
| Name | string or null |
{- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}| Bridge | string or null Name of the default bridge interface when dockerd's --bridge flag is set. | ||||
| EndpointID | string or null EndpointID uniquely represents a service endpoint in a Sandbox. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| Gateway | string or null Gateway address for the default "bridge" network. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| GlobalIPv6Address | string or null Global IPv6 address for the default "bridge" network. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| GlobalIPv6PrefixLen | integer or null <int64> Mask length of the global IPv6 address. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| HairpinMode | boolean or null Indicates if hairpin NAT should be enabled on the virtual interface. Deprecated: This field is never set and will be removed in a future release. | ||||
| IPAddress | string or null IPv4 address for the default "bridge" network. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| IPPrefixLen | integer or null <int64> Mask length of the IPv4 address. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| IPv6Gateway | string or null IPv6 gateway address for this network. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
| LinkLocalIPv6Address | string or null IPv6 unicast address using the link-local prefix. Deprecated: This field is never set and will be removed in a future release. | ||||
| LinkLocalIPv6PrefixLen | integer or null <int64> Prefix length of the IPv6 unicast address. Deprecated: This field is never set and will be removed in a future release. | ||||
| MacAddress | string or null MAC address for the container on the default "bridge" network. Networks map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0
| ||||
object or null Information about all networks that the container is connected to. | |||||
| |||||
null or HashMap (object) | |||||
One of null | |||||
| SandboxID | string or null SandboxID uniquely represents a container's network stack. | ||||
| SandboxKey | string or null SandboxKey is the full path of the netns handle | ||||
Array of objects or null (Address) Deprecated: This field is never set and will be removed in a future release. | |||||
Array
| |||||
Array of objects or null (Address) Deprecated: This field is never set and will be removed in a future release. | |||||
Array
| |||||
{- "Bridge": "string",
- "SandboxID": "string",
- "HairpinMode": true,
- "LinkLocalIPv6Address": "string",
- "LinkLocalIPv6PrefixLen": 0,
- "Ports": { },
- "SandboxKey": "string",
- "SecondaryIPAddresses": [
- {
- "Addr": "string",
- "PrefixLen": 0
}
], - "SecondaryIPv6Addresses": [
- {
- "Addr": "string",
- "PrefixLen": 0
}
], - "EndpointID": "string",
- "Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "MacAddress": "string",
- "Networks": {
- "property1": {
- "IPAMConfig": { },
- "Links": [
- "string"
], - "MacAddress": "string",
- "Aliases": [
- "string"
], - "NetworkID": "string",
- "EndpointID": "string",
- "Gateway": "string",
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "DriverOpts": {
- "property1": "string",
- "property2": "string"
}, - "DNSNames": [
- "string"
]
}, - "property2": {
- "IPAMConfig": { },
- "Links": [
- "string"
], - "MacAddress": "string",
- "Aliases": [
- "string"
], - "NetworkID": "string",
- "EndpointID": "string",
- "Gateway": "string",
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "DriverOpts": {
- "property1": "string",
- "property2": "string"
}, - "DNSNames": [
- "string"
]
}
}
}| rx_bytes required | integer <int64> >= 0 |
| rx_dropped required | integer <int64> >= 0 |
| rx_errors required | integer <int64> >= 0 |
| rx_packets required | integer <int64> >= 0 |
| tx_bytes required | integer <int64> >= 0 |
| tx_dropped required | integer <int64> >= 0 |
| tx_errors required | integer <int64> >= 0 |
| tx_packets required | integer <int64> >= 0 |
{- "rx_dropped": 0,
- "rx_bytes": 0,
- "rx_errors": 0,
- "tx_packets": 0,
- "tx_dropped": 0,
- "rx_packets": 0,
- "tx_errors": 0,
- "tx_bytes": 0
}required | object | ||
| |||
{- "EndpointsConfig": {
- "property1": {
- "IPAMConfig": { },
- "Links": [
- "string"
], - "MacAddress": "string",
- "Aliases": [
- "string"
], - "NetworkID": "string",
- "EndpointID": "string",
- "Gateway": "string",
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "DriverOpts": {
- "property1": "string",
- "property2": "string"
}, - "DNSNames": [
- "string"
]
}, - "property2": {
- "IPAMConfig": { },
- "Links": [
- "string"
], - "MacAddress": "string",
- "Aliases": [
- "string"
], - "NetworkID": "string",
- "EndpointID": "string",
- "Gateway": "string",
- "IPAddress": "string",
- "IPPrefixLen": 0,
- "IPv6Gateway": "string",
- "GlobalIPv6Address": "string",
- "GlobalIPv6PrefixLen": 0,
- "DriverOpts": {
- "property1": "string",
- "property2": "string"
}, - "DNSNames": [
- "string"
]
}
}
}| CreatedAt required | string <date-time> The created at date |
| Endpoint required | string Endpoint to connect to the node |
| IpAddress required | string The ip address of the node |
| Metadata | any User defined metadata |
| Name required | string The name of the node |
| Version required | string Version of the node |
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "IpAddress": "string",
- "Endpoint": "string",
- "Version": "string",
- "Metadata": null
}| Actual required | string (ObjPsStatusKind) Enum: "create" "starting" "start" "updating" "update" "destroying" "destroy" "stopping" "stop" "fail" "finish" "unknown" |
| PrevActual required | string (ObjPsStatusKind) Enum: "create" "starting" "start" "updating" "update" "destroying" "destroy" "stopping" "stop" "fail" "finish" "unknown" |
| PrevWanted required | string (ObjPsStatusKind) Enum: "create" "starting" "start" "updating" "update" "destroying" "destroy" "stopping" "stop" "fail" "finish" "unknown" |
| UpdatedAt required | string <date-time> |
| Wanted required | string (ObjPsStatusKind) Enum: "create" "starting" "start" "updating" "update" "destroying" "destroy" "stopping" "stop" "fail" "finish" "unknown" |
{- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}"create"| Addr | string or null IP address and ports at which this node can be reached. |
| NodeID | string or null Unique identifier of for this node in the swarm. |
{- "NodeID": "string",
- "Addr": "string"
}| current | integer or null <int64> >= 0 |
| limit | integer or null <int64> >= 0 |
{- "current": 0,
- "limit": 0
}| Authorization | Array of strings or null Names of available authorization plugins. |
| Log | Array of strings or null Names of available logging-drivers, and logging-driver plugins. |
| Network | Array of strings or null Names of available network-drivers, and network-driver plugins. |
| Volume | Array of strings or null Names of available volume-drivers, and network-driver plugins. |
{- "Volume": [
- "string"
], - "Network": [
- "string"
], - "Authorization": [
- "string"
], - "Log": [
- "string"
]
}| CreatedAt required | string <date-time> The created at date | ||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (ContainerInspectResponse) The data of the process a ContainerInspect | ||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Key required | string The key of the process | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Kind required | string (ProcessKind) Enum: "vm" "job" "cargo" Kind of the process (Job, Vm, Cargo) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| KindKey required | string Key of the related kind | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Name required | string Name of the process | ||||||||||||||||||||||||||||||||||||||||||||||||||
| NodeName required | string Name of the node where the container is running | ||||||||||||||||||||||||||||||||||||||||||||||||||
| UpdatedAt required | string <date-time> Last time the instance was updated | ||||||||||||||||||||||||||||||||||||||||||||||||||
{- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}| arguments | Array of strings or null |
| entrypoint | string or null |
| privileged | boolean or null |
| tty | boolean or null |
| user | string or null |
{- "privileged": true,
- "user": "string",
- "tty": true,
- "entrypoint": "string",
- "arguments": [
- "string"
]
}| Name required | string | ||||||||||||||||||||||||||
required | object (Stats) Statistics for the container. | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
{- "Name": "string",
- "Stats": {
- "read": "string",
- "preread": "string",
- "num_procs": 0,
- "pids_stats": {
- "current": 0,
- "limit": 0
}, - "network": { },
- "networks": {
- "property1": {
- "rx_dropped": 0,
- "rx_bytes": 0,
- "rx_errors": 0,
- "tx_packets": 0,
- "tx_dropped": 0,
- "rx_packets": 0,
- "tx_errors": 0,
- "tx_bytes": 0
}, - "property2": {
- "rx_dropped": 0,
- "rx_bytes": 0,
- "rx_errors": 0,
- "tx_packets": 0,
- "tx_dropped": 0,
- "rx_packets": 0,
- "tx_errors": 0,
- "tx_bytes": 0
}
}, - "memory_stats": {
- "stats": { },
- "max_usage": 0,
- "usage": 0,
- "failcnt": 0,
- "limit": 0,
- "commit": 0,
- "commit_peak": 0,
- "commitbytes": 0,
- "commitpeakbytes": 0,
- "privateworkingset": 0
}, - "blkio_stats": {
- "io_service_bytes_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_serviced_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_queue_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_service_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_wait_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_merged_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "sectors_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
]
}, - "cpu_stats": {
- "cpu_usage": {
- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}, - "system_cpu_usage": 0,
- "online_cpus": 0,
- "throttling_data": {
- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}
}, - "precpu_stats": {
- "cpu_usage": {
- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}, - "system_cpu_usage": 0,
- "online_cpus": 0,
- "throttling_data": {
- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}
}, - "storage_stats": {
- "read_count_normalized": 0,
- "read_size_bytes": 0,
- "write_count_normalized": 0,
- "write_size_bytes": 0
}, - "name": "string",
- "id": "string"
}
}| ActiveConnectionIdLimit | integer or null >= 0 QUIC active_connection_id_limit transport parameter |
| Bpf | boolean or null Enable routing of QUIC packets using eBPF (Linux 5.7+) |
| Gso | boolean or null Enable Generic Segmentation Offload for QUIC (Linux with UDP_SEGMENT) |
| HostKey | string or null File path to the QUIC host key |
| Hq | boolean or null Enables HTTP/0.9 protocol negotiation used in QUIC interop tests |
| MaxConcurrentStreams | integer or null >= 0 Maximum concurrent HTTP/3 streams per connection |
| Retry | boolean or null Enable QUIC address validation (retry) |
| StreamBufferSize | string or null Buffer size for QUIC streams (e.g., "64k", "8k") |
{- "Hq": true,
- "MaxConcurrentStreams": 0,
- "StreamBufferSize": "string",
- "ActiveConnectionIdLimit": 0,
- "Bpf": true,
- "Gso": true,
- "HostKey": "string",
- "Retry": true
}| AllowedIps | Array of strings or null Allowed ip addr | ||||||||||
| Headers | Array of strings or null Extras header to add | ||||||||||
null or LimitReq (object) | |||||||||||
One of null | |||||||||||
| Path required | string The path | ||||||||||
required | object or object or object (LocationTarget) | ||||||||||
One of
| |||||||||||
| Version | number or null <double> Http version to use | ||||||||||
{- "Path": "string",
- "Target": {
- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}, - "LimitReq": { },
- "AllowedIps": [
- "string"
], - "Headers": [
- "string"
], - "Version": 0
}| Domain | string or null The domain | ||||||||||||
null or (Hsts (Hsts (string) or Hsts (string) or Hsts (object))) | |||||||||||||
One of null | |||||||||||||
null or (ProxyHttp3 (ProxyHttp3 (boolean) or ProxyHttp3Config (object))) | |||||||||||||
One of null | |||||||||||||
| Includes | Array of strings or null Path to extra config file to include | ||||||||||||
null or LimitReqZone (object) | |||||||||||||
One of null | |||||||||||||
required | Array of objects (ProxyHttpLocation) The locations to handle multiple paths | ||||||||||||
Array
| |||||||||||||
required | string or string or string or string or object (NetworkKind) | ||||||||||||
One of string Value: "All" Type of network binding | |||||||||||||
| Port | integer or null <int32> >= 0 Port to listen on (default 80 or 443) | ||||||||||||
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |||||||||||||
One of null | |||||||||||||
{- "Domain": "string",
- "Port": 0,
- "Hsts": { },
- "Network": "All",
- "LimitReqZone": { },
- "Locations": [
- {
- "Path": "string",
- "Target": {
- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}, - "LimitReq": { },
- "AllowedIps": [
- "string"
], - "Headers": [
- "string"
], - "Version": 0
}
], - "Ssl": { },
- "Http3": { },
- "Includes": [
- "string"
]
}| Domain | string or null The domain | ||||||||||||
null or (Hsts (Hsts (string) or Hsts (string) or Hsts (object))) | |||||||||||||
One of null | |||||||||||||
null or (ProxyHttp3 (ProxyHttp3 (boolean) or ProxyHttp3Config (object))) | |||||||||||||
One of null | |||||||||||||
| Includes | Array of strings or null Path to extra config file to include | ||||||||||||
null or LimitReqZone (object) | |||||||||||||
One of null | |||||||||||||
required | Array of objects (ProxyHttpLocation) The locations to handle multiple paths | ||||||||||||
Array
| |||||||||||||
required | string or string or string or string or object (NetworkKind) | ||||||||||||
One of string Value: "All" Type of network binding | |||||||||||||
| Port | integer or null <int32> >= 0 Port to listen on (default 80 or 443) | ||||||||||||
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |||||||||||||
One of null | |||||||||||||
{- "Domain": "string",
- "Port": 0,
- "Hsts": { },
- "Network": "All",
- "LimitReqZone": { },
- "Locations": [
- {
- "Path": "string",
- "Target": {
- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}, - "LimitReq": { },
- "AllowedIps": [
- "string"
], - "Headers": [
- "string"
], - "Version": 0
}
], - "Ssl": { },
- "Http3": { },
- "Includes": [
- "string"
]
}required | string or string or string or string or object (NetworkKind) | ||||||||||
One of string Value: "All" Type of the network binding | |||||||||||
| Port required | integer <int32> >= 0 The port to open on nodes | ||||||||||
| Protocol required | string (ProxyStreamProtocol) Enum: "Tcp" "Udp" Protocol to use Tcp | Udp | ||||||||||
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |||||||||||
One of null | |||||||||||
required | object or object or object (StreamTarget) | ||||||||||
One of
| |||||||||||
{- "Network": "All",
- "Protocol": "Tcp",
- "Port": 0,
- "Ssl": { },
- "Target": {
- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}
}| Certificate required | string Path to the certificate |
| CertificateClient | string or null Path to the certificate client |
| CertificateKey required | string Path to the certificate key |
| Dhparam | string or null Path to the dhparam file |
| VerifyClient | boolean or null Enable or disable client verification |
{- "Certificate": "string",
- "CertificateKey": "string",
- "CertificateClient": "string",
- "VerifyClient": true,
- "Dhparam": "string"
}| Certificate required | string Path to the certificate |
| CertificateClient | string or null Path to the certificate client |
| CertificateKey required | string Path to the certificate key |
| Dhparam | string or null Path to the dhparam file |
| VerifyClient | boolean or null Enable or disable client verification |
{- "Certificate": "string",
- "CertificateKey": "string",
- "CertificateClient": "string",
- "VerifyClient": true,
- "Dhparam": "string"
}| AllowNondistributableArtifactsCIDRs | Array of strings or null List of IP ranges to which nondistributable artifacts can be pushed, using the CIDR syntax RFC 4632. Some images (for example, Windows base images) contain artifacts whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included. This configuration override this behavior, and enables the daemon to push nondistributable artifacts to all registries whose resolved IP address is within the subnet described by the CIDR syntax. This option is useful when pushing images containing nondistributable artifacts to a registry on an air-gapped network so hosts on that network can pull the images without connecting to another server. > Warning: Nondistributable artifacts typically have restrictions > on how and where they can be distributed and shared. Only use this > feature to push artifacts to private registries and ensure that you > are in compliance with any terms that cover redistributing > nondistributable artifacts. | ||
| AllowNondistributableArtifactsHostnames | Array of strings or null List of registry hostnames to which nondistributable artifacts can be pushed, using the format | ||
object or null | |||
| |||
| InsecureRegistryCIDRs | Array of strings or null List of IP ranges of insecure registries, using the CIDR syntax (RFC 4632). Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. By default, local registries ( | ||
| Mirrors | Array of strings or null List of registry URLs that act as a mirror for the official ( | ||
{- "AllowNondistributableArtifactsCIDRs": [
- "string"
], - "AllowNondistributableArtifactsHostnames": [
- "string"
], - "InsecureRegistryCIDRs": [
- "string"
], - "IndexConfigs": {
- "property1": {
- "Name": "string",
- "Mirrors": [
- "string"
], - "Secure": true,
- "Official": true
}, - "property2": {
- "Name": "string",
- "Mirrors": [
- "string"
], - "Secure": true,
- "Official": true
}
}, - "Mirrors": [
- "string"
]
}| Mode required | string Value: "Auto" |
{- "names": [
- "string"
], - "number": 0,
- "Mode": "StaticByNodeNames"
}| CreatedAt required | string <date-time> The creation date of the resource | ||||||||||||
| Kind required | string The kind of the resource | ||||||||||||
required | object (ResourceSpec) Specification of the ressource | ||||||||||||
| |||||||||||||
{- "Kind": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
}required | Array of objects (DnsEntry) | ||||
Array
| |||||
required | string or string or string or string or object (NetworkKind) | ||||
One of string Value: "All" Network binding kinds | |||||
{- "Network": "All",
- "Entries": [
- {
- "Name": "string",
- "IpAddress": "All"
}
]
}| CreatedAt required | string <date-time> When the kind have been created | ||||
required | object (ResourceKindSpec) When the kind have been created | ||||
| |||||
| Metadata | any When the kind have been created | ||||
| Name required | string Name of the kind | ||||
| Version required | string When the kind have been created | ||||
{- "Name": "string",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Metadata": null,
- "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}| CreatedAt required | string <date-time> When the kind have been created | ||||||||||||
| Name required | string Name of the kind | ||||||||||||
required | Array of objects (ResourceKindVersion) List of versions available | ||||||||||||
Array
| |||||||||||||
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Versions": [
- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "KindKey": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}
]
}required | object (ResourceKindSpec) Spec of the resource kind | ||||
| |||||
object Metadata (user defined) of the resource kind | |||||
| |||||
| Name required | string The name of the resource kind | ||||
| Version required | string The version of the resource kind | ||||
{- "Name": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}object The JSONSchema of the resource of this kind and version | |||
| |||
| Url | string or null The service to call when creating, updating or deleting a resource of this kind and version | ||
{- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}| CreatedAt required | string <date-time> When the version have been created | ||||
required | object (ResourceKindSpec) Spec of the kind | ||||
| |||||
| Key required | string <uuid> Key of the version | ||||
| KindKey required | string Kind linked to this version | ||||
object Metadata (user defined) | |||||
| |||||
| Version required | string Version | ||||
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "KindKey": "string",
- "Version": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "Schema": {
- "property1": "string",
- "property2": "string"
}, - "Url": "string"
}
}required | object The data of the resource (json object) | ||
| |||
| Kind required | string The kind of the resource | ||
object The metadata of the resource (user defined) | |||
| |||
| Name required | string The name of the resource | ||
{- "Name": "string",
- "Kind": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}required | Array of ProxyRuleHttp (object) or ProxyRuleStream (object) (ProxyRule) The rules to apply | ||||||||||||||||||
Array One of
| |||||||||||||||||||
{- "Rules": [
- {
- "Domain": "string",
- "Port": 0,
- "Hsts": { },
- "Network": "All",
- "LimitReqZone": { },
- "Locations": [
- {
- "Path": "string",
- "Target": {
- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}, - "LimitReq": { },
- "AllowedIps": [
- "string"
], - "Headers": [
- "string"
], - "Version": 0
}
], - "Ssl": { },
- "Http3": { },
- "Includes": [
- "string"
]
}
]
}| CreatedAt required | string <date-time> The creation date of the resource | ||
required | object The data of the resource as a json object | ||
| |||
| Key required | string <uuid> Key of the resource | ||
object The metadata of the resource (user defined) | |||
| |||
| ResourceKey required | string Resource key associated with the data | ||
| Version required | string Version of the resource | ||
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "Version": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "ResourceKey": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}required | object The spec of the resource as a json object | ||
| |||
object The metadata of the resource as a json object | |||
| |||
{- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}| Path | string or null |
| Weight | integer or null >= 0 |
{- "Path": "string",
- "Weight": 0
}| Hard | integer or null <int64> Hard limit |
| Name | string or null Name of ulimit |
| Soft | integer or null <int64> Soft limit |
{- "Name": "string",
- "Soft": 0,
- "Hard": 0
}| MaximumRetryCount | integer or null <int64> If |
null or RestartPolicyNameEnum (string) | |
One of null | |
{- "Name": { },
- "MaximumRetryCount": 0
}"EMPTY"| path | string or null Name and, optional, path, of the OCI executable binary. If the path is omitted, the daemon searches the host's | ||
| runtimeArgs | Array of strings or null List of command-line arguments to pass to the runtime when invoked. | ||
object or null Information specific to the runtime. While this API specification does not define data provided by runtimes, the following well-known properties may be provided by runtimes: | |||
| |||
{- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}| CreatedAt required | string <date-time> The creation date | ||
required | object The secret data | ||
| |||
| Immutable required | boolean The secret cannot be updated | ||
| Kind required | string The kind of secret | ||
object | |||
| |||
| Name required | string The name of the secret | ||
| UpdatedAt required | string <date-time> The last update date | ||
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}required | object The secret data | ||
| |||
| Immutable | boolean The secret cannot be updated | ||
| Kind required | string The kind of secret | ||
object The metadata of the resource (user defined) | |||
| |||
| Name required | string The name of the secret | ||
{- "Name": "string",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}required | object The data of the secret as a json object | ||
| |||
object The metadata of the secret (user defined) | |||
| |||
{- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}| Cert | string or null The certificate content |
| CertCa | string or null The certificate authority content |
| CertKey | string or null The certificate key content |
| Password | string or null The certificate password if any |
| Verify required | boolean Verify certificate authority |
{- "Cert": "string",
- "CertKey": "string",
- "CertCa": "string",
- "Verify": true,
- "Password": "string"
}| Detach required | boolean Detach from the command. |
| OutputCapacity | integer or null >= 0 The maximum size for a line of output. The default is 8 * 1024 (roughly 1024 characters). |
| Tty required | boolean Allocate a pseudo-TTY. |
{- "Detach": true,
- "Tty": true,
- "OutputCapacity": 0
}| ApiVersion required | string Api version to use or remote url | ||||||||||||||||||||
Array of objects or null (StatefileArg) Arguments to pass to the Statefile | |||||||||||||||||||||
Array
| |||||||||||||||||||||
Array of objects or null (CargoSpecPartial) List of cargoes to create and run | |||||||||||||||||||||
Array
| |||||||||||||||||||||
| Group | string or null Set the group of defined objects default to | ||||||||||||||||||||
Array of objects or null (JobPartial) List of jobs to create and run | |||||||||||||||||||||
Array
| |||||||||||||||||||||
null or StatefileMetadata (object) | |||||||||||||||||||||
One of null | |||||||||||||||||||||
| Namespace | string or null Namespace where the cargoes and virtual machines are deployed | ||||||||||||||||||||
Array of objects or null (ResourcePartial) List of resources to create | |||||||||||||||||||||
Array
| |||||||||||||||||||||
Array of objects or null (SecretPartial) List of secrets to create | |||||||||||||||||||||
Array
| |||||||||||||||||||||
Array of strings or SubStateDef (object) or null (SubState) Include sub states that will be applied before the current state | |||||||||||||||||||||
Array One of string | |||||||||||||||||||||
Array of objects or null (VmSpecPartial) List of virtual machines to create and run | |||||||||||||||||||||
Array
| |||||||||||||||||||||
{- "ApiVersion": "string",
- "Metadata": { },
- "Args": [
- {
- "Name": "string",
- "Kind": "String",
- "Default": "string",
- "Required": true,
- "Multiple": true,
- "Description": "string",
- "Example": "string"
}
], - "SubStates": [
- "string"
], - "Group": "string",
- "Namespace": "string",
- "Secrets": [
- {
- "Name": "string",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}
], - "Resources": [
- {
- "Name": "string",
- "Kind": "string",
- "Data": {
- "property1": "string",
- "property2": "string"
}, - "Metadata": {
- "property1": "string",
- "property2": "string"
}
}
], - "Cargoes": [
- {
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "InitContainer": { },
- "Secrets": [
- "string"
], - "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Container": {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}, - "Replication": { }
}
], - "VirtualMachines": [
- {
- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "User": "string",
- "Password": "string",
- "SshKey": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": { }
}
], - "Jobs": [
- {
- "Name": "string",
- "Secrets": [
- "string"
], - "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Schedule": "string",
- "Ttl": 0,
- "ImagePullSecret": "string",
- "ImagePullPolicy": { },
- "Containers": [
- {
- "Hostname": "string",
- "Domainname": "string",
- "User": "string",
- "AttachStdin": true,
- "AttachStdout": true,
- "AttachStderr": true,
- "ExposedPorts": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "Tty": true,
- "OpenStdin": true,
- "StdinOnce": true,
- "Env": [
- "string"
], - "Cmd": [
- "string"
], - "Healthcheck": { },
- "ArgsEscaped": true,
- "Image": "string",
- "Volumes": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "WorkingDir": "string",
- "Entrypoint": [
- "string"
], - "NetworkDisabled": true,
- "MacAddress": "string",
- "OnBuild": [
- "string"
], - "Labels": {
- "property1": "string",
- "property2": "string"
}, - "StopSignal": "string",
- "StopTimeout": 0,
- "Shell": [
- "string"
], - "HostConfig": { },
- "NetworkingConfig": { }
}
]
}
]
}| Default | string or null Default value of the build arg |
| Description | string or null Short description of the argument |
| Example | string or null Example value for the argument |
| Kind required | string (StatefileArgKind) Enum: "String" "Number" "Boolean" Kind of the build arg |
| Multiple | boolean Multiple values accepted for the argument |
| Name required | string Name of the build arg |
| Required | boolean Required argument |
{- "Name": "string",
- "Kind": "String",
- "Default": "string",
- "Required": true,
- "Multiple": true,
- "Description": "string",
- "Example": "string"
}Statefile argument definition to pass to the Statefile
"String"| About | string or null About the statefile whill be use under the name section |
| LongAbout | string or null Long about of the statefile will be use under the description section |
| ManContent | string or null Override the content of the manual page for this statefile |
| Name | string or null Optional title for the statefile documentation |
| Tags | Array of strings or null Optional tags associated to this statefile |
{- "Name": "string",
- "About": "string",
- "LongAbout": "string",
- "Tags": [
- "string"
], - "ManContent": "string"
}required | object (BlkioStats) I/O statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
required | object (CPUStats) General CPU statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
| id | string | ||||||||||||||||||||
required | object (MemoryStats) General memory statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
| name | string | ||||||||||||||||||||
null or NetworkStats (object) | |||||||||||||||||||||
One of null | |||||||||||||||||||||
object or null | |||||||||||||||||||||
| |||||||||||||||||||||
| num_procs required | integer <int32> >= 0 | ||||||||||||||||||||
required | object (PidsStats) Process ID statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
required | object (CPUStats) General CPU statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
| preread required | string | ||||||||||||||||||||
| read required | string | ||||||||||||||||||||
required | object (StorageStats) File I/O statistics for the container. | ||||||||||||||||||||
| |||||||||||||||||||||
{- "read": "string",
- "preread": "string",
- "num_procs": 0,
- "pids_stats": {
- "current": 0,
- "limit": 0
}, - "network": { },
- "networks": {
- "property1": {
- "rx_dropped": 0,
- "rx_bytes": 0,
- "rx_errors": 0,
- "tx_packets": 0,
- "tx_dropped": 0,
- "rx_packets": 0,
- "tx_errors": 0,
- "tx_bytes": 0
}, - "property2": {
- "rx_dropped": 0,
- "rx_bytes": 0,
- "rx_errors": 0,
- "tx_packets": 0,
- "tx_dropped": 0,
- "rx_packets": 0,
- "tx_errors": 0,
- "tx_bytes": 0
}
}, - "memory_stats": {
- "stats": { },
- "max_usage": 0,
- "usage": 0,
- "failcnt": 0,
- "limit": 0,
- "commit": 0,
- "commit_peak": 0,
- "commitbytes": 0,
- "commitpeakbytes": 0,
- "privateworkingset": 0
}, - "blkio_stats": {
- "io_service_bytes_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_serviced_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_queue_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_service_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_wait_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_merged_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "io_time_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
], - "sectors_recursive": [
- {
- "major": 0,
- "minor": 0,
- "op": "string",
- "value": 0
}
]
}, - "cpu_stats": {
- "cpu_usage": {
- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}, - "system_cpu_usage": 0,
- "online_cpus": 0,
- "throttling_data": {
- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}
}, - "precpu_stats": {
- "cpu_usage": {
- "percpu_usage": [
- 0
], - "usage_in_usermode": 0,
- "total_usage": 0,
- "usage_in_kernelmode": 0
}, - "system_cpu_usage": 0,
- "online_cpus": 0,
- "throttling_data": {
- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}
}, - "storage_stats": {
- "read_count_normalized": 0,
- "read_size_bytes": 0,
- "write_count_normalized": 0,
- "write_size_bytes": 0
}, - "name": "string",
- "id": "string"
}| read_count_normalized | integer or null <int64> >= 0 |
| read_size_bytes | integer or null <int64> >= 0 |
| write_count_normalized | integer or null <int64> >= 0 |
| write_size_bytes | integer or null <int64> >= 0 |
{- "read_count_normalized": 0,
- "read_size_bytes": 0,
- "write_count_normalized": 0,
- "write_size_bytes": 0
}| DisableLogging | boolean or null Disable logging for this target |
| Key required | string The key of the cargo or the vm to target |
| Path | string or null The http path to target when using http |
| Port required | integer <int32> >= 0 The port of the cargo or the vm to target |
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |
One of null | |
{- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}| Name required | string Name of the argument |
required | number or string or boolean (SubStateValue) |
One of number <double> Value for the argument | |
{- "Name": "string",
- "Value": 0.1
}Array of objects or null (SubStateArg) | |||||
Array
| |||||
| Path required | string | ||||
{- "Path": "string",
- "Args": [
- {
- "Name": "string",
- "Value": 0.1
}
]
}null or ClusterInfo (object) | |||||
One of null | |||||
| ControlAvailable | boolean or null | ||||
| Error | string or null | ||||
null or LocalNodeState (string) | |||||
One of null | |||||
| Managers | integer or null <int64> Total number of managers in the swarm. | ||||
| NodeAddr | string or null IP address at which this node can be reached by other nodes in the swarm. | ||||
| NodeID | string or null Unique identifier of for this node in the swarm. | ||||
| Nodes | integer or null <int64> Total number of nodes in the swarm. | ||||
Array of objects or null (PeerNode) List of ID's and addresses of other managers in the swarm. | |||||
Array
| |||||
{- "NodeID": "string",
- "NodeAddr": "string",
- "LocalNodeState": { },
- "ControlAvailable": true,
- "Error": "string",
- "RemoteManagers": [
- {
- "NodeID": "string",
- "Addr": "string"
}
], - "Nodes": 0,
- "Managers": 0,
- "Cluster": { }
}null or SwarmSpecCaConfig (object) | |||
One of null | |||
null or SwarmSpecDispatcher (object) | |||
One of null | |||
null or SwarmSpecEncryptionConfig (object) | |||
One of null | |||
object or null User-defined key/value metadata. | |||
| |||
| Name | string or null Name of the swarm. | ||
null or SwarmSpecOrchestration (object) | |||
One of null | |||
null or SwarmSpecRaft (object) | |||
One of null | |||
null or SwarmSpecTaskDefaults (object) | |||
One of null | |||
{- "Name": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "Orchestration": { },
- "Raft": { },
- "Dispatcher": { },
- "CAConfig": { },
- "EncryptionConfig": { },
- "TaskDefaults": { }
}Array of objects or null (SwarmSpecCaConfigExternalCas) Configuration for forwarding signing requests to an external certificate authority. | |||||||||
Array
| |||||||||
| ForceRotate | integer or null <int64> >= 0 An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in | ||||||||
| NodeCertExpiry | integer or null <int64> The duration node certificates are issued for. | ||||||||
| SigningCACert | string or null The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format. | ||||||||
| SigningCAKey | string or null The desired signing CA key for all swarm node TLS leaf certificates, in PEM format. | ||||||||
{- "NodeCertExpiry": 0,
- "ExternalCAs": [
- {
- "Protocol": { },
- "URL": "string",
- "Options": {
- "property1": "string",
- "property2": "string"
}, - "CACert": "string"
}
], - "SigningCACert": "string",
- "SigningCAKey": "string",
- "ForceRotate": 0
}| CACert | string or null The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). | ||
object or null An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. | |||
| |||
null or SwarmSpecCaConfigExternalCasProtocolEnum (string) | |||
One of null | |||
| URL | string or null URL where certificate signing requests should be sent. | ||
{- "Protocol": { },
- "URL": "string",
- "Options": {
- "property1": "string",
- "property2": "string"
}, - "CACert": "string"
}"EMPTY"| HeartbeatPeriod | integer or null <int64> The delay for an agent to send a heartbeat to the dispatcher. |
{- "HeartbeatPeriod": 0
}| AutoLockManagers | boolean or null If set, generate a key and use it to lock data stored on the managers. |
{- "AutoLockManagers": true
}| TaskHistoryRetentionLimit | integer or null <int64> The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks. |
{- "TaskHistoryRetentionLimit": 0
}| ElectionTick | integer or null <int64> The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. |
| HeartbeatTick | integer or null <int64> The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. |
| KeepOldSnapshots | integer or null <int64> >= 0 The number of snapshots to keep beyond the current snapshot. |
| LogEntriesForSlowFollowers | integer or null <int64> >= 0 The number of log entries to keep around to sync up slow followers after a snapshot is created. |
| SnapshotInterval | integer or null <int64> >= 0 The number of log entries between snapshots. |
{- "SnapshotInterval": 0,
- "KeepOldSnapshots": 0,
- "LogEntriesForSlowFollowers": 0,
- "ElectionTick": 0,
- "HeartbeatTick": 0
}| Name | string or null The log driver to use as a default for new tasks. | ||
object or null Driver-specific options for the selectd log driver, specified as key/value pairs. | |||
| |||
{- "Name": "string",
- "Options": {
- "property1": "string",
- "property2": "string"
}
}| Architecture | string or null Hardware architecture of the host, as returned by the Go runtime ( | ||||
| BridgeNfIp6tables | boolean or null Indicates if | ||||
| BridgeNfIptables | boolean or null Indicates if | ||||
| CDISpecDirs | Array of strings or null List of directories where (Container Device Interface) CDI specifications are located. These specifications define vendor-specific modifications to an OCI runtime specification for a container being created. An empty list indicates that CDI device injection is disabled. Note that since using CDI device injection requires the daemon to have experimental enabled. For non-experimental daemons an empty list will always be returned. | ||||
null or SystemInfoCgroupDriverEnum (string) | |||||
One of null | |||||
null or SystemInfoCgroupVersionEnum (string) | |||||
One of null | |||||
null or Commit (object) | |||||
One of null | |||||
| Containers | integer or null <int64> Total number of containers on the host. | ||||
| ContainersPaused | integer or null <int64> Number of containers with status | ||||
| ContainersRunning | integer or null <int64> Number of containers with status | ||||
| ContainersStopped | integer or null <int64> Number of containers with status | ||||
| CpuCfsPeriod | boolean or null Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host. | ||||
| CpuCfsQuota | boolean or null Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host. | ||||
| CPUSet | boolean or null Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host. See cpuset(7) | ||||
| CPUShares | boolean or null Indicates if CPU Shares limiting is supported by the host. | ||||
| Debug | boolean or null Indicates if the daemon is running in debug-mode / with debug-level logging enabled. | ||||
Array of objects or null (SystemInfoDefaultAddressPools) List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. | |||||
Array
| |||||
| DefaultRuntime | string or null Name of the default OCI runtime that is used when starting containers. The default can be overridden per-container at create time. | ||||
| DockerRootDir | string or null Root directory of persistent Docker state. Defaults to | ||||
| Driver | string or null Name of the storage driver in use. | ||||
| DriverStatus | Array of strings or null[ items ] Information specific to the storage driver, provided as "label" / "value" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of | ||||
| ExperimentalBuild | boolean or null Indicates if experimental features are enabled on the daemon. | ||||
null or GenericResourcesInner (object) | |||||
One of null | |||||
| HttpProxy | string or null HTTP-proxy configured for the daemon. This value is obtained from the | ||||
| HttpsProxy | string or null HTTPS-proxy configured for the daemon. This value is obtained from the | ||||
| ID | string or null Unique identifier of the daemon. | ||||
| Images | integer or null <int64> Total number of images on the host. Both tagged and untagged (dangling) images are counted. | ||||
| IndexServerAddress | string or null Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud. | ||||
| InitBinary | string or null Name and, optional, path of the | ||||
null or Commit (object) | |||||
One of null | |||||
| IPv4Forwarding | boolean or null Indicates IPv4 forwarding is enabled. | ||||
null or SystemInfoIsolationEnum (string) | |||||
One of null | |||||
| KernelMemoryTCP | boolean or null Indicates if the host has kernel memory TCP limit support enabled. This field is omitted if not supported. Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding | ||||
| KernelVersion | string or null Kernel version of the host. On Linux, this information obtained from | ||||
| Labels | Array of strings or null User-defined labels (key/value metadata) as set on the daemon. /nodes/(id) endpoint > on a manager node in the Swarm.
| ||||
| LiveRestoreEnabled | boolean or null Indicates if live restore is enabled. If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected. | ||||
| LoggingDriver | string or null The logging driver to use as a default for new containers. | ||||
| MemoryLimit | boolean or null Indicates if the host has memory limit support enabled. | ||||
| MemTotal | integer or null <int64> Total amount of physical memory available on the host, in bytes. | ||||
| Name | string or null Hostname of the host. | ||||
| NCPU | integer or null <int64> The number of logical CPUs usable by the daemon. The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected. | ||||
| NEventsListener | integer or null <int64> Number of event listeners subscribed. | ||||
| NFd | integer or null <int64> The total number of file Descriptors in use by the daemon process. This information is only returned if debug-mode is enabled. | ||||
| NGoroutines | integer or null <int64> The number of goroutines that currently exist. This information is only returned if debug-mode is enabled. | ||||
| NoProxy | string or null Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the | ||||
| OomKillDisable | boolean or null Indicates if OOM killer disable is supported on the host. | ||||
| OperatingSystem | string or null Name of the host's operating system, for example: "Ubuntu 16.04.2 LTS" or "Windows Server 2016 Datacenter" | ||||
| OSType | string or null Generic type of the operating system of the host, as returned by the Go runtime ( | ||||
| OSVersion | string or null Version of the host's operating system | ||||
| PidsLimit | boolean or null Indicates if the host kernel has PID limit support enabled. | ||||
null or PluginsInfo (object) | |||||
One of null | |||||
| ProductLicense | string or null Reports a summary of the product license on the daemon. If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included. | ||||
null or RegistryServiceConfig (object) | |||||
One of null | |||||
null or Commit (object) | |||||
One of null | |||||
object or null List of OCI compliant runtimes configured on the daemon. Keys hold the "name" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the | |||||
| |||||
| SecurityOptions | Array of strings or null List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. | ||||
| ServerVersion | string or null Version string of the daemon. | ||||
| SwapLimit | boolean or null Indicates if the host has memory swap limit support enabled. | ||||
null or SwarmInfo (object) | |||||
One of null | |||||
| SystemTime | string or null Current system-time in RFC 3339 format with nano-seconds. | ||||
| Warnings | Array of strings or null List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. | ||||
{- "ID": "string",
- "Containers": 0,
- "ContainersRunning": 0,
- "ContainersPaused": 0,
- "ContainersStopped": 0,
- "Images": 0,
- "Driver": "string",
- "DriverStatus": [
- [
- "string"
]
], - "DockerRootDir": "string",
- "Plugins": { },
- "MemoryLimit": true,
- "SwapLimit": true,
- "KernelMemoryTCP": true,
- "CpuCfsPeriod": true,
- "CpuCfsQuota": true,
- "CPUShares": true,
- "CPUSet": true,
- "PidsLimit": true,
- "OomKillDisable": true,
- "IPv4Forwarding": true,
- "BridgeNfIptables": true,
- "BridgeNfIp6tables": true,
- "Debug": true,
- "NFd": 0,
- "NGoroutines": 0,
- "SystemTime": "string",
- "LoggingDriver": "string",
- "CgroupDriver": { },
- "CgroupVersion": { },
- "NEventsListener": 0,
- "KernelVersion": "string",
- "OperatingSystem": "string",
- "OSVersion": "string",
- "OSType": "string",
- "Architecture": "string",
- "NCPU": 0,
- "MemTotal": 0,
- "IndexServerAddress": "string",
- "RegistryConfig": { },
- "GenericResources": { },
- "HttpProxy": "string",
- "HttpsProxy": "string",
- "NoProxy": "string",
- "Name": "string",
- "Labels": [
- "string"
], - "ExperimentalBuild": true,
- "ServerVersion": "string",
- "Runtimes": {
- "property1": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}
}, - "DefaultRuntime": "string",
- "Swarm": { },
- "LiveRestoreEnabled": true,
- "Isolation": { },
- "InitBinary": "string",
- "ContainerdCommit": { },
- "RuncCommit": { },
- "InitCommit": { },
- "SecurityOptions": [
- "string"
], - "ProductLicense": "string",
- "DefaultAddressPools": [
- {
- "Base": "string",
- "Size": 0
}
], - "Warnings": [
- "string"
], - "CDISpecDirs": [
- "string"
]
}"EMPTY"| Base | string or null The network address in CIDR format |
| Size | integer or null <int64> The network pool size |
{- "Base": "string",
- "Size": 0
}"EMPTY"| Path | string or null Device path |
| Rate | integer or null <int64> Rate |
{- "Path": "string",
- "Rate": 0
}| periods required | integer <int64> >= 0 |
| throttled_periods required | integer <int64> >= 0 |
| throttled_time required | integer <int64> >= 0 |
{- "periods": 0,
- "throttled_periods": 0,
- "throttled_time": 0
}| CertIssuerPublicKey | string or null The base64-url-safe-encoded raw public key bytes of the issuer. |
| CertIssuerSubject | string or null The base64-url-safe-encoded raw subject bytes of the issuer. |
| TrustRoot | string or null The root CA certificate(s) that are used to validate leaf TLS certificates. |
{- "TrustRoot": "string",
- "CertIssuerSubject": "string",
- "CertIssuerPublicKey": "string"
}| DisableLogging | boolean or null Disable logging for this target |
| Key required | string The key of the cargo or the vm to target |
| Path | string or null The http path to target when using http |
| Port required | integer <int32> >= 0 The port of the cargo or the vm to target |
null or (ProxySsl (ProxySslConfig (object) or ProxySsl (string))) | |
One of null | |
{- "Key": "string",
- "Port": 0,
- "Path": "string",
- "DisableLogging": true,
- "Ssl": { }
}| CreatedAt required | string <date-time> When the vm was created | ||||||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||||||
required | object (VmSpec) Specification of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
}| Image required | string Name of the image to use |
| Size | integer or null <int64> >= 0 Virtual size allowed for the disk in GB (default: 20) |
{- "Image": "string",
- "Size": 0
}| Cpu required | integer <int64> >= 0 Number of cpu of the vm (default: 1) |
| Dns | Array of strings or null A list of DNS servers for the vm to use |
| HostTun | boolean or null Use host tun device |
| Kvm | boolean or null Enable KVM acceleration (default: false) |
| LinkNetIface | string or null Network interface to link the vm (default: eth0) |
| Memory required | integer <int64> >= 0 Memory of the vm in MB (default: 512) |
| NetIface | string or null Network interface of the vm to setup (default: ens3) |
| Runtime | string or null Container image name to use for vm (default: nanocl-qemu) |
| RuntimeNetwork | string or null |
{- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}| CreatedAt required | string <date-time> When the image was created |
| Format required | string The format of the image |
| Kind required | string The type of the image |
| Name required | string The name of the image |
| Path required | string The path to the image |
| SizeActual required | integer <int64> The actual size of the image in bytes |
| SizeVirtual required | integer <int64> The virtual size of the image in bytes |
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Path": "string",
- "Kind": "string",
- "Format": "string",
- "SizeActual": 0,
- "SizeVirtual": 0
}| Shrink required | boolean Whether to shrink the image or not |
| Size required | integer <int64> >= 0 The new size of the image in bytes |
{- "Size": 0,
- "Shrink": true
}| CreatedAt required | string <date-time> Creation date of the vm | ||||||||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of running instances | ||||||||||||||||||||||||||||
required | Array of objects (Process) List of instances | ||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||||||
required | object (VmSpec) Specification of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}| CreatedAt required | string <date-time> Creation date of the vm spec | ||||||||||||||||||
required | object (VmDisk) Disk config of the vm | ||||||||||||||||||
| |||||||||||||||||||
required | object (VmHostConfig) A vm's resources (cpu, memory, network) | ||||||||||||||||||
| |||||||||||||||||||
| Hostname | string or null Hostname of the vm | ||||||||||||||||||
| Key required | string <uuid> Unique identifier of the vm spec | ||||||||||||||||||
object or null User-defined key/value metadata. | |||||||||||||||||||
| |||||||||||||||||||
| MacAddress | string or null Mac address of the vm | ||||||||||||||||||
object The metadata (user defined) | |||||||||||||||||||
| |||||||||||||||||||
| Name required | string Name of the vm | ||||||||||||||||||
| Password | string or null Default password of the vm (cloud) | ||||||||||||||||||
| SshKey | string or null Default ssh key for the user | ||||||||||||||||||
| User | string or null Default user of the vm (cloud) | ||||||||||||||||||
| Version required | string Version of the spec | ||||||||||||||||||
| VmKey required | string The key of the vm | ||||||||||||||||||
{- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}required | object (VmDisk) Disk config of the vm (image, size) required | ||||
| |||||
null or VmHostConfig (object) | |||||
One of null | |||||
| Hostname | string or null Hostname of the vm (default: generated from name) | ||||
object or null User-defined key/value metadata. | |||||
| |||||
| MacAddress | string or null Mac address of the vm (default: generated) | ||||
object The metadata (user defined) | |||||
| |||||
| Name required | string Name of the vm | ||||
| Password | string or null Default password of the vm (default: cloud) | ||||
| SshKey | string or null Default ssh pub key for the user (recommended) | ||||
| User | string or null Default user of the vm (default: cloud) | ||||
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "User": "string",
- "Password": "string",
- "SshKey": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": { }
}null or VmHostConfig (object) | |||
One of null | |||
| Hostname | string or null Hostname of the vm | ||
object or null User-defined key/value metadata. | |||
| |||
object The metadata (user defined) | |||
| |||
| Name | string or null Name of the vm | ||
| Password | string or null Default password of the vm (cloud) | ||
| SshKey | string or null Default ssh key for the user | ||
| User | string or null Default user of the vm (cloud) | ||
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "User": "string",
- "Password": "string",
- "SshKey": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": { }
}| CreatedAt required | string <date-time> Creation date of the vm | ||||||||||||||||||||||||||||
| InstanceRunning required | integer >= 0 Number of running instances | ||||||||||||||||||||||||||||
| InstanceTotal required | integer >= 0 Number of instances | ||||||||||||||||||||||||||||
| NamespaceName required | string Name of the namespace | ||||||||||||||||||||||||||||
required | object (VmSpec) Specification of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
required | object (ObjPsStatus) Status of the vm | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
{- "NamespaceName": "string",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
}List secret with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "kind": { "eq": "Env" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}
]Create a new secret
Request Body schema: application/jsonrequired
required | object The secret data | ||
| |||
| Immutable | boolean The secret cannot be updated | ||
| Kind required | string The kind of secret | ||
object The metadata of the resource (user defined) | |||
| |||
| Name required | string The name of the secret | ||
Responses
Request samples
- Payload
{- "Name": "string",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 409
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}Update a secret
path Parameters
| key required | string Key of the secret |
Request Body schema: application/jsonrequired
required | object The data of the secret as a json object | ||
| |||
object The metadata of the secret (user defined) | |||
| |||
Responses
Request samples
- Payload
{- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 404
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}Get detailed information about a secret
path Parameters
| key required | string Key of the secret |
Responses
Response samples
- 200
- 404
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Kind": "string",
- "Immutable": true,
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Data": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
{- "ID": "string",
- "Containers": 0,
- "ContainersRunning": 0,
- "ContainersPaused": 0,
- "ContainersStopped": 0,
- "Images": 0,
- "Driver": "string",
- "DriverStatus": [
- [
- "string"
]
], - "DockerRootDir": "string",
- "Plugins": { },
- "MemoryLimit": true,
- "SwapLimit": true,
- "KernelMemoryTCP": true,
- "CpuCfsPeriod": true,
- "CpuCfsQuota": true,
- "CPUShares": true,
- "CPUSet": true,
- "PidsLimit": true,
- "OomKillDisable": true,
- "IPv4Forwarding": true,
- "BridgeNfIptables": true,
- "BridgeNfIp6tables": true,
- "Debug": true,
- "NFd": 0,
- "NGoroutines": 0,
- "SystemTime": "string",
- "LoggingDriver": "string",
- "CgroupDriver": { },
- "CgroupVersion": { },
- "NEventsListener": 0,
- "KernelVersion": "string",
- "OperatingSystem": "string",
- "OSVersion": "string",
- "OSType": "string",
- "Architecture": "string",
- "NCPU": 0,
- "MemTotal": 0,
- "IndexServerAddress": "string",
- "RegistryConfig": { },
- "GenericResources": { },
- "HttpProxy": "string",
- "HttpsProxy": "string",
- "NoProxy": "string",
- "Name": "string",
- "Labels": [
- "string"
], - "ExperimentalBuild": true,
- "ServerVersion": "string",
- "Runtimes": {
- "property1": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "path": "string",
- "runtimeArgs": [
- "string"
], - "status": {
- "property1": "string",
- "property2": "string"
}
}
}, - "DefaultRuntime": "string",
- "Swarm": { },
- "LiveRestoreEnabled": true,
- "Isolation": { },
- "InitBinary": "string",
- "ContainerdCommit": { },
- "RuncCommit": { },
- "InitCommit": { },
- "SecurityOptions": [
- "string"
], - "ProductLicense": "string",
- "DefaultAddressPools": [
- {
- "Base": "string",
- "Size": 0
}
], - "Warnings": [
- "string"
], - "CDISpecDirs": [
- "string"
], - "HostGateway": "string",
- "Network": {
- "Name": "string",
- "Id": "string",
- "Created": { },
- "Scope": "string",
- "Driver": "string",
- "EnableIPv6": true,
- "IPAM": { },
- "Internal": true,
- "Attachable": true,
- "Ingress": true,
- "Containers": {
- "property1": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}, - "property2": {
- "Name": "string",
- "EndpointID": "string",
- "MacAddress": "string",
- "IPv4Address": "string",
- "IPv6Address": "string"
}
}, - "Options": {
- "property1": "string",
- "property2": "string"
}, - "Labels": {
- "property1": "string",
- "property2": "string"
}
}, - "Config": {
- "hosts": [
- "string"
], - "state_dir": "string",
- "docker_host": "string",
- "store_addr": "string",
- "gateway": "string",
- "hostname": "string",
- "nodes": [
- "string"
], - "advertise_addr": "string",
- "conf_dir": "string",
- "gid": 0,
- "ssl": { }
}
}List virtual machine images with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "my-image" } } } } Generic filter |
Responses
Response samples
- 200
[- {
- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Path": "string",
- "Kind": "string",
- "Format": "string",
- "SizeActual": 0,
- "SizeVirtual": 0
}
]Clone a virtual machine image
path Parameters
| clone_name required | string The name of the clone |
| name required | string The name of the vm image |
Request Body schema: text/plainrequired
Responses
Response samples
- 200
- 404
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Path": "string",
- "Kind": "string",
- "Format": "string",
- "SizeActual": 0,
- "SizeVirtual": 0
}Resize a virtual machine image
path Parameters
| name required | string The name of the vm image |
Request Body schema: application/jsonrequired
| Shrink required | boolean Whether to shrink the image or not |
| Size required | integer <int64> >= 0 The new size of the image in bytes |
Responses
Request samples
- Payload
{- "Size": 0,
- "Shrink": true
}Response samples
- 200
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Path": "string",
- "Kind": "string",
- "Format": "string",
- "SizeActual": 0,
- "SizeVirtual": 0
}Create a snapshot of a virtual machine image
path Parameters
| name required | string The name of the vm image |
| snap required | string The name of the snapshot |
Request Body schema: text/plainrequired
Responses
Response samples
- 200
{- "Name": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Path": "string",
- "Kind": "string",
- "Format": "string",
- "SizeActual": 0,
- "SizeVirtual": 0
}List virtual machines with optional filter
query Parameters
| filter | string Example: filter={ "filter": { "where": { "name": { "eq": "my-vm" } } } } Generic filter |
| namespace | string Namespace where the virtual machine belongs default to 'global' |
Responses
Response samples
- 200
[- {
- "NamespaceName": "string",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
}
]Create a virtual machine
query Parameters
| namespace | string The namespace of the virtual machine |
Request Body schema: application/jsonrequired
required | object (VmDisk) Disk config of the vm (image, size) required | ||||
| |||||
null or VmHostConfig (object) | |||||
One of null | |||||
| Hostname | string or null Hostname of the vm (default: generated from name) | ||||
object or null User-defined key/value metadata. | |||||
| |||||
| MacAddress | string or null Mac address of the vm (default: generated) | ||||
object The metadata (user defined) | |||||
| |||||
| Name required | string Name of the vm | ||||
| Password | string or null Default password of the vm (default: cloud) | ||||
| SshKey | string or null Default ssh pub key for the user (recommended) | ||||
| User | string or null Default user of the vm (default: cloud) | ||||
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "User": "string",
- "Password": "string",
- "SshKey": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": { }
}Response samples
- 200
- 409
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
}Patch a virtual machine config meaning merging current config with the new one and add history entry
path Parameters
| name required | string Name of the virtual machine |
query Parameters
| namespace | string Namespace where the virtual machine belongs default to 'global' |
Request Body schema: application/jsonrequired
null or VmHostConfig (object) | |||
One of null | |||
| Hostname | string or null Hostname of the vm | ||
object or null User-defined key/value metadata. | |||
| |||
object The metadata (user defined) | |||
| |||
| Name | string or null Name of the vm | ||
| Password | string or null Default password of the vm (cloud) | ||
| SshKey | string or null Default ssh key for the user | ||
| User | string or null Default user of the vm (cloud) | ||
Responses
Request samples
- Payload
{- "Name": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "User": "string",
- "Password": "string",
- "SshKey": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": { }
}Response samples
- 200
- 404
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
}List virtual machine histories
path Parameters
| name required | string The name of the virtual machine |
query Parameters
| namespace | string Namespace where the virtual machine belongs default to 'global' |
Responses
Response samples
- 200
- 404
[- {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}
]Get detailed information about a virtual machine
path Parameters
| name required | string The name of the virtual machine |
query Parameters
| namespace | string Namespace where the virtual machine belongs default to 'global' |
Responses
Response samples
- 200
- 404
{- "NamespaceName": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "InstanceTotal": 0,
- "InstanceRunning": 0,
- "Status": {
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Wanted": "create",
- "PrevWanted": "create",
- "Actual": "create",
- "PrevActual": "create"
}, - "Spec": {
- "Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Version": "string",
- "VmKey": "string",
- "Metadata": {
- "property1": "string",
- "property2": "string"
}, - "Hostname": "string",
- "Password": "string",
- "SshKey": "string",
- "User": "string",
- "Disk": {
- "Image": "string",
- "Size": 0
}, - "MacAddress": "string",
- "Labels": {
- "property1": "string",
- "property2": "string"
}, - "HostConfig": {
- "Cpu": 0,
- "Memory": 0,
- "NetIface": "string",
- "LinkNetIface": "string",
- "Kvm": true,
- "Dns": [
- "string"
], - "Runtime": "string",
- "RuntimeNetwork": "string",
- "HostTun": true
}
}, - "Instances": [
- {
- "Key": "string",
- "CreatedAt": "2019-08-24T14:15:22Z",
- "UpdatedAt": "2019-08-24T14:15:22Z",
- "Name": "string",
- "Kind": "vm",
- "NodeName": "string",
- "KindKey": "string",
- "Data": {
- "Id": "string",
- "Created": "string",
- "Path": "string",
- "Args": [
- "string"
], - "State": { },
- "Image": "string",
- "ResolvConfPath": "string",
- "HostnamePath": "string",
- "HostsPath": "string",
- "LogPath": "string",
- "Name": "string",
- "RestartCount": 0,
- "Driver": "string",
- "Platform": "string",
- "MountLabel": "string",
- "ProcessLabel": "string",
- "AppArmorProfile": "string",
- "ExecIDs": [
- "string"
], - "HostConfig": { },
- "GraphDriver": { },
- "SizeRw": 0,
- "SizeRootFs": 0,
- "Mounts": [
- {
- "Type": { },
- "Name": "string",
- "Source": "string",
- "Destination": "string",
- "Driver": "string",
- "Mode": "string",
- "RW": true,
- "Propagation": "string"
}
], - "Config": { },
- "NetworkSettings": { }
}
}
]
}