Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NVIDIA Run:ai Environment API

An environment resource designates the container image, the image pull policy, working directory, security parameters, and others. It exposes all the necessary tools (open source, 3rd party, or custom tools) along with their connection interfaces including external node port and the container ports.You can also specify a standard, distributed, or inference workload architecture for the environment.An environment is a mandatory building block for the creation of a workload.For more information, see [Environments](https://run-ai-docs.nvidia.com/saas/workloads-in-nvidia-run-ai/assets/environments).

NVIDIA Run:ai Environment API is one of 62 APIs that NVIDIA Run:ai publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Environment. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.

This API exposes 5 operations across 2 paths, and defines 83 schemas. It is described by OpenAPI 3.0.3, at version latest.

Requests are made against a single base URL, https://app.run.ai.

5 operations 2 paths 83 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
latest
Base URL
https://app.run.ai
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

NVIDIA Run:ai Environment API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Bearer authentication

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Environment 5

An environment resource designates the container image, the image pull policy, working directory, security parameters, and others. It exposes all the necessary tools (open source,…

GET
/api/v1/asset/environment
List environment assets.
list_environment_assets 16 params → 200401403503
POST
/api/v1/asset/environment
Create an environment asset.
create_environment_asset body → 202400401403409503
GET
/api/v1/asset/environment/{AssetId}
Get an environment asset.
get_environment_asset_by_id 6 params → 200401403404503
PUT
/api/v1/asset/environment/{AssetId}
Update an environment asset.
update_environment_asset_by_id 1 param body → 202401403404default
DELETE
/api/v1/asset/environment/{AssetId}
Delete an environment asset.
delete_environment_asset_by_id 1 param → 202401403404503

Schemas 83

The contract defines 83 schemas that model the data the API accepts and returns. The most detailed are AssetReadOnlyFields (11 properties), EnvironmentVariableOfAsset (7 properties), AssetCreationFields (7 properties), OverridableSpecFields (6 properties). Each schema is shown below with its type and property counts.

InternalConnectionType
string
The type of connection that exposes the container port.
EnvironmentCreationRequest
object
2 properties 2 required
Probe
object
6 properties
ExternalToolType
string
The type of external tool that is associated with the connection. External tool typically runs in the cloud and require external url for connecting to it.
DataSourceOverrides
object
specific fields to override in the data source.
1 property
AssetsUsageRefCompute
object
UidGidSource
string
Indicate the way to determine the user and group ids of the container. The options are a. fromTheImage - user and group ids are determined by the docker image…
Error
object
3 properties 2 required
InternalToolInfo
object
Information of the internal tool.
6 properties 3 required
EnvironmentAssetRef
object
Reference information about environment asset.
3 properties 2 required
ServingPortInfo
object
1 property
UsageTimesInfo
object
Details about times the asset has been used by workloads, etc.
1 property
AssetsUsageRef
object
Reference information about usage of assets by other assets, for example datasources that uses credentials.
5 properties
AssetName
string
The name of the asset.
AssetCreationRequest
Stdin
boolean
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in…
Capabilities
array
Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.
ComplianceInfoReason
object
An issue preventing the use of a template or asset for creating workloads in a given project.
3 properties 1 required
AssetMeta
HostNetwork
boolean
Whether to enable host networking. Default to false.
AssetClusterStatusIssues
array
EnvironmentVariableCredential
object
Details of the secret and key use to populate the environment variable. (mutually exclusive with value)
2 properties
EnvironmentAsset
object
6 properties 2 required
RunAsGid
integer
The group id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset runAsGid field (optio…
AssetClusterStatusIssue
object
3 properties 3 required
EnvironmentAssetSpec
ProbeHandler
object
The action taken to determine the health of the container. (mandatory)
1 property
AssetDescription
string
The description of the asset.
AssetClusterStatusInfo
object
4 properties
ImagePullPolicy
string
Image pull policy. Defaults to Always if :latest tag is specified, otherwise it is IfNotPresent.
AllowPrivilegeEscalation
boolean
Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the U…
NonOverridableSpecFields
WorkloadName
string
The name of the workload.
Connection
object
4 properties 1 required
AssetId
string
Unique identifier of the asset.
InternalToolType
string
The type of the internal tool. Internal tool runs within the container and exposes ports associated with the tool using NodePort, LoadBalancer or ExternalUrl.
EnvironmentListResponse
object
1 property 1 required
SupplementalGroups
string
Comma separated list of groups that the user running the container belongs to, in addition to the group indicated by runAsGid. Use only when the source uid/gid…
PolicyRuleEnum
string
Indicates which validation rule (e.g., min, max, step, options, required, canEdit, canAdd) conflicted with policy restrictions, causing the asset or template t…
AssetReadOnlyFields
object
11 properties 6 required
UpdateCount
integer
the value of an update counter of a data in the system.
AssetKind
string
The kind of the asset.
AssetSyncStatusEnum
string
AssetDatasourceRef
object
Reference information about a datasource asset.
4 properties 3 required
Image
string
Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a worklo…
CreateHomeDir
boolean
When set to true, creates a home directory for the container.
EnvironmentVariableConfigMap
object
Details of the configMap and key use to populate the environment variable
2 properties
AssetClusterStatusIssueEnum
string
Capability
string
AssetUsageInfo
object
Details about resources that use the asset.
6 properties
ComplianceInfo
object
Compliance of an asset with creation of workloads in a given project.
3 properties
WorkloadRefAndStatus
object
Id, name and status of a workspace or training
3 properties 2 required
EnvironmentVariablePodFieldReference
object
Details of the field-reference and key use to populate the environment variable
1 property
EnvironmentVariableOfAsset
object
Details of an environment variable which is populated into the container.
7 properties
ReadOnlyRootFileSystem
boolean
If true, mounts the container's root filesystem as read-only.
Scope
string
The scope in which an asset can be used. The highest scope, system, is intended for internal purposes only.
Command
string
A command to the server as the entry point of the container running the workload.
NodePortInfo
object
1 property
ProbeHandlerScheme
string
Scheme to use for connecting to the host, defaults to HTTP.
RunAsNonRoot
boolean
Force the container to run as a non-root user.
EnvironmentVariablesOfAsset
array
Set of environment variables to populate into the container running the workspace.
Args
string
Arguments to the command that the container running the workload executes.
WorkingDir
string
Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.
AssetRef
object
Reference information about an asset.
2 properties 2 required
OverridableSpecFields
object
6 properties
ExternalToolInfo
object
Information of the external tool.
2 properties 2 required
AssetUpdateRequest
SeccompProfileType
string
Indicates which kind of seccomp profile will be applied to the container. The options are a. RuntimeDefault - the container runtime default profile should be u…
HttpResponse
object
2 properties 2 required
ExternalUrlInfo
object
2 properties
WorkloadId1
string
A unique ID of the workload.
WorkloadSupportedTypes
object
5 properties
AssetUpdatableFields
object
2 properties 1 required
EnvironmentUpdateRequest
object
2 properties 2 required
ToolType
string
Super set of Internal and External tool types.
AssetCreationFields
object
7 properties 1 required
ScopeType
string
Probes
object
Probes are used to determine if the container is healthy and ready to accept traffic.
1 property
ScopeId
string
The id of the cluster, department or project, depending on the scope type.
ClusterIdOptional
string
The id of the cluster.
HostIpc
boolean
Whether to enable host IPC. Defaults to false.
Tty
boolean
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
RunAsUid
integer
The user id to run the entrypoint of the container which executes the workspace. Default to the value specified in the environment asset runAsUid field (option…

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

runai-environment-api-openapi.yml Raw ↑

Other APIs NVIDIA Run:ai publishes across the network.

NVIDIA Run:ai Access Keys API
NVIDIA Run:ai Access rules API
NVIDIA Run:ai Administrator Command Line Interface API
NVIDIA Run:ai AI Applications API
NVIDIA Run:ai Applications API
NVIDIA Run:ai AuditLogs API
NVIDIA Run:ai Clusters API
NVIDIA Run:ai Compute API
NVIDIA Run:ai ConfigMap API
NVIDIA Run:ai Credentials API
NVIDIA Run:ai Datasources API
NVIDIA Run:ai Datavolumes API