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.2.0, at version latest.
Requests are made against a single base URL, https://app.run.ai.
The identity and technical contract details declared by the specification.
AssetSyncStatusEnum
string
EnvironmentUpdateRequest
object
2 properties
2 required
EnvironmentCreationRequest
object
2 properties
2 required
AssetUpdatableFields
object
2 properties
1 required
AssetCreationFields
object
7 properties
1 required
InternalToolInfo
objectnull
Information of the internal tool.
6 properties
3 required
AssetUsageInfo
objectnull
Details about resources that use the asset.
6 properties
HostNetwork
booleannull
Whether to enable host networking. Default to false.
Image
stringnull
Docker image name. For more information, see [Images](https://kubernetes.io/docs/concepts/containers/images). The image name is mandatory for creating a worklo…
WorkingDir
stringnull
Container's working directory. If not specified, the container runtime default will be used. This may be configured in the container image.
HttpResponse
object
2 properties
2 required
ProbeHandler
objectnull
The action taken to determine the health of the container. (mandatory)
1 property
EnvironmentVariablePodFieldReference
objectnull
Details of the field-reference and key use to populate the environment variable
1 property
Probe
objectnull
6 properties
ServingPortInfo
objectnull
1 property
Command
stringnull
A command to the server as the entry point of the container running the workload.
WorkloadSupportedTypes
objectnull
5 properties
EnvironmentAsset
object
6 properties
2 required
EnvironmentVariableConfigMap
objectnull
Details of the configMap and key use to populate the environment variable
2 properties
OverridableSpecFields
objectnull
6 properties
EnvironmentVariableOfAsset
objectnull
Details of an environment variable which is populated into the container.
7 properties
AssetDescription
stringnull
The description of the asset.
EnvironmentListResponse
object
1 property
1 required
EnvironmentAssetRef
object
Reference information about environment asset.
3 properties
2 required
AssetId
string
Unique identifier of the asset.
AssetClusterStatusInfo
objectnull
4 properties
AssetName
string
The name of the asset.
AllowPrivilegeEscalation
booleannull
Allow the container running the workload and all launched processes to gain additional privileges after the workload starts. For more information consult the U…
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.
InternalConnectionType
string
The type of connection that exposes the container port.
AssetClusterStatusIssue
object
3 properties
3 required
SupplementalGroups
stringnull
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…
CreateHomeDir
booleannull
When set to true, creates a home directory for the container.
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.
ExternalUrlInfo
objectnull
2 properties
ScopeId
string
The id of the cluster, department or project, depending on the scope type.
EnvironmentVariableCredential
objectnull
Details of the secret and key use to populate the environment variable. (mutually exclusive with value)
2 properties
ProbeHandlerScheme
stringnull
Scheme to use for connecting to the host, defaults to HTTP.
Scope
string
The scope in which an asset can be used. The highest scope, system, is intended for internal purposes only.
Error
object
3 properties
2 required
RunAsNonRoot
booleannull
Force the container to run as a non-root user.
Probes
objectnull
Probes are used to determine if the container is healthy and ready to accept traffic.
1 property
AssetReadOnlyFields
object
11 properties
6 required
Args
stringnull
Arguments to the command that the container running the workload executes.
RunAsGid
integernull
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…
AssetDatasourceRef
object
Reference information about a datasource asset.
4 properties
3 required
Tty
booleannull
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
EnvironmentVariablesOfAsset
arraynull
Set of environment variables to populate into the container running the workspace.
PolicyRuleEnum
stringnull
Indicates which validation rule (e.g., min, max, step, options, required, canEdit, canAdd) conflicted with policy restrictions, causing the asset or template t…
ReadOnlyRootFileSystem
booleannull
If true, mounts the container's root filesystem as read-only.
Stdin
booleannull
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…
UidGidSource
stringnull
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…
NodePortInfo
objectnull
1 property
ImagePullPolicy
stringnull
Image pull policy. Defaults to Always if :latest tag is specified, otherwise it is IfNotPresent.
AssetsUsageRef
object
Reference information about usage of assets by other assets, for example datasources that uses credentials.
5 properties
WorkloadId1
string
A unique ID of the workload.
DataSourceOverrides
objectnull
specific fields to override in the data source.
1 property
Capabilities
arraynull
Add POSIX capabilities to running containers. Defaults to the default set of capabilities granted by the container runtime.
AssetRef
object
Reference information about an asset.
2 properties
2 required
ToolType
string
Super set of Internal and External tool types.
WorkloadRefAndStatus
object
Id, name and status of a workspace or training
3 properties
2 required
ComplianceInfoReason
object
An issue preventing the use of a template or asset for creating workloads in a given project.
3 properties
1 required
RunAsUid
integernull
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…
UpdateCount
integer
the value of an update counter of a data in the system.
AssetClusterStatusIssueEnum
string
AssetKind
string
The kind of the asset.
Connection
object
4 properties
1 required
AssetsUsageRefCompute
objectnull
UsageTimesInfo
objectnull
Details about times the asset has been used by workloads, etc.
1 property
ExternalToolInfo
objectnull
Information of the external tool.
2 properties
2 required
ComplianceInfo
objectnull
Compliance of an asset with creation of workloads in a given project.
3 properties
SeccompProfileType
stringnull
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…
HostIpc
booleannull
Whether to enable host IPC. Defaults to false.
AssetClusterStatusIssues
array
WorkloadName
string
The name of the workload.
ClusterIdOptional
stringnull
The id of the cluster.
The full machine-readable OpenAPI contract behind this narrative.
Other APIs NVIDIA Run:ai publishes across the network.