Get count of subscriber service state
This GET
operation gets a count of subscribers by service state (in service, out of service, or obsolete). If successful, you receive an HTTP response code of 200
. See HTTP response codes for other response codes.
If no query parameter is defined, a count of all subscriber service states is returned. |
GET /pcc/spcm/oam/subscribers/service-state?serviceState=<service-state>
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
accept: application/json
permissions: SPCM_OAM_READ_PERMISSION
Query parameters
Parameter | Type | Description |
---|---|---|
|
string |
The service state of the subscriber(s) from which you want a count returned. options
|
JSON response
The example below is a typical response for getting OUT_OF_SERVICE
subscribers. The response returns the <service-state>
with the value being an integer of the count of subscribers in that state.
{
"OUT_OF_SERVICE" : 42
}
SPCM O&M type descriptions
These are the JSON key-value pair descriptions for the SPCM OM API operations.
Field | Type | Description | ||
---|---|---|---|---|
|
string |
A list of MSISDN prefixes of subscribers to match. |
||
|
boolean |
A flag indicating if the inverse of the match should occur.
|
||
|
enum |
Sets the service state of the listed MSISDNs. options
|
HTTP response codes
These are the possible HTTP response codes for the SPCM OM service-state
operation.
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
subscriber not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. |
||||
|
failed processing (after passing validation). |
||||
|
internal error |
||||
|
request rejected due to overload |