Help Center/ ModelArts/ SDK Reference/ Lite Server Lifecycle Management/ Creating a Lite Server Supernode Tag
Updated on 2025-12-04 GMT+08:00

Creating a Lite Server Supernode Tag

Example Code

In ModelArts Notebook, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see Session Authentication.

from modelarts.server_mgmt import ServerManagement
from modelarts.session import Session
from modelarts.servers.server_def import Tag

tags = [Tag(hps_key="test",hps_value="service-gpu")]
ServerManagement.create_hps_tag(session = Session(), hps_cluster_id = "hps_cluster_id", tags = tags) #Enter hps_cluster_id.

Parameters

Table 1 URI parameters

Parameter

Mandatory

Type

Description

hps_cluster_id

Yes

String

Lite Server ID.

session

Yes

Class

Manage the interaction with Lite Server and provide project ID (project_id).

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

hps_key

No

String

Supernode key tag.

hps_value

No

String

Supernode value tag.

Table 3 ServerResponse

Parameter

Mandatory

Type

Description

hps_key

No

String

Supernode key tag.

hps_value

No

String

Supernode value tag.