All URIs are relative to https://raw.githubusercontent.com/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create_project | POST /project | |
| create_project_dns_record | POST /project/{projectId}/record | |
| create_project_region_kawaii | POST /project/{projectId}/region/{regionId}/kawaii | |
| create_project_region_konvey | POST /project/{projectId}/region/{regionId}/konvey | |
| create_project_region_kylo | POST /project/{projectId}/region/{regionId}/kylo | |
| create_project_region_volume | POST /project/{projectId}/region/{regionId}/volume | |
| create_project_zone_instance | POST /project/{projectId}/zone/{zoneId}/instance | |
| create_project_zone_kompute | POST /project/{projectId}/zone/{zoneId}/kompute | |
| create_project_zone_konvey | POST /project/{projectId}/zone/{zoneId}/konvey | |
| delete_project | DELETE /project/{projectId} | |
| list_project_dns_records | GET /project/{projectId}/records | |
| list_project_region_kawaiis | GET /project/{projectId}/region/{regionId}/kawaiis | |
| list_project_region_konveys | GET /project/{projectId}/region/{regionId}/konveys | |
| list_project_region_kylos | GET /project/{projectId}/region/{regionId}/kylo | |
| list_project_region_volumes | GET /project/{projectId}/region/{regionId}/volumes | |
| list_project_zone_instances | GET /project/{projectId}/zone/{zoneId}/instances | |
| list_project_zone_komputes | GET /project/{projectId}/zone/{zoneId}/komputes | |
| list_project_zone_konveys | GET /project/{projectId}/zone/{zoneId}/konveys | |
| list_projects | GET /project | |
| read_project | GET /project/{projectId} | |
| read_project_cost | GET /project/{projectId}/cost | |
| read_project_usage | GET /project/{projectId}/usage | |
| update_project | PUT /project/{projectId} |
Project create_project(project, subnet_size=subnet_size)
Creates a new project.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.project import Project
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.ProjectApi(api_client)
project = kowabunga.Project() # Project | Project payload.
subnet_size = 56 # int | The minimum VPC subnet size to be affected to the project. WARNING, this cannot be changed later. (optional)
try:
api_response = api_instance.create_project(project, subnet_size=subnet_size)
print("The response of ProjectApi->create_project:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project | Project | Project payload. | |
| subnet_size | int | The minimum VPC subnet size to be affected to the project. WARNING, this cannot be changed later. | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created project 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]
DnsRecord create_project_dns_record(project_id, dns_record)
Creates a new DNS record.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.dns_record import DnsRecord
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
dns_record = kowabunga.DnsRecord() # DnsRecord | DnsRecord payload.
try:
api_response = api_instance.create_project_dns_record(project_id, dns_record)
print("The response of ProjectApi->create_project_dns_record:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_dns_record: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| dns_record | DnsRecord | DnsRecord payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created DNS record 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]
Kawaii create_project_region_kawaii(project_id, region_id, kawaii)
Creates a new Kawaii.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.kawaii import Kawaii
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
kawaii = kowabunga.Kawaii() # Kawaii | Kawaii payload.
try:
api_response = api_instance.create_project_region_kawaii(project_id, region_id, kawaii)
print("The response of ProjectApi->create_project_region_kawaii:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_region_kawaii: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. | |
| kawaii | Kawaii | Kawaii payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created Kawaii 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]
Konvey create_project_region_konvey(project_id, region_id, konvey)
Creates a new Konvey (Kowabunga Network Load-Balancer).
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.konvey import Konvey
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
konvey = kowabunga.Konvey() # Konvey | Konvey payload.
try:
api_response = api_instance.create_project_region_konvey(project_id, region_id, konvey)
print("The response of ProjectApi->create_project_region_konvey:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_region_konvey: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. | |
| konvey | Konvey | Konvey payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created Konvey (Kowabunga Network Load-Balancer) 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]
Kylo create_project_region_kylo(project_id, region_id, kylo, nfs_id=nfs_id)
Creates a new Kylo.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.kylo import Kylo
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
kylo = kowabunga.Kylo() # Kylo | Kylo payload.
nfs_id = 'nfs_id_example' # str | NFS storage ID (optional, region's default if unspecified). (optional)
try:
api_response = api_instance.create_project_region_kylo(project_id, region_id, kylo, nfs_id=nfs_id)
print("The response of ProjectApi->create_project_region_kylo:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_region_kylo: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. | |
| kylo | Kylo | Kylo payload. | |
| nfs_id | str | NFS storage ID (optional, region's default if unspecified). | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created Kylo 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]
Volume create_project_region_volume(project_id, region_id, volume, pool_id=pool_id, template_id=template_id)
Creates a new storage volume.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.volume import Volume
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
volume = kowabunga.Volume() # Volume | Volume payload.
pool_id = 'pool_id_example' # str | Storage pool ID (optional, region's default if unspecified). (optional)
template_id = 'template_id_example' # str | Template to clone the storage volume from (optional, region's default if unspecified). (optional)
try:
api_response = api_instance.create_project_region_volume(project_id, region_id, volume, pool_id=pool_id, template_id=template_id)
print("The response of ProjectApi->create_project_region_volume:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_region_volume: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. | |
| volume | Volume | Volume payload. | |
| pool_id | str | Storage pool ID (optional, region's default if unspecified). | [optional] |
| template_id | str | Template to clone the storage volume from (optional, region's default if unspecified). | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created storage volume 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]
Instance create_project_zone_instance(project_id, zone_id, instance)
Creates a new virtual machine instance.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.instance import Instance
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
instance = kowabunga.Instance() # Instance | Instance payload.
try:
api_response = api_instance.create_project_zone_instance(project_id, zone_id, instance)
print("The response of ProjectApi->create_project_zone_instance:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_zone_instance: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. | |
| instance | Instance | Instance payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created virtual machine instance 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]
Kompute create_project_zone_kompute(project_id, zone_id, kompute, pool_id=pool_id, template_id=template_id, public=public)
Creates a new Kompute.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.kompute import Kompute
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
kompute = kowabunga.Kompute() # Kompute | Kompute payload.
pool_id = 'pool_id_example' # str | Storage pool ID (optional, region's default if unspecified). (optional)
template_id = 'template_id_example' # str | Template to clone the storage volume from (optional, region's default if unspecified). (optional)
public = True # bool | Should Kompute be exposed over public Internet ? (a public IPv4 address will then be auto-assigned, default to false). (optional)
try:
api_response = api_instance.create_project_zone_kompute(project_id, zone_id, kompute, pool_id=pool_id, template_id=template_id, public=public)
print("The response of ProjectApi->create_project_zone_kompute:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_zone_kompute: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. | |
| kompute | Kompute | Kompute payload. | |
| pool_id | str | Storage pool ID (optional, region's default if unspecified). | [optional] |
| template_id | str | Template to clone the storage volume from (optional, region's default if unspecified). | [optional] |
| public | bool | Should Kompute be exposed over public Internet ? (a public IPv4 address will then be auto-assigned, default to false). | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created Kompute 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]
Konvey create_project_zone_konvey(project_id, zone_id, konvey)
Creates a new Konvey (Kowabunga Network Load-Balancer).
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.konvey import Konvey
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
konvey = kowabunga.Konvey() # Konvey | Konvey payload.
try:
api_response = api_instance.create_project_zone_konvey(project_id, zone_id, konvey)
print("The response of ProjectApi->create_project_zone_konvey:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->create_project_zone_konvey: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. | |
| konvey | Konvey | Konvey payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the newly created Konvey (Kowabunga Network Load-Balancer) 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_project(project_id)
Deletes an existing project.
- 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
try:
api_instance.delete_project(project_id)
except Exception as e:
print("Exception when calling ProjectApi->delete_project: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The project 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_project_dns_records(project_id)
Returns the IDs of DNS record 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
try:
api_response = api_instance.list_project_dns_records(project_id)
print("The response of ProjectApi->list_project_dns_records:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_dns_records: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of DNS record 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_project_region_kawaiis(project_id, region_id)
Returns the IDs of Kawaii 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
try:
api_response = api_instance.list_project_region_kawaiis(project_id, region_id)
print("The response of ProjectApi->list_project_region_kawaiis:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_region_kawaiis: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of Kawaii 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_project_region_konveys(project_id, region_id)
Returns the IDs of Konvey (Kowabunga Network Load-Balancer) 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
try:
api_response = api_instance.list_project_region_konveys(project_id, region_id)
print("The response of ProjectApi->list_project_region_konveys:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_region_konveys: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of Konvey (Kowabunga Network Load-Balancer) 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_project_region_kylos(project_id, region_id, nfs_id=nfs_id)
Returns the IDs of Kylo 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
nfs_id = 'nfs_id_example' # str | NFS storage ID (optional, region's default if unspecified). (optional)
try:
api_response = api_instance.list_project_region_kylos(project_id, region_id, nfs_id=nfs_id)
print("The response of ProjectApi->list_project_region_kylos:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_region_kylos: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. | |
| nfs_id | str | NFS storage ID (optional, region's default if unspecified). | [optional] |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of Kylo 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_project_region_volumes(project_id, region_id)
Returns the IDs of storage volume 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
region_id = 'region_id_example' # str | The ID of the region.
try:
api_response = api_instance.list_project_region_volumes(project_id, region_id)
print("The response of ProjectApi->list_project_region_volumes:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_region_volumes: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| region_id | str | The ID of the region. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of storage volume 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_project_zone_instances(project_id, zone_id)
Returns the IDs of virtual machine instance 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
try:
api_response = api_instance.list_project_zone_instances(project_id, zone_id)
print("The response of ProjectApi->list_project_zone_instances:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_zone_instances: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of virtual machine instance 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_project_zone_komputes(project_id, zone_id)
Returns the IDs of Kompute 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
try:
api_response = api_instance.list_project_zone_komputes(project_id, zone_id)
print("The response of ProjectApi->list_project_zone_komputes:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_zone_komputes: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of Kompute 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_project_zone_konveys(project_id, zone_id)
Returns the IDs of Konvey (Kowabunga Network Load-Balancer) 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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
zone_id = 'zone_id_example' # str | The ID of the availability zone.
try:
api_response = api_instance.list_project_zone_konveys(project_id, zone_id)
print("The response of ProjectApi->list_project_zone_konveys:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_project_zone_konveys: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| zone_id | str | The ID of the availability zone. |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of Konvey (Kowabunga Network Load-Balancer) 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_projects(subnet_size=subnet_size)
Returns the IDs of project 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.ProjectApi(api_client)
subnet_size = 56 # int | The minimum VPC subnet size to be affected to the project. WARNING, this cannot be changed later. (optional)
try:
api_response = api_instance.list_projects(subnet_size=subnet_size)
print("The response of ProjectApi->list_projects:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->list_projects: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| subnet_size | int | The minimum VPC subnet size to be affected to the project. WARNING, this cannot be changed later. | [optional] |
List[str]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns an array of project 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]
Project read_project(project_id)
Returns a project.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.project import Project
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
try:
api_response = api_instance.read_project(project_id)
print("The response of ProjectApi->read_project:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->read_project: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the project 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]
Cost read_project_cost(project_id)
Returns a resource cost.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.cost import Cost
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
try:
api_response = api_instance.read_project_cost(project_id)
print("The response of ProjectApi->read_project_cost:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->read_project_cost: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the resource cost 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]
ProjectResources read_project_usage(project_id)
Returns a global project resource quotas/usage (0 for unlimited).
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.project_resources import ProjectResources
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
try:
api_response = api_instance.read_project_usage(project_id)
print("The response of ProjectApi->read_project_usage:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->read_project_usage: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the global project resource quotas/usage (0 for unlimited) 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]
Project update_project(project_id, project)
Updates a project configuration.
- Api Key Authentication (ApiKeyAuth):
- Bearer (JWT) Authentication (BearerAuth):
import kowabunga
from kowabunga.models.project import Project
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.ProjectApi(api_client)
project_id = 'project_id_example' # str | The ID of the project.
project = kowabunga.Project() # Project | Project payload.
try:
api_response = api_instance.update_project(project_id, project)
print("The response of ProjectApi->update_project:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectApi->update_project: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | The ID of the project. | |
| project | Project | Project payload. |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Returns the project 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]