You can update a specific automatic resource assignment rule.
Execution permission
Admin, Modify
Request line
PUT baseURL/v1/objects/AutoAssignFilters/{id}
Request body
The structure of the request body and the object attributes are 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.)
|
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.)
|
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.) |
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.)
|
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.)
|
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. |
400 |
Bad Request |
The format of the request body is invalid. |
401 |
Unauthorized |
No login privilege. |
403 |
Forbidden |
No update 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] PUT /Analytics/v1/objects/AutoAssignFilters/autoAssignFilter%23575a9bc3-7f10-455b-a43b-c6b3346dba54 Authorization: Basic c3lzdGVtOm1hbmFnZXI= Host: localhost:22015 Accept: application/json Content-Type: application/json [Request Body] { "instanceID":"autoAssignFilter#a9807e96-4110-466e-9f3e-2fbff9368100", "filterName":"GroupFilterNameForAutoAssignFilterPutTest", "filterType":"Group", "resourceType":"VM", "description":"Description 7 Consumer - Host", "groupID":"group#766db34f-e63c-4e10-b038-bf383748c058", "anyGroupFlag":false, "groupName":"GroupForAutoAssignFilterPutTest" } [Response Header] HTTP/1.1 200 OK Date: Thu, 11 Aug 2016 17:52:10 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#a9807e96-4110-466e-9f3e-2fbff9368100", "filterName" : "GroupFilterNameForAutoAssignFilterPutTest", "filterType" : "Group", "resourceType" : "VM", "priority" : 1, "description" : "Description 7 Consumer - Host", "groupID" : "group#766db34f-e63c-4e10-b038-bf383748c058", "groupName" : "GroupForAutoAssignFilterPutTest", "profileResourceType" : "INVALID_MEMBER" }