1.8.7 Assigning a user profile
This section describes the format of the request to be used for assigning resources (virtual machines, hosts, volumes) to a user profile and the contents to be specified in the request body.
Procedure
-
Issue a request in the following format:
POST http://host:port/Analytics/version/objects/UserThresholdProfiles/id/actions/updateTargetResource
The objects to be specified as members of parameters in the request body are as follows:
Member
Whether the change is required
Description
instanceID
Required
Specify the ID of the monitoring target to which the user profile is to be assigned as a list. You must include the IDs of monitoring targets that are already assigned.
Example specification when applying the user profile only to the monitoring target for instanceID=50:
"parameters" : [ { "instanceID" : 50 } ]
Example specification when adding the monitoring target for instance=51 to the user profile that is already assigned to the monitoring target for instanceID=50 (link and specify all IDs that are to be assigned):
"parameters" : [ { "instanceID" : 50 } , { "instanceID" : 51 } ]
Example specification when canceling assignment from all monitoring targets (use an empty value for parameters):
"parameters" : [ ]
The IDs of the monitoring target that can be specified as member of parameters that can be acquired from the API are indicated in the following references:
Resource type of the profile
Reference
Virtual machine
2.17.1 Obtaining Virtual Machine List Windows or Linux/UNIX
2.18.1 Obtaining Host List Volume
2.23.1 Obtaining Volume List