create_asset_async

async omni.nvcf.core.create_asset_async(session: aiohttp.client.ClientSession, token: str, asset_name: str, content_type: str, nvcf_url: str = NVCF_URL.STG) aiohttp.client_reqrep.ClientResponse

Create an NVCF asset named `asset_name` of the desired content type.

Parameters
  • session (aiohttp.ClientSession) – Client session.

  • token (str) – JWT authorization token.

  • asset_name (str) – Name to give the asset.

  • content_type (str) – MIME type of content stored in the asset. (ex: “image/jpeg”)

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

Returns

Result from POST call to create the asset.

Return type

aiohttp.ClientResponse