Updated on 2024-01-04 GMT+08:00

API Overview

All ModelArts APIs are proprietary.

You can use these APIs to manage development environments, training jobs, AI applications, and services.

DevEnviron APIs

Table 1 Development environment

Type

API

Description

Managing DevEnviron Instances

Obtaining Notebook Instances

Obtain the list of notebook instances meeting search criteria

Creating a Notebook Instance

Create a notebook instance based on parameters such as the instance flavor, AI engine, and storage.

Obtaining Details About a Notebook Instance

Obtain details about a notebook instance.

Updating a Notebook Instance

Modify a notebook instance.

Deleting a Notebook Instance

Delete the container and all storage resources of a notebook instance.

Saving a Running Instance as a Container Image

Save the running instance as a container image. In the saved image, the installed dependency package (pip package) is retained. In VS Code remote development, the plug-ins installed on the server are retained.

Obtaining Flavors Available for a Notebook Instance

Obtain available flavors.

Obtaining Flavors Available for a Notebook Instance

Obtain the flavors available for a notebook instance.

Obtaining the Available Duration of a Running Notebook Instance

Obtain the available duration of a running notebook instance.

Prolonging a Notebook Instance

Prolong the available duration of a running notebook instance.

Starting a Notebook Instance

Start a notebook instance.

Stopping a Notebook Instance

Stop a notebook instance.

Dynamically Mounting OBS

Obtaining the Notebook Instances with OBS Storage Mounted

Obtain the notebook instances with OBS storage mounted.

Dynamically Mounting OBS

Dynamically mount OBS to a notebook instance in running state.

Obtaining Details About a Notebook Instance with OBS Storage Mounted

Obtain details about a notebook instance with OBS storage mounted.

Dynamically Unmounting OBS

Dynamically unmount OBS from a notebook instance.

Image Management

Obtaining Supported Images

Obtain all images by page based on specified conditions.

Registering a Custom Image

Register a custom image with ModelArts image management.

Obtaining User Image Groups

Obtain the overview of user image information. Image names are used for aggregation.

Obtaining Details About an Image

Obtain details about an image.

Deleting an Image

Delete an image. For a private image, you can also delete its SWR image using parameters.

Training Management APIs

Table 2 Algorithm management APIs

API

Description

Creating an Algorithm

Create an algorithm.

Obtaining Algorithms

Obtain algorithms.

Obtaining Details About an Algorithm

Obtain a specified algorithm based on the algorithm ID.

Updating an Algorithm

Update an algorithm.

Deleting an Algorithm

Delete an algorithm.

Table 3 APIs for managing training jobs

API

Description

Creating a Training Job

Create a training job.

Obtaining Details About a Training Job

Obtain details about a training job.

Modifying the Description of a Training Job

Modify the description of a training job.

Deleting a Training Job

Delete a training job.

Terminate a Training Job

Terminate a training job. Only jobs in the creating, awaiting, or running state can be terminated.

Obtaining the Logs of a Specified Task in a Training Job (Preview)

Obtain the logs of a specified task in a training job (preview).

Obtaining the Logs of a Specified Task in a Training Job (OBS Link)

Obtain the logs of a specified task in a training job (OBS link). You can view all logs or download the logs.

Obtaining the Runtime Metrics of a Specified Task in a Training Job

Obtain the runtime metrics of a specified task in a training job.

Obtaining Training Jobs

Obtain the created training jobs by search criteria.

Table 4 APIs for resources and engine specifications

API

Description

Obtaining the General Specifications Supported by a Training Job

Obtain the general specifications supported by a training job.

Obtaining the Preset AI Frameworks Supported by a Training Job

Obtain the preset AI frameworks supported by a training job.

AI Application Management APIs

Table 5 APIs for managing AI applications

API

Description

Obtaining the Model Runtime

Obtain the AI engine and runtime of models.

Creating an AI Application

Create an AI application.

Obtaining an AI Application List

Obtain AI applications by different search criteria.

Obtaining Details About an AI Application

Obtain AI application details by ID.

Deleting an AI Application

Delete AI applications by ID. All versions of the AI application can be deleted.

App Authentication Management APIs

Table 6 App authentication management APIs

API

Description

Obtaining Apps

Obtain the basic information about APIG apps. You can obtain only the information about the apps created by yourself.

Creating an App

Create an API Gateway application (app for short).

Obtaining Details About an App

Obtain details about a specified app.

Deleting an App

Delete an app.

Adding an App Code

