libica.openapi.libconsole.ProjectsApi¶
All URIs are relative to https://aps2.platform.illumina.com
Method | HTTP request | Description |
---|---|---|
list_projects | GET /v1/projects | Get a list of available projects. Requires user authorization Bearer token. |
list_projects¶
ProjectPagedItems list_projects(page_token=page_token)
Get a list of available projects. Requires user authorization Bearer token.
Get a list of available projects
Example¶
- Basic Authentication (Basic):
from __future__ import print_function
import time
import libica.openapi.libconsole
from libica.openapi.libconsole.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://aps2.platform.illumina.com
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.libconsole.Configuration(
host = "https://aps2.platform.illumina.com"
)
# 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 HTTP basic authorization: Basic
configuration = libica.openapi.libconsole.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure API key authorization: Bearer
configuration = libica.openapi.libconsole.Configuration(
host = "https://aps2.platform.illumina.com",
api_key = {
'Authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Enter a context with an instance of the API client
with libica.openapi.libconsole.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.libconsole.ProjectsApi(api_client)
page_token = 'page_token_example' # str | (optional)
try:
# Get a list of available projects. Requires user authorization Bearer token.
api_response = api_instance.list_projects(page_token=page_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->list_projects: %s\n" % e)
- Api Key Authentication (Bearer):
from __future__ import print_function
import time
import libica.openapi.libconsole
from libica.openapi.libconsole.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://aps2.platform.illumina.com
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.libconsole.Configuration(
host = "https://aps2.platform.illumina.com"
)
# 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 HTTP basic authorization: Basic
configuration = libica.openapi.libconsole.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure API key authorization: Bearer
configuration = libica.openapi.libconsole.Configuration(
host = "https://aps2.platform.illumina.com",
api_key = {
'Authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Enter a context with an instance of the API client
with libica.openapi.libconsole.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.libconsole.ProjectsApi(api_client)
page_token = 'page_token_example' # str | (optional)
try:
# Get a list of available projects. Requires user authorization Bearer token.
api_response = api_instance.list_projects(page_token=page_token)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->list_projects: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
page_token | str | [optional] |
Return type¶
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
200 | Projects returned successfully | - |
400 | The provided page token is invalid. | - |
401 | The provided access token is unauthorized. | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]