All URIs are relative to http://127.0.0.1:8700/
Method | HTTP request | Description |
---|---|---|
poas_create_sliver_id_post | POST /poas/create/{sliver_id} | Perform an operational action on a sliver. |
poas_get | GET /poas/ | Request get the status of the POAs. |
poas_poa_id_get | GET /poas/{poa_id} | Perform an operational action on a sliver. |
Poa poas_create_sliver_id_post(body, sliver_id)
Perform an operational action on a sliver.
Request to perform an operation action on a sliver. Supported actions include - reboot a VM sliver, get cpu info, get numa info, pin vCPUs, pin memory to a numa node etc.
from __future__ import print_function
import time
from fabric_cf.orchestrator.swagger_client import PoasApi, PoaPost, Configuration, ApiClient
from fabric_cf.orchestrator.swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = 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 = PoasApi(ApiClient(configuration))
body = PoaPost() # PoaPost | Perform Operation Action
sliver_id = 'sliver_id_example' # str | Sliver identified by universally unique identifier
try:
# Perform an operational action on a sliver.
api_response = api_instance.poas_create_sliver_id_post(body, sliver_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling PoasApi->poas_create_sliver_id_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | PoaPost | Perform Operation Action | |
sliver_id | str | Sliver identified by universally unique identifier |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Poa poas_get(sliver_id=sliver_id, states=states, limit=limit, offset=offset)
Request get the status of the POAs.
Request get the status of the POAs
from __future__ import print_function
import time
from fabric_cf.orchestrator.swagger_client import PoasApi, PoaPost, Configuration, ApiClient
from fabric_cf.orchestrator.swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = 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 = PoasApi(ApiClient(configuration))
sliver_id = 'sliver_id_example' # str | Search for POAs for a sliver (optional)
states = ['states_example'] # list[str] | Search for POAs in the specified states (optional)
limit = 5 # int | maximum number of results to return per page (1 or more) (optional) (default to 5)
offset = 0 # int | number of items to skip before starting to collect the result set (optional) (default to 0)
try:
# Request get the status of the POAs.
api_response = api_instance.poas_get(sliver_id=sliver_id, states=states, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling PoasApi->poas_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sliver_id | str | Search for POAs for a sliver | [optional] |
states | list[str] | Search for POAs in the specified states | [optional] |
limit | int | maximum number of results to return per page (1 or more) | [optional] [default to 5] |
offset | int | number of items to skip before starting to collect the result set | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Poa poas_poa_id_get(poa_id)
Perform an operational action on a sliver.
Request get the status of the POA identified by poa_id.
from __future__ import print_function
import time
from fabric_cf.orchestrator.swagger_client import PoasApi, PoaPost, Configuration, ApiClient
from fabric_cf.orchestrator.swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = 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 = PoasApi(ApiClient(configuration))
poa_id = 'poa_id_example' # str | Poa Id for the POA triggered
try:
# Perform an operational action on a sliver.
api_response = api_instance.poas_poa_id_get(poa_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling PoasApi->poas_poa_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
poa_id | str | Poa Id for the POA triggered |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]