Set action for a usage rule definition
This PUT
operation sets an action for a usage rule definition by passing the usageRuleDefinitionId
in the URL and a JSON
payload containing the action id in an array. If successful, you receive an HTTP response code of 201
.
Setting an action for a usage rule means when a threshold or some other trigger occurs, this is the action that takes place. |
See HTTP response codes for other response codes. |
PUT /pcc/spcm/planDefinitions/<planDefinitionId>/usageRuleDefinitions/<usageRuleDefinitionId>/action
+ JSON payload
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
content-type: application/JSON
permissions: SPCM_PLAN_DEFINITION_CREATE_PERMISSION
URL parameters
There are two mandatory parameters.
Parameter | Type | Description |
---|---|---|
|
integer |
A unique identifier for a plan definition which was assigned by the server upon creating the plan definition. |
|
integer |
The id of the usage rule definition. |
JSON payload
You need to specify the action id (as an array in the JSON
payload) that you are setting for the usage rule definition.
{
[5]
}
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success!
|
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
usage rule definition not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
|
||||
|
internal error example
|
||||
|
request rejected due to overload |