Querying a Group
Function
This API is used to query groups, and query groups under applications, sub-applications, and components to manage resources in a unified manner. If there is no component under the application, no component information is displayed.
URI
GET /v1/groups
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id_list |
No |
Array of strings |
Definition Group ID list consisting of group IDs. Constraints N/A Range N/A Default value N/A |
|
component_id |
No |
String |
Definition Component ID. Constraints N/A Range ID of the component selected during group creation. The value contains 24 characters. Default value N/A |
|
application_id |
No |
String |
Definition Application ID. Constraints N/A Range ID of the application for the component corresponding to the group. There is a clear hierarchy between them. Default value N/A |
|
name_like |
No |
String |
Definition Group name. Fuzzy match is supported. Constraints N/A Range The value is a string. It contains 1 to 50 characters. Default value N/A |
|
code |
No |
String |
Definition Group code. Constraints N/A Range The value is a string. It contains 3 to 50 characters. Default value N/A |
|
marker |
No |
String |
Definition It is used for pagination query. Constraints N/A Range ID of the last record in the previous query. Default value N/A |
|
limit |
Yes |
Integer |
Definition Number of items displayed on each page when the pagination query is performed. Constraints N/A Range The value can be customized. The value range is 1 to 500. Default value N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of data objects |
Definition Group ID. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition UUID allocated by COC-CMDB. Range N/A |
|
name |
String |
Definition Group name. Range The value can contain 3 to 50 characters, including letters, digits, hyphens (-), and underscores (_). |
|
vendor |
String |
Definition Vendor. Range
|
|
code |
String |
Definition Group code. Range N/A |
|
domain_id |
String |
Definition Tenant ID. Range N/A |
|
region_id |
String |
Definition Region ID. Range N/A |
|
component_id |
String |
Definition Component ID. Range N/A |
|
application_id |
String |
Definition Application ID. Range N/A |
|
ep_id |
String |
Definition Enterprise project ID. Range Select a project ID that is available inEnterprise Management. |
|
sync_mode |
String |
Definition Resource synchronization method. Range
|
|
rule_tags |
String |
Definition Tag that is associated with resources. Range N/A |
|
relation_configurations |
Array of GroupRelationConfiguration objects |
Definition Group configuration information. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Definition Configuration type. Configure the application, component, and environment of the APM service corresponding to the group. APM service performance information can be obtained during fault diagnosis. Constraints N/A Range
Default value N/A |
|
parameters |
Map<String,String> |
Definition Configuration parameters. Constraints N/A Range APM configuration parameter app_id->business_id->env_id. The value contains multiple fields. The maximum length is for reference only. Default value N/A |
Example Requests
Query the component information of an application or sub-application.
GET https://{Endpoint}/v1/groups
Example Responses
Status code: 200
The group information is queried.
{
"data" : [ {
"id" : "64898bf60224b9730ccb577f",
"name" : "testgroup",
"vendor" : "RMS",
"code" : "testgroup",
"domain_id" : "dc2d76541f754d68a4c8d150262d92c2",
"region_id" : "string",
"component_id" : "64898bf60224b9730ccb577f",
"application_id" : "64898bf60224b9730ccb577f",
"ep_id" : "0",
"sync_mode" : "MANUAL",
"rule_tags" : null,
"relation_configurations" : [ { } ]
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The group information is queried. |
Error Codes
See Error Codes.
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