All URIs are relative to http://podman.io
Method | HTTP request | Description |
---|---|---|
systemAuth | POST /auth | Check auth configuration |
systemDataUsage | GET /system/df | Show disk usage |
systemEvents | GET /events | Get events |
systemInfo | GET /info | Get info |
systemPing | GET /libpod/_ping | Ping service |
systemVersion | GET /version | Component Version information |
AuthReport systemAuth().authConfig(authConfig).execute();
Check auth configuration
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
AuthConfig authConfig = new AuthConfig(); // AuthConfig | Authentication to check
try {
AuthReport result = apiInstance.systemAuth()
.authConfig(authConfig)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemAuth");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authConfig | AuthConfig | Authentication to check | [optional] |
No authorization required
- Content-Type: application/json, application/x-tar
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Auth response | - |
500 | Internal server error | - |
SystemDfReport systemDataUsage().execute();
Show disk usage
Return information about disk usage for containers, images, and volumes
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
try {
SystemDfReport result = apiInstance.systemDataUsage()
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemDataUsage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Disk usage | - |
500 | Internal server error | - |
systemEvents().since(since).until(until).filters(filters).execute();
Get events
Returns events filtered on query parameters
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
String since = "since_example"; // String | start streaming events from this time
String until = "until_example"; // String | stop streaming events later than this
String filters = "filters_example"; // String | JSON encoded map[string][]string of constraints
try {
apiInstance.systemEvents()
.since(since)
.until(until)
.filters(filters)
.execute();
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemEvents");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
since | String | start streaming events from this time | [optional] |
until | String | stop streaming events later than this | [optional] |
filters | String | JSON encoded map[string][]string of constraints | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | returns a string of json data describing an event | - |
500 | Internal server error | - |
systemInfo().execute();
Get info
Returns information on the system and libpod configuration
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
try {
apiInstance.systemInfo()
.execute();
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | to be determined | - |
500 | Internal server error | - |
String systemPing().execute();
Ping service
Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned.
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
try {
String result = apiInstance.systemPing()
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemPing");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
String
No authorization required
- Content-Type: Not defined
- Accept: text/plain
Status code | Description | Response headers |
---|---|---|
200 | Success | * Docker-Experimental - If the server is running with experimental mode enabled, always true * Cache-Control - always no-cache * Libpod-Buildah-Version - Default version of libpod image builder. Available if service is backed by Podman, therefore may be used to determine if talking to Podman engine or another engine * Libpod-API-Version - Max Podman API Version the server supports. Available if service is backed by Podman, therefore may be used to determine if talking to Podman engine or another engine * BuildKit-Version - Default version of docker image builder * Pragma - always no-cache * API-Version - Max compatibility API Version the server supports |
500 | Internal server error | - |
SystemComponentVersion systemVersion().execute();
Component Version information
// Import classes:
import io.github.pod4dev.libpodj.ApiClient;
import io.github.pod4dev.libpodj.ApiException;
import io.github.pod4dev.libpodj.Configuration;
import io.github.pod4dev.libpodj.models.*;
import io.github.pod4dev.libpodj.api.SystemCompatApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://podman.io");
SystemCompatApi apiInstance = new SystemCompatApi(defaultClient);
try {
SystemComponentVersion result = apiInstance.systemVersion()
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemCompatApi#systemVersion");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Version | - |