All URIs are relative to https://rest.compute.cudo.org
Method | HTTP request | Description |
---|---|---|
create_project | POST /v1/projects | Create |
delete_project | DELETE /v1/projects/{id} | Delete |
get_project | GET /v1/projects/{id} | Get |
list_project_ssh_keys | GET /v1/project/{projectId}/ssh-keys | List SSH keys |
list_projects | GET /v1/projects | List |
update_project | PATCH /v1/projects/{project.id} | Update |
Project create_project(project)
Create
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
project = src.cudo_compute.Project() # Project |
try:
# Create
api_response = api_instance.create_project(project)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->create_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project | Project |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object delete_project(id)
Delete
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
id = 'id_example' # str |
try:
# Delete
api_response = api_instance.delete_project(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->delete_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project get_project(id)
Get
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
id = 'id_example' # str |
try:
# Get
api_response = api_instance.get_project(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->get_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListProjectSshKeysResponse list_project_ssh_keys(project_id)
List SSH keys
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
project_id = 'project_id_example' # str |
try:
# List SSH keys
api_response = api_instance.list_project_ssh_keys(project_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->list_project_ssh_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListProjectsResponse list_projects(page_token=page_token, page_size=page_size)
List
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
page_token = 'page_token_example' # str | (optional)
page_size = 56 # int | (optional)
try:
# List
api_response = api_instance.list_projects(page_token=page_token, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->list_projects: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page_token | str | [optional] | |
page_size | int | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project update_project(project_id, update_project_body)
Update
from __future__ import print_function
import time
import src.cudo_compute
from src.cudo_compute.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = src.cudo_compute.ProjectsApi()
project_id = 'project_id_example' # str |
update_project_body = src.cudo_compute.UpdateProjectBody() # UpdateProjectBody |
try:
# Update
api_response = api_instance.update_project(project_id, update_project_body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->update_project: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | ||
update_project_body | UpdateProjectBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]