2.10.2 Getting specific consumer information
This API acquires information about the specified consumer.
Execution permission
Admin, Modify
API version
v1
Request format
GET http[s]://host:port/Analytics/version/objects/Groups/{id}
Request body
Not applicable.
Response body
The structure of the response body and the object attributes are as follows:{ "instanceID":"...", "name":"...", "status":"...", "gradeKey":"...", "gradeName":"...", "gradeDisplayOrder":"...", "description":"...", "urls":["...", ...], "urlDisplayNames":["...", ...], "templateCreatorType":"...", "vmAutoAssignment":"...", "applicationAssignFollow":"...", "numOfVolumes":"...", "numOfVMs":"...", "numOfHosts":"...", "numOfHypervisors":"...", "numOfApplications":"...", "numOfPods":"...", "numOfInstances":"...", "vmAutoAssignFilters":["...", ...], "hostAutoAssignFilters":["...", ...], "podAutoAssignFilters":["...", ...], "instanceAutoAssignFilters":["...", ...] }
Group (Type: Group)
Attribute |
Type |
Description |
---|---|---|
instanceID |
long |
ID for identifying instances |
name |
string |
Consumer name. Use 128 or fewer characters. |
status |
enum |
Status of the consumer. (For details about the specifiable values, see the table NodeStatusType in List of enumerators.) The specifiable values are as follows:
|
gradeKey |
string |
ID for identifying grades |
gradeName |
string |
Grade name |
gradeDisplayOrder |
integer |
Priority of the grade |
description |
string |
Description of the consumer. Use 1000 or fewer characters. |
urls |
string[] |
URL |
urlDisplayNames |
string[] |
Character string displayed for the URL |
templateCreatorType |
enum |
Change type of the consumer. (For details about the specifiable values, see the table TemplateCreatorType in List of enumerators.) The specifiable values are as follows:
|
vmAutoAssignment |
boolean |
Set true if you assign a virtual machine under the hypervisor that belong to this Group automatically |
applicationAssignFollow |
boolean |
Set true if you assign a application under the resource that belong to this Group automatically |
numOfVolumes |
integer |
Number of volumes to which the consumer is assigned. |
numOfVMs |
integer |
Number of virtual machines to which the consumer is assigned. |
numOfHosts |
integer |
Number of hosts to which the consumer is assigned. |
numOfHypervisors |
integer |
Number of hypervisors to which the consumer is assigned. |
numOfApplications |
integer |
Number of applications to which the consumer is assigned. |
numOfPods |
integer |
Number of pods to which the consumer is assigned. |
numOfInstances |
integer |
Number of instances to which the consumer is assigned. |
vmAutoAssignFilters |
string[] |
Name of the automatic assignment rule set for the virtual machines |
hostAutoAssignFilters |
string[] |
Name of the automatic assignment rule set for the hosts |
podAutoAssignFilters |
string[] |
Name of the automatic assignment rule set for the pods |
instanceAutoAssignFilters |
string[] |
Name of the automatic assignment rule set for the instances |
Status codes
Status code |
Reason phrase |
Description |
---|---|---|
200 |
OK |
Success. |
401 |
Unauthorized |
No login privilege. |
403 |
Forbidden |
No reference privilege. |
404 |
Not Found |
The resource was not found. |
412 |
Precondition Failed |
The server is not available. |
500 |
Internal Server Error |
Server processing error. |
Example code
[Request Header] GET /Analytics/v1/objects/Groups/160 HTTP/1.1 Host: JP1OAServer:22015 User-Agent: curl/7.63.0 Content-Type: application/json Accept: application/json Authorization: Basic c3lzdGVtOm1hbmFnZXI= Accept-Language: ja [Response Header] HTTP/1.1 200 OK Date: Fri, 06 Sep 2019 09:38:19 GMT Server: Cosminexus HTTP Server Cache-Control: no-cache WWW-Authenticate: HSSO 55e8e56fd349d5f67752988c44efb61dd5684ca6_ZAlDSFUHGHp9UB8WcRQLdA==_V0810 X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Transfer-Encoding: chunked Content-Type: application/json [Response Body] { "instanceID" : 160, "name" : "Hitachi Cloud for JP1", "status" : "Normal", "gradeKey" : "0", "gradeName" : "Platinum", "gradeDisplayOrder" : 0, "description" : "Company: Hitachi\nSystem: Private Cloud for JP1 \nTel: xxx-xxx-xxx-xxx-xxx\nAddress:xxxx-xxx-xxx-xxx\nContact Person: jp1 support center\n", "urls" : [ "http://test" ], "urlDisplayNames" : [ "support senter" ], "templateCreatorType" : "User", "vmAutoAssignment" : true, "applicationAssignFollow" : true, "numOfVolumes" : 8, "numOfVMs" : 273, "numOfHosts" : 0, "numOfHypervisors" : 1, "numOfApplications" : 2, "numOfPods" : 0, "volumeAutoAssignFilters" : [ ], "vmAutoAssignFilters" : [ ], "hostAutoAssignFilters" : [ ], "podAutoAssignFilters": [ ] }