Class NetworksApi
java.lang.Object
io.github.alersrt.pod4j.openapi.api.NetworksApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintnetworkConnectLibpod(String name) Connect container to network Connect a container to a network.Create network Create a new network configurationnetworkDeleteLibpod(String name) Remove a network Remove a configured networkDisconnect container from network Disconnect a container from a network.networkExistsLibpod(String name) Network exists Check if network existsnetworkInspectLibpod(String name) Inspect a network Display configuration for a network.List networks Display summary of network configurations.Delete unused networks Remove networks that do not have containersnetworkUpdateLibpod(String name) Update existing podman network Update existing podman networkvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
NetworksApi
public NetworksApi() -
NetworksApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
networkConnectLibpod
Connect container to network Connect a container to a network.- Parameters:
name- the name of the network (required)- Returns:
- APInetworkConnectLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 OK - 404 No such network - 500 Internal server error -
-
networkCreateLibpod
Create network Create a new network configuration- Returns:
- APInetworkCreateLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 Network create - 400 Bad parameter in request - 409 Conflict error in operation - 500 Internal server error -
-
networkDeleteLibpod
Remove a network Remove a configured network- Parameters:
name- the name of the network (required)- Returns:
- APInetworkDeleteLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 Network Delete - 404 No such network - 500 Internal server error -
-
networkDisconnectLibpod
Disconnect container from network Disconnect a container from a network.- Parameters:
name- the name of the network (required)- Returns:
- APInetworkDisconnectLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 OK - 404 No such network - 500 Internal server error -
-
networkExistsLibpod
Network exists Check if network exists- Parameters:
name- the name or ID of the network (required)- Returns:
- APInetworkExistsLibpodRequest
- Http Response Details
Status Code Description Response Headers 204 network exists - 404 No such network - 500 Internal server error -
-
networkInspectLibpod
Inspect a network Display configuration for a network.- Parameters:
name- the name of the network (required)- Returns:
- APInetworkInspectLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 Network inspect - 404 No such network - 500 Internal server error -
-
networkListLibpod
List networks Display summary of network configurations. - In a 200 response, all of the fields named Bytes are returned as a Base64 encoded string.- Returns:
- APInetworkListLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 Network list - 500 Internal server error -
-
networkPruneLibpod
Delete unused networks Remove networks that do not have containers- Returns:
- APInetworkPruneLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 Network prune - 500 Internal server error -
-
networkUpdateLibpod
Update existing podman network Update existing podman network- Parameters:
name- the name or ID of the network (required)- Returns:
- APInetworkUpdateLibpodRequest
- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 500 Internal server error -
-