libica.openapi.v3.StorageConfigurationApi¶
All URIs are relative to /ica/rest
Method | HTTP request | Description |
---|---|---|
create_storage_configuration | POST /api/storageConfigurations | Create a new storage configuration |
get_storage_configuration | GET /api/storageConfigurations/{storageConfigurationId} | Retrieve a storage configuration. |
get_storage_configuration_details | GET /api/storageConfigurations/{storageConfigurationId}/details | Retrieve a storage configuration detail. |
get_storage_configurations | GET /api/storageConfigurations | Retrieve a list of storage configurations. |
share_storage_configuration | POST /api/storageConfigurations/{storageConfigurationId}:share | Share your own storage configuration with tenant. |
validate_storage_configuration | POST /api/storageConfigurations/{storageConfigurationId}:validate | Start validation of your storage configuration. |
create_storage_configuration¶
StorageConfiguration create_storage_configuration(create_storage_configuration)
Create a new storage configuration
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.create_storage_configuration import CreateStorageConfiguration
from libica.openapi.v3.models.storage_configuration import StorageConfiguration
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
create_storage_configuration = libica.openapi.v3.CreateStorageConfiguration() # CreateStorageConfiguration |
try:
# Create a new storage configuration
api_response = api_instance.create_storage_configuration(create_storage_configuration)
print("The response of StorageConfigurationApi->create_storage_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling StorageConfigurationApi->create_storage_configuration: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
create_storage_configuration | CreateStorageConfiguration |
Return type¶
Authorization¶
HTTP request headers¶
- Content-Type: application/vnd.illumina.v3+json, application/json
- Accept: application/problem+json, application/vnd.illumina.v3+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
201 | The storage configuration is successfully created. | * ETag - The current version of the resource. Can be passed to the corresponding PUT endpoint to enable conflict exposure (409 response). |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_storage_configuration¶
StorageConfiguration get_storage_configuration(storage_configuration_id)
Retrieve a storage configuration.
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.storage_configuration import StorageConfiguration
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
storage_configuration_id = 'storage_configuration_id_example' # str | The ID of the storage configuration to retrieve
try:
# Retrieve a storage configuration.
api_response = api_instance.get_storage_configuration(storage_configuration_id)
print("The response of StorageConfigurationApi->get_storage_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling StorageConfigurationApi->get_storage_configuration: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
storage_configuration_id | str | The ID of the storage configuration to retrieve |
Return type¶
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/problem+json, application/vnd.illumina.v3+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
200 | The storage configuration is successfully retrieved. | * ETag - The current version of the resource. Can be passed to the corresponding PUT endpoint to enable conflict exposure (409 response). |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_storage_configuration_details¶
StorageConfigurationDetails get_storage_configuration_details(storage_configuration_id)
Retrieve a storage configuration detail.
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.storage_configuration_details import StorageConfigurationDetails
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
storage_configuration_id = 'storage_configuration_id_example' # str | The ID of the storage configuration to retrieve
try:
# Retrieve a storage configuration detail.
api_response = api_instance.get_storage_configuration_details(storage_configuration_id)
print("The response of StorageConfigurationApi->get_storage_configuration_details:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling StorageConfigurationApi->get_storage_configuration_details: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
storage_configuration_id | str | The ID of the storage configuration to retrieve |
Return type¶
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/problem+json, application/vnd.illumina.v3+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
200 | The storage configuration detail is successfully retrieved. | - |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_storage_configurations¶
StorageConfigurationWithDetailsList get_storage_configurations()
Retrieve a list of storage configurations.
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.storage_configuration_with_details_list import StorageConfigurationWithDetailsList
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
try:
# Retrieve a list of storage configurations.
api_response = api_instance.get_storage_configurations()
print("The response of StorageConfigurationApi->get_storage_configurations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling StorageConfigurationApi->get_storage_configurations: %s\n" % e)
Parameters¶
This endpoint does not need any parameter.
Return type¶
StorageConfigurationWithDetailsList
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/problem+json, application/vnd.illumina.v3+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
200 | The list of storage configurations is successfully retrieved. | - |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
share_storage_configuration¶
share_storage_configuration(storage_configuration_id)
Share your own storage configuration with tenant.
Here you share your own storage configuration with all the other users in your tenant.
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
storage_configuration_id = 'storage_configuration_id_example' # str | The ID of the storage configuration to share
try:
# Share your own storage configuration with tenant.
api_instance.share_storage_configuration(storage_configuration_id)
except Exception as e:
print("Exception when calling StorageConfigurationApi->share_storage_configuration: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
storage_configuration_id | str | The ID of the storage configuration to share |
Return type¶
void (empty response body)
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/problem+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
204 | The storage configuration is successfully shared. | - |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
validate_storage_configuration¶
validate_storage_configuration(storage_configuration_id)
Start validation of your storage configuration.
Here you start the validation of your storage configuration.
Example¶
- Bearer (JWT) Authentication (JwtAuth):
- Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /ica/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = libica.openapi.v3.Configuration(
host = "/ica/rest"
)
# 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): JwtAuth
configuration = libica.openapi.v3.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# 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'
# Enter a context with an instance of the API client
with libica.openapi.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = libica.openapi.v3.StorageConfigurationApi(api_client)
storage_configuration_id = 'storage_configuration_id_example' # str | The ID of the storage configuration to validate
try:
# Start validation of your storage configuration.
api_instance.validate_storage_configuration(storage_configuration_id)
except Exception as e:
print("Exception when calling StorageConfigurationApi->validate_storage_configuration: %s\n" % e)
Parameters¶
Name | Type | Description | Notes |
---|---|---|---|
storage_configuration_id | str | The ID of the storage configuration to validate |
Return type¶
void (empty response body)
Authorization¶
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/problem+json
HTTP response details¶
Status code | Description | Response headers |
---|---|---|
204 | The storage configuration validation is successfully started. | - |
0 | A problem occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]