api_call

omni.nvcf.core.api_call(client_id: str, ssa_secret: str, function_id: str, function_version_id: str, params: Dict[str, Any], asset_names: List[str], ssa_url: str = SSA_URL.STG, nvcf_url: str = NVCF_URL.STG) Any

Single call to run an NVCF function end-to-end. NOTE: Images will be uploaded and sent as base64 encoded numpy archives. The NVCF function must handle this as input.

Parameters
  • client_id (str) – SSA client id.

  • ssa_secret (str) – SSA secret for the SSA client.

  • function_id (str) – ID of the NVCF function.

  • function_version_id (str) – Version ID of the NVCF function.

  • params (Dict[str, Any]) – Dictionary of input parameters to the NVCF call.

  • asset_names (List[str]) – List of image assets as keys into `params`.

  • ssa_url (str, optional) – URL for SSA authentication. Defaults to util.SSA_URL.STG.

  • nvcf_url (str, optional) – URL for NVCF calls. Defaults to util.NVCF_URL.STG.

Returns

Unzipped payload output from the NVCF call.

Return type

Any