All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| projects_create | POST /api/v2/organizations/{organization}/projects | Create a new project |
| projects_delete | DELETE /api/v2/organizations/{organization}/projects/{project} | Delete a project |
| projects_list | GET /api/v2/organizations/{organization}/projects | Retrieve all projects for an organization |
| projects_read | GET /api/v2/organizations/{organization}/projects/{project} | Get details of a single project |
| projects_update | PATCH /api/v2/organizations/{organization}/projects/{project} | Update a project |
V2Project projects_create(organization, v2_project_request)
Create a new project
- Bearer (JWT) Authentication (BearerAuth):
import quantcdn
from quantcdn.models.v2_project import V2Project
from quantcdn.models.v2_project_request import V2ProjectRequest
from quantcdn.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://dashboard.quantcdn.io
# See configuration.py for a list of all supported configuration parameters.
configuration = quantcdn.Configuration(
host = "https://dashboard.quantcdn.io"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = quantcdn.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with quantcdn.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = quantcdn.ProjectsApi(api_client)
organization = 'test-org' # str | Organization identifier
v2_project_request = quantcdn.V2ProjectRequest() # V2ProjectRequest |
try:
# Create a new project
api_response = api_instance.projects_create(organization, v2_project_request)
print("The response of ProjectsApi->projects_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->projects_create: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| organization | str | Organization identifier | |
| v2_project_request | V2ProjectRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | The request has succeeded and a new resource has been created as a result. | - |
| 400 | The server could not understand the request due to invalid syntax. | - |
| 403 | Access is forbidden. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projects_delete(organization, project)
Delete a project
- Bearer (JWT) Authentication (BearerAuth):
import quantcdn
from quantcdn.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://dashboard.quantcdn.io
# See configuration.py for a list of all supported configuration parameters.
configuration = quantcdn.Configuration(
host = "https://dashboard.quantcdn.io"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = quantcdn.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with quantcdn.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = quantcdn.ProjectsApi(api_client)
organization = 'test-org' # str | Organization identifier
project = 'test-project' # str | Project identifier
try:
# Delete a project
api_instance.projects_delete(organization, project)
except Exception as e:
print("Exception when calling ProjectsApi->projects_delete: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| organization | str | Organization identifier | |
| project | str | Project identifier |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | The request has succeeded. | - |
| 400 | The server could not understand the request due to invalid syntax. | - |
| 403 | Access is forbidden. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[V2Project] projects_list(organization)
Retrieve all projects for an organization
- Bearer (JWT) Authentication (BearerAuth):
import quantcdn
from quantcdn.models.v2_project import V2Project
from quantcdn.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://dashboard.quantcdn.io
# See configuration.py for a list of all supported configuration parameters.
configuration = quantcdn.Configuration(
host = "https://dashboard.quantcdn.io"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = quantcdn.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with quantcdn.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = quantcdn.ProjectsApi(api_client)
organization = 'test-org' # str | Organization identifier
try:
# Retrieve all projects for an organization
api_response = api_instance.projects_list(organization)
print("The response of ProjectsApi->projects_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->projects_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| organization | str | Organization identifier |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request has succeeded. | - |
| 400 | The server could not understand the request due to invalid syntax. | - |
| 403 | Access is forbidden. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2Project projects_read(organization, project, with_token)
Get details of a single project
- Bearer (JWT) Authentication (BearerAuth):
import quantcdn
from quantcdn.models.v2_project import V2Project
from quantcdn.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://dashboard.quantcdn.io
# See configuration.py for a list of all supported configuration parameters.
configuration = quantcdn.Configuration(
host = "https://dashboard.quantcdn.io"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = quantcdn.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with quantcdn.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = quantcdn.ProjectsApi(api_client)
organization = 'test-org' # str | Organization identifier
project = 'test-project' # str | Project identifier
with_token = False # bool | (default to False)
try:
# Get details of a single project
api_response = api_instance.projects_read(organization, project, with_token)
print("The response of ProjectsApi->projects_read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->projects_read: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| organization | str | Organization identifier | |
| project | str | Project identifier | |
| with_token | bool | [default to False] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request has succeeded. | - |
| 400 | The server could not understand the request due to invalid syntax. | - |
| 403 | Access is forbidden. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2Project projects_update(organization, project, v2_project_request)
Update a project
- Bearer (JWT) Authentication (BearerAuth):
import quantcdn
from quantcdn.models.v2_project import V2Project
from quantcdn.models.v2_project_request import V2ProjectRequest
from quantcdn.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://dashboard.quantcdn.io
# See configuration.py for a list of all supported configuration parameters.
configuration = quantcdn.Configuration(
host = "https://dashboard.quantcdn.io"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = quantcdn.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with quantcdn.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = quantcdn.ProjectsApi(api_client)
organization = 'test-org' # str | Organization identifier
project = 'test-project' # str | Project identifier
v2_project_request = quantcdn.V2ProjectRequest() # V2ProjectRequest |
try:
# Update a project
api_response = api_instance.projects_update(organization, project, v2_project_request)
print("The response of ProjectsApi->projects_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ProjectsApi->projects_update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| organization | str | Organization identifier | |
| project | str | Project identifier | |
| v2_project_request | V2ProjectRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request has succeeded. | - |
| 400 | The server could not understand the request due to invalid syntax. | - |
| 403 | Access is forbidden. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]