Getting specific consumer information

Ops Center Analyzer REST API Reference Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ANA003-18

You can obtain information about a specific consumer, such as the consumer name and grade.

Execution permission

Admin, Modify

Request line

GET baseURL/v1/objects/Groups/{id}

Request body

Not applicable.

Response body

The structure of the response body and the object attributes is as follows:

Group

{
        "instanceID":"...",
        "name":"...",
        "status":"...",
        "gradeKey":"...",
        "gradeName":"...",
        "gradeDisplayOrder":"...",
        "description":"...",
        "templateCreatorType":"...",
        "numOfVolumes":"...",
        "numOfVMs":"...",
        "numOfHosts":"...",
        "volumeAutoAssignFilters":["...", ...],
        "vmAutoAssignFilters":["...", ...],
        "hostAutoAssignFilters":["...", ...]
}

Group (Type: Group)

Attribute

Type

Description

instanceID

string

ID of the consumer.

name

string

Name of the consumer.

status

enum

Status of the consumer.

(For details about the valid values, see the table NodeStatusType in List of enumerators.)

  • Normal
  • Warning
  • Critical
  • Unknown

gradeKey

string

ID of the grade.

gradeName

string

Name of the grade.

gradeDisplayOrder

int

Priority of the grade.

description

string

Description.

templateCreatorType

enum

Type indicating whether the consumer can perform editing. The consumer can perform editing only if the type is "User".

(For details about the valid values, see the table TemplateCreatorType in List of enumerators.)

  • User
  • Default

numOfVolumes

int

Number of volumes assigned to the consumer.

numOfVMs

int

Number of virtual machines assigned to the consumer.

numOfHosts

int

Number of hosts assigned to the consumer.

volumeAutoAssignFilters

string[]

Assignment rules of volumes that can be assigned to this consumer.

vmAutoAssignFilters

string[]

Assignment rules of virtual machines that can be assigned to this consumer.

hostAutoAssignFilters

string[]

Assignment rules of hosts that can be assigned to this consumer.

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.

503

Service Unavailable

Analyzer detail view server communication error.

Example code

[Request Header]
GET /Analytics/v1/objects/Groups/group%2380d3b2fd-3199-429b-803e-9c7d4c20fe78
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
Host: localhost:22015
Accept: application/json
Content-Type: application/json

[Response Header]
HTTP/1.1 200 OK
Date: Wed, 20 Jul 2016 02:10:49 GMT
Server: Cosminexus HTTP Server
Cache-Control: no-cache
WWW-Authenticate: HSSO 33659a74fcee4358dc272b34eca6ded1bf1131ec_YXZvNFIMehp3UB4jbmVyPGUgT3Q=_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" : "group#80d3b2fd-3199-429b-803e-9c7d4c20fe78",
  "name" : "Group-20160720111049086",
  "status" : "Unknown",
  "gradeKey" : "10",
  "gradeName" : "Platinum",
  "gradeDisplayOrder" : 10,
  "description" : "groupxxxxxxxxx",
  "templateCreatorType" : "User",
  "numOfVolumes" : 0,
  "numOfVMs" : 0,
  "numOfHosts" : 0,
  "volumeAutoAssignFilters" : [ ],
  "vmAutoAssignFilters" : [ ],
  "hostAutoAssignFilters" : [ ]
}