def get_activation_id(project_id: str, pipeline_id: str, analysis_input: Dict) -> str:
# Enter a context with an instance of the API client
with libica.openapi.v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = entitlement_detail_api.EntitlementDetailApi(api_client)
search_matching_activation_codes_for_cwl_analysis = SearchMatchingActivationCodesForCwlAnalysis(
project_id=project_id,
pipeline_id=pipeline_id,
analysis_input=analysis_input,
) # SearchMatchingActivationCodesForCwlAnalysis | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# Search the best matching activation code detail for Cwl pipeline.
api_response = api_instance.find_best_matching_activation_code_for_cwl(
search_matching_activation_codes_for_cwl_analysis=search_matching_activation_codes_for_cwl_analysis
)
except libica.openapi.v2.ApiException as e:
raise ValueError("Exception when calling EntitlementDetailApi->find_best_matching_activation_code_for_cwl: %s\n" % e)
return api_response.id
Functions
Run
Returns the following traceback
When running through curl
This shows that both
allowedSlots
andoriginalSlots
are -1 even if these exceed the expected range