All URIs are relative to https://raw.githubusercontent.com/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create_subnet | POST /vnet/{vnetId}/subnet | |
| delete_v_net | DELETE /vnet/{vnetId} | |
| list_v_net_subnets | GET /vnet/{vnetId}/subnets | |
| list_v_nets | GET /vnet | |
| read_v_net | GET /vnet/{vnetId} | |
| set_v_net_default_subnet | PATCH /vnet/{vnetId}/subnet/{subnetId}/default | |
| update_v_net | PUT /vnet/{vnetId} |
Subnet create_subnet(vnet_id, subnet)
Creates a new network subnet.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.subnet import Subnet
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
subnet = kowabunga.Subnet() # Subnet | Subnet payload.
try:
api_response = api_instance.create_subnet(vnet_id, subnet)
print("The response of VnetApi->create_subnet:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VnetApi->create_subnet: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. | |
| subnet | Subnet | Subnet payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created network subnet object. | - |
| 400 | BadRequest error: Bad request (wrong input parameters). | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
| 409 | Conflict error: A similar resource already exists or resource is still being referenced somewhere. | - |
| 422 | UnprocessableEntity error: Server can't process request. | - |
| 507 | InsufficientResource error: Server can't allocate resources (logical quotas or physical limits hit). | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_v_net(vnet_id)
Deletes an existing virtual network.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
try:
api_instance.delete_v_net(vnet_id)
except Exception as e:
print("Exception when calling VnetApi->delete_v_net: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The virtual network has been successfully removed. | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
| 409 | Conflict error: A similar resource already exists or resource is still being referenced somewhere. | - |
| 422 | UnprocessableEntity error: Server can't process request. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[str] list_v_net_subnets(vnet_id)
Returns the IDs of network subnet objects.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
try:
api_response = api_instance.list_v_net_subnets(vnet_id)
print("The response of VnetApi->list_v_net_subnets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VnetApi->list_v_net_subnets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of network subnet IDs. | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[str] list_v_nets()
Returns the IDs of virtual network objects.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
try:
api_response = api_instance.list_v_nets()
print("The response of VnetApi->list_v_nets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VnetApi->list_v_nets: %s\n" % e)This endpoint does not need any parameter.
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of virtual network IDs. | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VNet read_v_net(vnet_id)
Returns a virtual network.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.v_net import VNet
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
try:
api_response = api_instance.read_v_net(vnet_id)
print("The response of VnetApi->read_v_net:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VnetApi->read_v_net: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the virtual network object. | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_v_net_default_subnet(vnet_id, subnet_id)
Performs a virtual network setting of default network subnet.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
subnet_id = 'subnet_id_example' # str | The ID of the network subnet.
try:
api_instance.set_v_net_default_subnet(vnet_id, subnet_id)
except Exception as e:
print("Exception when calling VnetApi->set_v_net_default_subnet: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. | |
| subnet_id | str | The ID of the network subnet. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The virtual network setting of default network subnet is successful. | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
| 422 | UnprocessableEntity error: Server can't process request. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VNet update_v_net(vnet_id, v_net)
Updates a virtual network configuration.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.v_net import VNet
from kowabunga.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://raw.githubusercontent.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = kowabunga.Configuration(
host = "https://raw.githubusercontent.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): BearerAuth
configuration = kowabunga.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with kowabunga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kowabunga.VnetApi(api_client)
vnet_id = 'vnet_id_example' # str | The ID of the virtual network.
v_net = kowabunga.VNet() # VNet | VNet payload.
try:
api_response = api_instance.update_v_net(vnet_id, v_net)
print("The response of VnetApi->update_v_net:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VnetApi->update_v_net: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| vnet_id | str | The ID of the virtual network. | |
| v_net | VNet | VNet payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the virtual network object. | - |
| 400 | BadRequest error: Bad request (wrong input parameters). | - |
| 401 | Unauthorized error: Unauthorized resource access (wrong auth/credentials). | - |
| 403 | Forbidden error: Forbidden resource access (restricted access control). | - |
| 404 | NotFound error: Specified resource does not exist. | - |
| 422 | UnprocessableEntity error: Server can't process request. | - |
| 507 | InsufficientResource error: Server can't allocate resources (logical quotas or physical limits hit). | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]