Creating a Node Group
Function
After receiving a node group creation message, MEF Center verifies the validity of each field in the message. If the verification is successful, MEF Center saves the node group to the database and returns the node group ID in the message.
Syntax
Operation type: POST
URL: https://{ip}:{port}/edgemanager/v1/nodegroup
{
"nodeGroupName": NodeGroupName,
"description": NodeGroupDescription
}
Request Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
nodeGroupName |
Mandatory |
Node group name |
The value is a string of 1 to 32 characters, including uppercase letters, lowercase letters, digits, and underscores (_). It must start with an uppercase letter or lowercase letter and cannot end with an underscore (_). The name of an edge node group name is unique. |
description |
Optional |
Node group description |
The value is a string of 0 to 512 characters, including non-whitespace characters and spaces. |
Usage Example
Request:
POST https://10.10.10.10:30035/edgemanager/v1/nodegroup
Request message body:
{
"nodeGroupName": "node_group_name",
"description": "node_group_description"
}
Response:
{
"status": "00000000",
"msg": "success",
"data": 1
}
Response status code: 200
Parameter |
Type |
Description |
|---|---|---|
status |
String |
Error code |
msg |
String |
Description |
data |
Number |
ID of the node group that is successfully created |