Get all service policies
Returns a list of all service policies available to the enterprise.
Query Parameters
- domainId string
Possible values: Value must match regular expression
^([A-Za-z0-9]{8}-){0,6}[A-Za-z0-9]{8}$
Domain id for a service policy to filter on. If omitted, the domain to which the user belongs is used as default.
- key string
Name of
key
in a metadata key-value pair to filter on. Case insensitive exact match is used for thekey
query parameter meaning that only keys that are identical to thekey
query parameter are matched. - value string
Name of the
value
in the metadata key-value pair to filter on. Case insensitive wildcard-based match is used for thevalue
query parameter meaning that if thevalue
query parameter isquery
, all results matching*query*
will be returned. Thekey
parameter is mandatory if thevalue
parameter is included in the request.
- 200
- 400
- 401
- 403
- 500
List of service policies.
- application/json
- Schema
- Example (from schema)
Schema
items object[]
Array containing service policies
attributes object
id stringPossible values: Value must match regular expression
^22[A-HJ-NP-Z2-9]{6}$
Identifies the service policy.
domainId stringPossible values: Value must match regular expression
^([A-Za-z0-9]{8}-){0,6}[A-Za-z0-9]{8}$
Domain the resource belongs to. Used to determine which users have access to the resource.
name stringPossible values:
non-empty
and<= 256 characters
Name of the service policy.
type stringPossible values: [
IOTA_SERVICE_POLICY
,ARQIA_SERVICE_POLICY
,THINGSPACE_SERVICE_POLICY
]Specifies the underlying service policy type in the Connectivity Management Platform (CMP).
metadata object
All metadata key-value pairs associated with this service policy. This object contains dynamic properties since metadata has a customized definition process.
relationships object
cmpServicePolicy object
anyOf- MOD1
- MOD2
url stringPossible values:
non-empty
and<= 256 characters
url stringPossible values:
non-empty
and<= 256 characters
{
"items": [
{
"attributes": {
"id": "22A8BC76",
"domainId": "a1ce25s2-c23edcs9",
"name": "5MB Europe",
"type": "IOTA_SERVICE_POLICY",
"metadata": {
"Info": "LTE allowed but no voice"
}
},
"relationships": {
"cmpServicePolicy": {
"url": "/iot-connect/service-policies/v1/iota/iota_eu/E1245_SP_02"
}
}
}
]
}
BadRequest
Response Headers
Access-Control-Allow-Origin string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
- application/json
- Schema
- Example (from schema)
Schema
- name string
- message string
errors object[]
message stringerrorCode stringpath stringOptional path, usually used to describe which incoming parameters are not valid.
{
"name": "string",
"message": "string",
"errors": [
{
"message": "string",
"errorCode": "string",
"path": "string"
}
]
}
Unauthorized. Your token is not valid.
Response Headers
Access-Control-Allow-Origin string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
- application/json
- Schema
- Example (from schema)
Schema
- name string
- message string
errors object[]
message stringerrorCode stringpath stringOptional path, usually used to describe which incoming parameters are not valid.
{
"name": "string",
"message": "string",
"errors": [
{
"message": "string",
"errorCode": "string",
"path": "string"
}
]
}
Forbidden. You are not allowed to access the requested resource.
Response Headers
Access-Control-Allow-Origin string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
- application/json
- Schema
- Example (from schema)
Schema
- name string
- message string
errors object[]
message stringerrorCode stringpath stringOptional path, usually used to describe which incoming parameters are not valid.
{
"name": "string",
"message": "string",
"errors": [
{
"message": "string",
"errorCode": "string",
"path": "string"
}
]
}
Internal Server Error
Response Headers
Access-Control-Allow-Origin string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
- application/json
- Schema
- Example (from schema)
Schema
- name string
- message string
errors object[]
message stringerrorCode stringpath stringOptional path, usually used to describe which incoming parameters are not valid.
{
"name": "string",
"message": "string",
"errors": [
{
"message": "string",
"errorCode": "string",
"path": "string"
}
]
}