All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
edge_group_create | POST /edge_groups | Create an EdgeGroup |
edge_group_delete | DELETE /edge_groups/{id} | Deletes an EdgeGroup |
edge_group_inspect | GET /edge_groups/{id} | Inspects an EdgeGroup |
edge_group_list | GET /edge_groups | list EdgeGroups |
ege_group_update | PUT /edge_groups/{id} | Updates an EdgeGroup |
PortainerEdgeGroup edge_group_create(body)
Create an EdgeGroup
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeGroupsApi(portainer_ce_api.ApiClient(configuration))
body = portainer_ce_api.EdgegroupsEdgeGroupCreatePayload() # EdgegroupsEdgeGroupCreatePayload | EdgeGroup data
try:
# Create an EdgeGroup
api_response = api_instance.edge_group_create(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeGroupsApi->edge_group_create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EdgegroupsEdgeGroupCreatePayload | EdgeGroup data |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
edge_group_delete(id)
Deletes an EdgeGroup
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeGroupsApi(portainer_ce_api.ApiClient(configuration))
id = 56 # int | EdgeGroup Id
try:
# Deletes an EdgeGroup
api_instance.edge_group_delete(id)
except ApiException as e:
print("Exception when calling EdgeGroupsApi->edge_group_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | EdgeGroup Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortainerEdgeGroup edge_group_inspect(id)
Inspects an EdgeGroup
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeGroupsApi(portainer_ce_api.ApiClient(configuration))
id = 56 # int | EdgeGroup Id
try:
# Inspects an EdgeGroup
api_response = api_instance.edge_group_inspect(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeGroupsApi->edge_group_inspect: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | EdgeGroup Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[object] edge_group_list()
list EdgeGroups
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeGroupsApi(portainer_ce_api.ApiClient(configuration))
try:
# list EdgeGroups
api_response = api_instance.edge_group_list()
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeGroupsApi->edge_group_list: %s\n" % e)
This endpoint does not need any parameter.
list[object]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortainerEdgeGroup ege_group_update(id, body)
Updates an EdgeGroup
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeGroupsApi(portainer_ce_api.ApiClient(configuration))
id = 56 # int | EdgeGroup Id
body = portainer_ce_api.EdgegroupsEdgeGroupUpdatePayload() # EdgegroupsEdgeGroupUpdatePayload | EdgeGroup data
try:
# Updates an EdgeGroup
api_response = api_instance.ege_group_update(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeGroupsApi->ege_group_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | EdgeGroup Id | |
body | EdgegroupsEdgeGroupUpdatePayload | EdgeGroup data |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]