Manage2 API Function - Display Groups
Last modified: November 30, 2022
Description
This function returns a Manage2 account’s groups.
Examples
Browser-based calls
Note:
To view expanded returns, add the
&expand
parameter to the end of each browser-based call.
XML
https://manage2.cpanel.net/XMLgroupInfo.cgi
JSON
https://manage2.cpanel.net/XMLgroupInfo.cgi?output=json
YAML
https://manage2.cpanel.net/XMLgroupInfo.cgi?output=yaml
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Output (JSON)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Output (YAML)
Without the expand
parameter:
|
|
With the expand
parameter:
|
|
Parameters
This function accepts the following parameters:
Return | Type | Description | Example |
---|---|---|---|
expand |
string | Displays the group return. This parameter does not accept values. |
expand |
Returns
This function returns the following values:
Return | Type | Description | Example |
---|---|---|---|
reason |
string | Information about the group display operation. | OK |
status |
Boolean | Whether the function succeeded:
|
1 |
version |
numeric | Internal information that the Manage2 API uses to identify the version. | 0.4 |
groups |
object | A list of the account’s group names and group IDs.
Note:
This return only appears when you do not use the
expand parameter.
|
|
group |
array of objects | An array of objects containing expanded group information.
Note:
This return only appears when you use the
expand parameter.
|
|
groupid |
string | The group’s ID number. The function returns this value in the groups object. |
G294658 |
maingroup |
Boolean | Default group to which new licenses are added unless a group is explicitly defined. Whether the maingroup is true:
|
1 |
country |
string | The country of the datacenter in which licenses in the group are hosted. | US |
stateprov |
string | The state or province of the datacenter in which licenses in the group are hosted. | TX |
city |
string | The city name the datacenter in which licenses in the group are hosted. | Houston |
postcode |
string | The post code of the address of the datacenter in which licenses in the group are hosted. | 77092 |
addr1 |
string | The street number and street name of the address of the datacenter in which licenses in the group are hosted. | 1234 Virtual St |
addr2 |
string | The suite or apartment number of the address of the datacenter in which licenses in the group are hosted, if applicable. | 716 |
name |
string | The group’s name. The function returns this value in the groups object. |
testgroupone |