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