Create an app code for a specified API Gateway app.

Resetting an App Code

Reset a specified app code of a specified API Gateway app.

Deleting an App Code

Delete a specified app code of a specified API Gateway app.

Resetting an App Secret

Reset a specified app secret of a specified API Gateway app.

Obtaining the List of APIs Bound to an App

Obtain the list of APIs bound to an app.

Registering an API and Authorizing the API to an App

Register an API and authorize the API to an app.

Deleting an API

Delete a specified API. Only users who have the permission to delete the service to which the API belongs can delete the API.

Authorizing an API to an App

Authorize a specified API to an app.

Updating API Authorization

Update the authorization relationship of an API.

Canceling the Authorization of an API to an App

Cancel the authorization of a specified API to an app.

Obtaining API Authorization Relationships

Obtain authorization relationships between specified APIs and apps.

Service Management APIs

Table 7 Service management APIs

API

Description

Deploying a Service

Deploy a service.

Obtaining Services

Obtain services.

Obtaining Service Details

Obtain service details by ID.

Updating Service Configurations

Update a model service.

Obtaining Service Monitoring

Obtain service monitoring information.

Obtaining Service Update Logs

Obtain the update logs of a real-time service.

Obtaining Service Event Logs

Obtain service event logs, including service operation records, key actions during deployment, and deployment failure causes.

Deleting a Service

Delete a service.

Obtaining Supported Service Deployment Specifications

Obtain supported service deployment specifications.

Resource Management APIs

Table 8 Configuration management API

API

Description

Obtaining OS Configuration Parameters

Obtain the configuration parameters of the ModelArts OS service, such as the CIDR block and user resource quota.

Table 9 Plug-in template management API

API

Description

Obtaining a Plug-in Template

Obtain details of a specified plug-in template.

Table 10 Node management APIs

API

Description

Obtaining Nodes

Obtain the list of nodes in a resource pool.

Deleting Nodes in a Batch

Delete nodes in a specific resource pool. At least one node must be reserved in the resource pool.

Table 11 Event management API

API

Description

Obtaining Events

Obtain events.

Table 12 Network management APIs

API

Description

Creating Network Resources

Create network resources.

Obtaining Network Resources

Obtain a list of network resources.

Obtaining a Network Resource

Obtain details about a specified network resource.

Deleting a Network Resource

Delete a specified network resource.

Updating a Network Resource

Update a specified network resource.

Table 13 Resource indicator management API

API

Description

Obtaining the Real-Time Resource Usage

Obtain the real-time usage of all resource pools in the current project.

Table 14 Resource pool management APIs

API

Description

Creating a Resource Pool

Create a resource pool.

Obtaining Resource Pools

Obtain resource pools.

Obtaining a Resource Pool

Obtain details about a specified resource pool.

Deleting a Resource Pool

Delete a specified resource pool.

Updating a Resource Pool

Update a specified resource pool.

Monitoring a Resource Pool

Obtain the monitoring information of a resource pool.

Collecting Resource Pool Statistics

Obtain the statistics of a resource pool.

Table 15 Resource flavor management APIs

API

Description

Obtaining Resource Flavors

Obtain resource flavors.

Table 16 APIs for managing resource pool jobs

API

Description

Obtaining Dedicated Resource Pool Jobs

Obtain dedicated resource pool jobs.

Obtaining Statistics for Dedicated Resource Pool Jobs

Obtain statistics for dedicated resource pool jobs.

DevServer Management APIs

Table 17 DevServer management APIs

API

Description

Obtaining Details About all DevServer Instances of a User

Obtain details about all DevServer instances of a user.

Creating a DevServer Instance

Create a DevServer instance.

Obtaining DevServer Instance Details

Obtain DevServer instance details.

Deleting a DevServer Instance

Delete DevServer instances.

Synchronizing the Status of All DevServer Instances of a User in Real Time

Synchronize the status of all DevServer instances of a user in real time.

Starting a DevServer Instance

Start DevServer instances.

Stopping DevServer Instances

Stop DevServer instances.

Authorization Management APIs

Table 18 Authorization management APIs

API

Description

Viewing an Authorization List

View an authorization list.

Configuring Authorization

Configure ModelArts authorization. ModelArts functions such as training management, development environment, data management, and real-time services can be properly used only after required permissions are assigned.

Deleting Authorization

Delete the authorization of a specified user or all users.

Creating a ModelArts Agency

Create a ModelArts agency for dependent services such as OBS, SWR, and IEF.