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
|
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). |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
hps_key |
No |
String |
Supernode key tag. |
|
hps_value |
No |
String |
Supernode value tag. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
hps_key |
No |
String |
Supernode key tag. |
|
hps_value |
No |
String |
Supernode value tag. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot