Skip to content

libica.openapi.v3.RegionApi

All URIs are relative to /ica/rest

Method HTTP request Description
get_region GET /api/regions/{regionId} Retrieve a region. Only the regions the user has access to through his/her entitlements can be retrieved.
get_regions GET /api/regions Retrieve a list of regions. Only the regions the user has access to through his/her entitlements are returned.

get_region

Region get_region(region_id)

Retrieve a region. Only the regions the user has access to through his/her entitlements can be retrieved.

Example

  • Bearer (JWT) Authentication (JwtAuth):
  • Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.region import Region
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.RegionApi(api_client)
    region_id = 'region_id_example' # str | 

    try:
        # Retrieve a region. Only the regions the user has access to through his/her entitlements can be retrieved.
        api_response = api_instance.get_region(region_id)
        print("The response of RegionApi->get_region:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling RegionApi->get_region: %s\n" % e)

Parameters

Name Type Description Notes
region_id str

Return type

Region

Authorization

JwtAuth, ApiKeyAuth

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 region is successfully retrieved. -
0 A problem occurred. -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_regions

RegionList get_regions()

Retrieve a list of regions. Only the regions the user has access to through his/her entitlements are returned.

Example

  • Bearer (JWT) Authentication (JwtAuth):
  • Api Key Authentication (ApiKeyAuth):
import libica.openapi.v3
from libica.openapi.v3.models.region_list import RegionList
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.RegionApi(api_client)

    try:
        # Retrieve a list of regions. Only the regions the user has access to through his/her entitlements are returned.
        api_response = api_instance.get_regions()
        print("The response of RegionApi->get_regions:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling RegionApi->get_regions: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

RegionList

Authorization

JwtAuth, ApiKeyAuth

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 regions is successfully retrieved. -
0 A problem occurred. -

[Back to top] [Back to API list] [Back to Model list] [Back to README]