Get pcc profiles for a usage rule definition
This GET
operation retrieves all of the pcc profiles associated with a specific usage rule definition by passing the usageRuleDefinitionId
parameter in the URL. If successful, you receive an HTTP response code of 200
and a JSON
response containing the usage rule definition with its associated pcc profile(s).
See HTTP response codes for other response codes. |
GET /pcc/spcm/planDefinitions/<planDefinitionId>/usageRuleDefinitions/<usageRuleDefinitionId>/pccProfiles
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
accept: application/hal+JSON
permissions: SPCM_PLAN_DEFINITION_READ_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 response
The following example shows a JSON
response when retrieving a usage rule definition with the id
42
passed as usageRuleDefinitionId
in the URL request. In the response, you can see the two pcc profiles of 755
and 756
.
See pcc profile type descriptions for more on what to expect to see in the pcc profiles. |
{
"_links": {
"self": {
"href": "http://localhost:8080/spcm-rest-ws/pcc/spcm/planDefinitions/167/usageRuleDefinitions/42/pccProfiles"
}
},
"_embedded": {
"pccProfiles": [
{
"id": 755,
"alias": "DefaultProfile",
"qosProfileName": "QoS Default",
"serviceProfileName": "Service Default",
"networkProfileName": "NetworkProfile1",
"deviceProfileName": null,
"timeProfileName": "TimeProfile1",
"locationProfileName": "NorthMunster",
"chargingProfileName": null,
"subscriptionProfileName": null,
"threshold": false,
"meteringPercentage": null,
"precedence": 1,
"_links": {
"self": {
"href": "http://localhost:8080/spcm-rest-ws/pcc/spcm/planDefinitions/167/pccProfiles/755"
}
}
},
{
"id": 756,
"alias": "DefaultProfile",
"qosProfileName": "QoS Default",
"serviceProfileName": "Service Default",
"networkProfileName": "NetworkProfile1",
"deviceProfileName": null,
"timeProfileName": "TimeProfile1",
"locationProfileName": null,
"chargingProfileName": null,
"subscriptionProfileName": null,
"threshold": false,
"meteringPercentage": null,
"precedence": 1,
"_links": {
"self": {
"href": "http://localhost:8080/spcm-rest-ws/pcc/spcm/planDefinitions/167/pccProfiles/756"
}
}
}
]
}
}
Usage rule definition type descriptions
Field | Type | Description | ||
---|---|---|---|---|
|
integer |
The unique identifier for the usage rule. This is assigned by the server upon creation.
|
||
|
string |
The name of the usage rule.
|
||
|
integer |
The threshold (in bytes) at which the rule is violated.
|
||
|
string |
A summary of the usage rule definition. |
||
|
string |
The maximum period of time that which a subscriber can deactivate a usage rule. Format:
|
||
|
enum |
Specifies the update type. possible values
|
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 |
||||
|
request rejected due to overload |