Getting specific automatic resource assignment rule 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 automatic resource assignment rule.

Execution permission

Admin, Modify

Request line

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

Request body

Not applicable.

Response body

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

AutoAssignFilter

{
        "instanceID":"...",
        "filterName":"...",
        "filterType":"...",
        "resourceType":"...",
        "priority":"...",
        "description":"...",
        "groupID":"...",
        "groupName":"...",
        "userResourceThresholdID":"...",
        "userResourceThresholdName":"...",
        "profileResourceType":"..."
}

AutoAssignFilter (Type: AutoAssignFilter)

Attribute

Type

Description

instanceID

string

ID of the assignment rule

filterName

string

Name of the assignment rule

filterType

enum

Type of the assignment rule

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

  • UserResourceThreshold
  • Group

resourceType

enum

Type of resources to which the assignment rule is to be applied

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

  • VM
  • Volume
  • Host

priority

int

Priority of the assignment rule

description

string

Description of the assignment rule

groupID

string

ID of the assignment-destination consumer. This item is set only if the rule type is "Group".

groupName

string

Name of the assignment-destination consumer. This item is set only if the rule type is "Group".

userResourceThresholdID

string

ID of the threshold profile to be assigned to the resource. This item is set only if the rule type is "UserResourceThreshold".

userResourceThresholdName

string

Name of the threshold profile to be assigned to the resource. This item is set only if the rule type is "UserResourceThreshold".

profileResourceType

enum

Resource type of threshold profile.

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

Status codes

Status code

Reason phrase

Description

200

OK

Success.

401

Unauthorized

No login 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/AutoAssignFilters/autoAssignFilter%238b14d6a4-0802-4360-9164-2192324ae657
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
Host: localhost:22015
Accept: application/json
Content-Type: application/json

[Response Header]
HTTP/1.1 200 OK
Date: Thu, 11 Aug 2016 17:51:54 GMT
Server: Cosminexus HTTP Server
Cache-Control: no-cache
WWW-Authenticate: HSSO 8113b75377dac59b7c48ee2b947b20d3bbc11f_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" : "autoAssignFilter#8b14d6a4-0802-4360-9164-2192324ae657",
  "filterName" : "filterName-20160812025153377",
  "filterType" : "Group",
  "resourceType" : "VM",
  "priority" : 1,
  "description" : "Description 7 Consumer - Host",
  "groupID" : "group#bd40cdaa-5b4f-49fb-83f6-6e5393150b06",
  "groupName" : "GroupAutoAssignFilterGetId",
  "profileResourceType" : "INVALID_MEMBER"
}