Function Management

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.

post/v2/nvcf/functions

Request

  • Base URL: https://api.nvcf.nvidia.com
  • URL: https://api.nvcf.nvidia.com/v2/nvcf/functions
  • Auth: none declared

Request body

namestring UTF-8 required

Function name must start with lowercase/uppercase/digit and can only contain lowercase, uppercase, digit, hyphen, and underscore characters

inferenceUrlstring uri required

Entrypoint for invoking the container to process a request

healthUristring uri nullable

Health endpoint for the container or the helmChart

inferencePortinteger nullable

Optional port number where the inference listener is running. Defaults to 8000 for Triton.

containerArgsstring UTF-8 nullable

Args to be passed when launching the container

containerImagestring uri nullable

Optional custom container image

helmChartstring uri nullable

Optional Helm Chart

helmChartServiceNamestring UTF-8 nullable

Helm Chart Service Name is required when helmChart property is specified

apiBodyFormat'PREDICT_V2' | 'CUSTOM' UTF-8 nullable

Invocation request body format

tagsstring[] nullable

Optional set of tags - could be empty. Provided by user

descriptionstring UTF-8 nullable

Optional function/version description

functionType'DEFAULT' | 'STREAMING' | 'LLM' UTF-8 nullable

Optional function type, used to indicate a STREAMING function. Defaults to DEFAULT.

Example request

{
  "health": {
    "timeout": "PT10S"
  }
}

Response

OK

Example response

{
  "function": {
    "health": {
      "timeout": "PT10S"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.