Resource Definition to Configure APN on iOS Devices
A sample resource definition, together with details on the information that is added in the JSON are as follows:
Sample definition JSON to configure APN
The sample JSON is as follows:
{ "operation": { "apnConfigurations": [ { "apn": "internet.wso2-mobile", "username": "apnConfig", "password": "$apn1234", "proxyServer": "22.231.113.64", "proxyPort": 8080 } ] }, "deviceIDs": [ "2be702beaaf4ad34fc9e7f8da2b6b808c453fa72b", "2ec33430ad456713c633de75b2219376bac45de56" ] }
Property definitions
All the properties that correspond to configuring APN are explained as follows:
Property | Description | Data Type | Example | ||
---|---|---|---|---|---|
operation | The attributes required to carry out the operation of configuring an APN are defined here. | Yes | N/A | operation | - |
| The Device ID. This field is not case sensitive. | Yes | N/A | String | 2be702beaaf4ad34fc9e7f8da2b6b808c453fa72b |
Operation
Property | Description | Data Type | Example | ||
---|---|---|---|---|---|
| The APN configurations are defined here. | Yes | N/A | apnConfigurations | - |
apnConfigurations
Property | Description | Data Type | Example | ||
---|---|---|---|---|---|
apn | Specifies the Access Point Name. | Yes | N/A | String | internet.wso2-mobile |
| This string specifies the user name for this APN. If it is missing, the device prompts for it during profile installation. | Yes | N/A | String | apnConfig |
| This data represents the password for the user for this APN. For obfuscation purposes, the password is encoded. If it is missing from the payload, the device prompts for the password during profile installation. | No | N/A | Data | $apn1234 |
| The IP address or URL of the APN proxy. | No | N/A | String | 22.231.113.64 |
| The port number of the APN proxy. | No | N/A | Number | 8080 |