Policy profile operations
- Endpoint
-
/pcc/pcrf/policy-profiles
API endpoints related to obtaining information about policy profiles. This includes creating, retrieving, updating, and deleting profiles.
Create policy profile
Creates a new policy profile.
post /pcc/pcrf/policy-profiles
Request
Below is a request example. See the descriptions below for more details on the fields.
{
"id" : 4711,
"name" : "BaseProfile",
"description" : "a base profile",
"status" : "active",
"serviceProfileId" : 111,
"qosProfileId" : 222,
"chargingProfileId" : 333,
"deviceProfileId" : 444,
"locationProfileId" : 555,
"timeProfileId" : 666,
"networkProfileId" : 777,
"created" : "2020-06-07T13:10:00Z",
"updated" : "2020-06-08T14:20:00Z"
}
Retrieve policy profile
Retrieves an existing policy profile’s information. Specify an ID to retrieve a specific profile or retrieve all with no ID specified. Use query parameters to paginate the response when retrieving all. For example, /pcc/pcrf/policy-profiles?page=0&size=100.
get /pcc/pcrf/policy-profiles/id
Update policy profile
Updates a policy profile.
put /pcc/pcrf/policy-profiles/id
Request
Below is a request example. See the descriptions below for more details on the fields.
{
"id" : 4711,
"name" : "BaseProfile",
"description" : "a base profile",
"status" : "active",
"serviceProfileId" : 111,
"qosProfileId" : 222,
"chargingProfileId" : 333,
"deviceProfileId" : 444,
"locationProfileId" : 555,
"timeProfileId" : 666,
"networkProfileId" : 777,
"created" : "2020-06-07T13:10:00Z",
"updated" : "2020-06-08T14:20:00Z"
}
PCRF API JSON descriptions
Field | Description | ||
---|---|---|---|
|
The ID of the Policy profile.
|
||
|
The name of the Policy profile.
|
||
|
A description of the Policy profile. |
||
|
The Policy profile’s status.
|
||
|
The service profile ID. |
||
|
The QoS profile ID. |
||
|
The charging profile profile ID. |
||
|
The device profile ID. |
||
|
The location profile ID. |
||
|
The time profile ID. |
||
|
The network profile ID. |
||
|
The time the Policy profile was created in ISO format. |
||
|
The time the Policy profile was updated in ISO format. |
PCRF API response codes
If you receive an HTTP status code of 400
, your request does not confirm to the API specification. Check the endpoint is correct and your header information is set to use JSON
.
If you receive an HTTP status code of 422
, there is a processing error. More information is provided in the codes below.
Code | Description |
---|---|
|
The name is not unique.
|
|
Unknown service profile.
|
|
Unknown QoS profile.
|
|
Unknown charging profile.
|
|
Unknown status.
|
|
Unknown device profile. |
|
Unknown location profile. |
|
Unknown time profile. |
|
Unknown network profile. |