Add PCC profile to plan definition
This POST
operation adds a PCC profile to an existing plan definition by using the planDefinitionID
URL parameter. If successful, you receive an HTTP response code of 201
and a JSON
response containing the updated plan definition with the pcc profile information.
See HTTP response codes for other response codes. |
POST /pcc/spcm/planDefinitions/<planDefinitionId>/pccProfiles
+ JSON request payload
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
content-type: application/hal+JSON
accept: application/hal+JSON
permissions: SPCM_PLAN_DEFINITION_CREATE_PERMISSION
URL parameters
There is one mandatory parameter.
Parameter | Type | Description |
---|---|---|
|
integer |
A unique identifier for a plan definition which was assigned by the server upon creating the plan definition. |
JSON request payload
The following example shows only the mandatory attributes for adding a pcc profile to a plan definition. See PCC profile descriptions for all possible data types.
{
"alias": "DefaultProfile",
"qosProfileName": "QoS Default",
"serviceProfileName": "Service Default",
"networkProfileName": "NetworkProfile1",
"timeProfileName": "TimeProfile1",
"threshold": false,
"precedence": 1
}
JSON response
The following example shows the JSON
response for a request to add a pcc profile to a plan with a planDefinitionId
of 167
(shown as _links
URL in the response). An id
of 756
is auto-assigned to the pcc profile. This particular sample returns only some of the data types possible. You may see different key:value pairs if your request is slightly different.
See PCC profile descriptions for all possible data types. |
{
"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"
}
}
}
PCC profile type descriptions
Field | Type | Description | ||||
---|---|---|---|---|---|---|
|
integer |
The unique identifier for the PCC profile.
|
||||
|
string (255) |
The name of the PCC profile.
|
||||
|
boolean |
Indicates if a threshold applies to the pcc profile. If
|
||||
|
integer |
Sets the precedence of this prfile to other pcc profiles.
|
||||
|
string (255) |
The name of the Quality of Service (QoS) profile. |
||||
|
string (255) |
The name of the service profile. |
||||
|
string (255) |
The name of the network profile. |
||||
|
string (255) |
The name of the device profile. |
||||
|
string (255) |
The name of the time profile. |
||||
|
string (255) |
The name of the location profile. |
||||
|
string (255) |
The name of the charging profile. |
||||
|
string (255) |
The name of the subscription profile. |
||||
|
integer |
Specifies what percentage of the data reported for this profile is accounted for. For example, if it is
|
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success!
|
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
pcc profile 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 |