All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
maintenance_alarm | POST /v3/maintenance/alarm | Alarm activates, deactivates, and queries alarms regarding cluster health. |
maintenance_defragment | POST /v3/maintenance/defragment | Defragment defragments a member's backend database to recover storage space. |
maintenance_downgrade | POST /v3/maintenance/downgrade | Downgrade requests downgrades, verifies feasibility or cancels downgrade on the cluster version. Supported since etcd 3.5. |
maintenance_hash_kv | POST /v3/maintenance/hash | HashKV computes the hash of all MVCC keys up to a given revision. It only iterates "key" bucket in backend storage. |
maintenance_move_leader | POST /v3/maintenance/transfer-leadership | MoveLeader requests current leader node to transfer its leadership to transferee. |
maintenance_snapshot | POST /v3/maintenance/snapshot | Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
maintenance_status | POST /v3/maintenance/status | Status gets the status of the member. |
EtcdserverpbAlarmResponse maintenance_alarm(body)
Alarm activates, deactivates, and queries alarms regarding cluster health.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbAlarmRequest() # EtcdserverpbAlarmRequest |
try:
# Alarm activates, deactivates, and queries alarms regarding cluster health.
api_response = api_instance.maintenance_alarm(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_alarm: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbAlarmRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtcdserverpbDefragmentResponse maintenance_defragment(body)
Defragment defragments a member's backend database to recover storage space.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbDefragmentRequest() # EtcdserverpbDefragmentRequest |
try:
# Defragment defragments a member's backend database to recover storage space.
api_response = api_instance.maintenance_defragment(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_defragment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbDefragmentRequest |
EtcdserverpbDefragmentResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtcdserverpbDowngradeResponse maintenance_downgrade(body)
Downgrade requests downgrades, verifies feasibility or cancels downgrade on the cluster version. Supported since etcd 3.5.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbDowngradeRequest() # EtcdserverpbDowngradeRequest |
try:
# Downgrade requests downgrades, verifies feasibility or cancels downgrade on the cluster version. Supported since etcd 3.5.
api_response = api_instance.maintenance_downgrade(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_downgrade: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbDowngradeRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtcdserverpbHashKVResponse maintenance_hash_kv(body)
HashKV computes the hash of all MVCC keys up to a given revision. It only iterates "key" bucket in backend storage.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbHashKVRequest() # EtcdserverpbHashKVRequest |
try:
# HashKV computes the hash of all MVCC keys up to a given revision. It only iterates \"key\" bucket in backend storage.
api_response = api_instance.maintenance_hash_kv(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_hash_kv: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbHashKVRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtcdserverpbMoveLeaderResponse maintenance_move_leader(body)
MoveLeader requests current leader node to transfer its leadership to transferee.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbMoveLeaderRequest() # EtcdserverpbMoveLeaderRequest |
try:
# MoveLeader requests current leader node to transfer its leadership to transferee.
api_response = api_instance.maintenance_move_leader(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_move_leader: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbMoveLeaderRequest |
EtcdserverpbMoveLeaderResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamResultOfEtcdserverpbSnapshotResponse maintenance_snapshot(body)
Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbSnapshotRequest() # EtcdserverpbSnapshotRequest |
try:
# Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
api_response = api_instance.maintenance_snapshot(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_snapshot: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbSnapshotRequest |
StreamResultOfEtcdserverpbSnapshotResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtcdserverpbStatusResponse maintenance_status(body)
Status gets the status of the member.
from __future__ import print_function
import time
import etcd_client
from etcd_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
configuration = etcd_client.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 = etcd_client.MaintenanceApi(etcd_client.ApiClient(configuration))
body = etcd_client.EtcdserverpbStatusRequest() # EtcdserverpbStatusRequest |
try:
# Status gets the status of the member.
api_response = api_instance.maintenance_status(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MaintenanceApi->maintenance_status: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EtcdserverpbStatusRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]