While provisioning a volume via CLI, it accepts unix-group name but in volume create REST API endpoint, unix-group ID is accepted. Due to this, we need a way to retrieve group-id of the given unix group name. For this, "vserver services name-service getxxbyyy getgrbyname" command can be leveraged.
I am trying to convert this command to equivalent private-cli endpoint and below is the API endpoint that i have tested.
This API endpoint throws below error
{
"error": {
"message": "invalid operation",
"code": "3"
}
}
Can someone help get the right private-cli endpoint for me?
Thanks in advance