Skip to content

Managing Feature Restrictions

Get Feature Restriction Policy

Get the feature restriction (or vector) policy for an application.

Get Feature Restriction Policy Request

URL: https://<mobile services host>/Admin/FeatureVectorPolicy/<appid>

HTTP Method: GET

Request Parameters:

Parameter Type Description
appid Mandatory ID that uniquely identifies an application.

Request Header Example:

Content-Type: application/json
Authorization: Basic <admin credentials>

Request Body Example:

GET https://<host:port>/Admin/FeatureVectorPolicy/<appid>/

Get Feature Restriction Policy Response

[{
  "applicationID": "<appid>",
  "appVersion": "1.0",
  "name": "Barcode",
  "displayName": "Barcode Scanner",
  "id": "org.apache.cordova.barcode",
  "version": "3.0",
  "description": "Plugin to scan product barcode",
  "jsModule": "navigator.Barcode",
  "whitelist": "*",
  "lastUpdated": 1408688518472
 },
 {
  "applicationID": "<appid>",
  "appVersion": "1.0",
  "name": "Camera",
  "displayName": "Camera",
  "id": "org.apache.cordova.camera",
  "version": "3.1",
  "description": "Camera feature to click or read photos from the device",
  "jsModule": "navigator.Camera",
  "whitelist": "*",
  "lastUpdated": 1408688518472
 }
]

Update Feature Restriction Policy

Update the feature restriction (or vector) policy for an application.

Update Feature Restriction Policy Request

URL: https://<mobile services host>/mobileservices/Storage/v1/admin/FeatureVectorPolicy/<appid>

HTTP Method: PUT

Request Parameters:

Parameter Type Description
appid Mandatory ID that uniquely identifies an application.

Request Header Example:

Content-Type: application/json
Authorization: Basic <admin credentials>

Update Feature Restriction Policy Response

Response example:

[{
 "applicationID": "<appid>",
 "appVersion": "1.0",
 "name": "accelerometer",
 "displayName": "accelerometer",
 "id": "org.apache.cordova.accelerometer",
 "version": "3.0",
 "description": "Plugin for accelerometer",
 "jsModule": "navigator.accelerometer",
 "whitelist": "*"
}]

Remove Feature Restriction Policy

Remove a feature (or vector) restriction policy from an application.

Remove Feature Restriction Policy Request

URL: https://<mobile services host>/mobileservices/Storage/v1/admin/FeatureVectorPolicy/<appid>

HTTP Method: DELETE

Request Parameters:

Parameter Type Description
appid Mandatory ID that uniquely identifies an application.

Request Header Example:

Content-Type: application/json
Authorization: Basic <admin credentials>

Request Body Example:

DELETE https://<host:port>/Admin/FeatureVectorPolicy/

Remove Feature Restriction Policy Response

[{
 "applicationID": "<appid>",
 "appVersion": "1.0",
 "name": "accelerometer",
 "displayName": "accelerometer",
 "id": "org.apache.cordova.accelerometer",
 "version": "3.0",
 "description": "Plugin for accelerometer",
 "jsModule": "navigator.accelerometer",
 "whitelist": "*"
}]

Last update: August 12, 2020