All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
cf_manager_rest_api_get_project_quota | GET /projects/{project_name}/quota/ | Get the current quota of a project |
cf_manager_rest_api_list_projects | GET /projects/ | List the projects the user belongs to |
cf_manager_rest_api_post_project_quota | POST /projects/{project_name}/quota/ | Post a new (or update existent) quota of a project (admin only) |
Quota cf_manager_rest_api_get_project_quota(username, password, project_name)
Get the current quota of a project
With this call a user can check how many FPGAs of his project are available for usage.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ProjectsApi()
username = 'username_example' # str | OpenStack username
password = 'password_example' # str | OpenStack password
project_name = 'project_name_example' # str | Name of a OpenStack project
try:
# Get the current quota of a project
api_response = api_instance.cf_manager_rest_api_get_project_quota(username, password, project_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->cf_manager_rest_api_get_project_quota: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | OpenStack username | |
password | str | OpenStack password | |
project_name | str | Name of a OpenStack project |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] cf_manager_rest_api_list_projects(username, password)
List the projects the user belongs to
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ProjectsApi()
username = 'username_example' # str | OpenStack username
password = 'password_example' # str | OpenStack password
try:
# List the projects the user belongs to
api_response = api_instance.cf_manager_rest_api_list_projects(username, password)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->cf_manager_rest_api_list_projects: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | OpenStack username | |
password | str | OpenStack password |
list[str]
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
cf_manager_rest_api_post_project_quota(username, password, project_name, body=body)
Post a new (or update existent) quota of a project (admin only)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ProjectsApi()
username = 'username_example' # str | OpenStack username
password = 'password_example' # str | OpenStack password
project_name = 'project_name_example' # str | Name of a OpenStack project
body = swagger_client.Quota() # Quota | (optional)
try:
# Post a new (or update existent) quota of a project (admin only)
api_instance.cf_manager_rest_api_post_project_quota(username, password, project_name, body=body)
except ApiException as e:
print("Exception when calling ProjectsApi->cf_manager_rest_api_post_project_quota: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | OpenStack username | |
password | str | OpenStack password | |
project_name | str | Name of a OpenStack project | |
body | Quota | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]