pub struct AddNodesToGroupResponse {
pub added: Vec<String>,
pub final_members: Vec<String>,
pub removed: Vec<String>,
}Expand description
Response body for POST /api/v1/groups/{name}/members.
The removed field name is retained for wire stability; its value
is the final, sorted membership of the group after the update —
not a list of removed nodes.
added and final_members are both sorted alphabetically by xname.
§Wire shape
{
"added": ["x3000c0s1b0n2", "x3000c0s1b0n3"],
"final_members": ["x3000c0s1b0n0", "x3000c0s1b0n1", "x3000c0s1b0n2", "x3000c0s1b0n3"],
"removed": ["x3000c0s1b0n0", "x3000c0s1b0n1", "x3000c0s1b0n2", "x3000c0s1b0n3"]
}Fields§
§added: Vec<String>Xnames that were added to the group as part of this request, sorted alphabetically.
final_members: Vec<String>Final, sorted membership of the group after the update.
removed: Vec<String>Deprecated alias for Self::final_members. Carries the same
value so existing clients reading removed keep working for one
release; new clients should read final_members. Scheduled for
removal in the next major bump — at which point the
#[serde(alias = "removed")] on final_members keeps inbound
compatibility for anyone POSTing back the old name.