List Functions
Lists all the functions associated with the authenticated NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'list_functions' or 'list_functions_details' scopes in the HTTP Authorization header.
API Endpoint: GET /v2/nvcf/functions
from nvidia_cloud_functions import Client
client = Client()
res = client.functions.list()
from nvidia_cloud_functions import AsyncClient
client = AsyncClient()
res = await client.functions.list()
Create Function
Creates a new function within the authenticated NVIDIA Cloud Account. Requires a bearer token with 'register_function' scope in the HTTP Authorization header.
API Endpoint: POST /v2/nvcf/functions
from nvidia_cloud_functions import Client
client = Client()
res = client.functions.create(inference_url="http://www.example.com", name="string")
from nvidia_cloud_functions import AsyncClient
client = AsyncClient()
res = await client.functions.create(
inference_url="http://www.example.com", name="string"
)