{"info":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"9980660","collectionId":"801b71d6-a988-4309-a42c-a90fc1acfb3b","publishedId":"2s9YR9XByr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-18T08:41:13.000Z"},"item":[{"name":"Create IPSec Connector","item":[{"name":"Create IPSec connection","id":"c7bca63c-5308-468d-bd83-5ed4159e5d98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"local_endpoint_id\": \"<local endpoint id>\",\n  \"psk\": \"<Pre-Shared-Key>\",\n  \"endpoint\": \"{{customer IPSec endpoint, IP or FQDN}}\",\n  \"proposals\": \"<proposal>\",\n  \"use_ip\": <true if you ID by IP, false if you ID by FQDN>\n}","options":{"raw":{"language":"json"}}},"url":"https://api.onomondo.com/ipsec","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}},"urlObject":{"protocol":"https","path":["ipsec"],"host":["api","onomondo","com"],"query":[],"variable":[]}},"response":[{"id":"c21d99ee-54ff-4306-bb7a-13f1ea004c03","name":"Create IPSec connection","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"local_endpoint_id\": \"<local endpoint id>\",\n  \"psk\": \"<Pre-Shared-Key>\",\n  \"endpoint\": \"{{customer IPSec endpoint, IP or FQDN}}\",\n  \"proposals\": \"<proposal>\",\n  \"use_ip\": <true if you ID by IP, false if you ID by FQDN>\n}","options":{"raw":{"language":"json"}}},"url":"https://api.onomondo.com/ipsec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<id of remote endpoint>\",\n  \"ipsec_local_endpoint_id\": \"<local endpoint id>\",\n  \"psk\": \"<Pre-Shared-Key>\",\n  \"organization_id\": 21441,\n  \"endpoint\": \"{{customer IPSec endpoint, IP or FQDN}}\",\n  \"proposals\": \"<proposal>\",\n  \"use_ip\": <true if you ID by IP, false if you ID by FQDN>\n}"}],"_postman_id":"c7bca63c-5308-468d-bd83-5ed4159e5d98"},{"name":"Create IPSec Connector","id":"41fb23f9-a4a7-430b-af71-277d0782b4ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"<name you give the connector>\",\n  \"tags\": [],\n  \"passthrough\": [],\n  \"type\": \"ipsec\",\n  \"options\": {\n    \"remote_endpoints\": [\n      \"<remote_endpoint_id1>\",\n      \"<remote_endpoint_id2>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.onomondo.com/connectors","description":"<p><code>remote_endpoints</code> field in <code>options</code> allows you to set multiple end points to a connector. Multiple end points will allow you to create redundancy in your connection. Packets from devices with this connector will be distributed between end points.</p>\n<p><code>passthrough</code> does not work on IPSec Connectors and will need to be managed within your network.</p>\n","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}},"urlObject":{"protocol":"https","path":["connectors"],"host":["api","onomondo","com"],"query":[],"variable":[]}},"response":[{"id":"1847ea6d-0828-4218-9ec2-fc1e0a4aceb7","name":"Create IPSec Connector","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"<name you give the connector>\",\n  \"tags\": [],\n  \"passthrough\": [],\n  \"type\": \"ipsec\",\n  \"options\": {\n    \"remote_endpoints\": [\n      \"<remote_endpoint_id1>\",\n      \"<remote_endpoint_id2>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.onomondo.com/connectors"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"name\": \"<name you give the connector>\",\n  \"tags\": [],\n  \"passthrough\": [],\n  \"type\": \"ipsec\",\n  \"options\": {\n    \"remote_endpoints\": [\n      \"<remote_endpoint_id1>\",\n      \"<remote_endpoint_id2>\"\n    ]\n  }\n}"}],"_postman_id":"41fb23f9-a4a7-430b-af71-277d0782b4ad"},{"name":"Get Local and remote endpoint config","id":"fadb37e9-645f-4799-ba2f-3f942c58dd72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.onomondo.com/ipsec","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}},"urlObject":{"protocol":"https","path":["ipsec"],"host":["api","onomondo","com"],"query":[],"variable":[]}},"response":[{"id":"d650ec14-53a2-4c07-b364-5867ba9c5726","name":"Get Local and remote endpoint config","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":"https://api.onomondo.com/ipsec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 09:42:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"342"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=BKiXttXhMHnV1WggSe7fPpIaAkO0nt87wgt9gYFWA7K/L2a2QeZobcC0TJ62IjtMseHlez27EgM8XKheZElfmhqOgyISM87kizcNYGv4PJq5eQjsIsBqp0UtpfvP; Expires=Fri, 16 Sep 2022 09:42:12 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=BKiXttXhMHnV1WggSe7fPpIaAkO0nt87wgt9gYFWA7K/L2a2QeZobcC0TJ62IjtMseHlez27EgM8XKheZElfmhqOgyISM87kizcNYGv4PJq5eQjsIsBqp0UtpfvP; Expires=Fri, 16 Sep 2022 09:42:12 GMT; Path=/; SameSite=None; Secure"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"599"},{"key":"X-RateLimit-Reset","value":"1662716593"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"156-c8Llq2k7jfrf5yT1+zY2qz8xeBM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"local_endpoints\": [\n        {\n            \"id\": \"bf7fa8a9-48b3-4535-92f7-367167d0b73b\",\n            \"region\": \"aws-eu-central-1\",\n            \"ip\": \"3.66.70.29\",\n            \"fqdn\": \"endpoint01.eu-central-1.aws.ipsec.onomondo.com\"\n        },\n        {\n            \"id\": \"4e319a05-4ad7-4fa4-b720-1b8c8b33e004\",\n            \"region\": \"aws-eu-central-1\",\n            \"ip\": \"35.158.204.65\",\n            \"fqdn\": \"endpoint02.eu-central-1.aws.ipsec.onomondo.com\"\n        }\n    ],\n    \"remote_endpoints\": []\n}"},{"id":"17077d76-0435-475f-9f44-875f183663ee","name":"Get Local and remote endpoint config with IPSec endpoint","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":"https://api.onomondo.com/ipsec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 09:42:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"342"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=BKiXttXhMHnV1WggSe7fPpIaAkO0nt87wgt9gYFWA7K/L2a2QeZobcC0TJ62IjtMseHlez27EgM8XKheZElfmhqOgyISM87kizcNYGv4PJq5eQjsIsBqp0UtpfvP; Expires=Fri, 16 Sep 2022 09:42:12 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=BKiXttXhMHnV1WggSe7fPpIaAkO0nt87wgt9gYFWA7K/L2a2QeZobcC0TJ62IjtMseHlez27EgM8XKheZElfmhqOgyISM87kizcNYGv4PJq5eQjsIsBqp0UtpfvP; Expires=Fri, 16 Sep 2022 09:42:12 GMT; Path=/; SameSite=None; Secure"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"599"},{"key":"X-RateLimit-Reset","value":"1662716593"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"156-c8Llq2k7jfrf5yT1+zY2qz8xeBM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"local_endpoints\": [\n        {\n            \"id\": \"bf7fa8a9-48b3-4535-92f7-367167d0b73b\",\n            \"region\": \"aws-eu-central-1\",\n            \"ip\": \"3.66.70.29\",\n            \"fqdn\": \"endpoint01.eu-central-1.aws.ipsec.onomondo.com\"\n        },\n        {\n            \"id\": \"4e319a05-4ad7-4fa4-b720-1b8c8b33e004\",\n            \"region\": \"aws-eu-central-1\",\n            \"ip\": \"35.158.204.65\",\n            \"fqdn\": \"endpoint02.eu-central-1.aws.ipsec.onomondo.com\"\n        }\n    ],\n    \"remote_endpoints\": [\n        \n    ]\n}"}],"_postman_id":"fadb37e9-645f-4799-ba2f-3f942c58dd72"}],"id":"f0ca3b77-dc28-4ed2-b201-f56585e98111","_postman_id":"f0ca3b77-dc28-4ed2-b201-f56585e98111","description":"","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}}},{"name":"Add Connector to SIMs","item":[{"name":"Bulk SIM Update","id":"c8cd7725-450f-4def-85a7-2637fd5293fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": \"000001001\",\n        \"connector\": \"<name you give the connector>\"\n    },\n        {\n        \"id\": \"000001002\",\n        \"connector\": \"<name you give the connector>\"\n    },\n        {\n        \"id\": \"000001003\",\n        \"connector\": \"<name you give the connector>\"\n    }\n]"},"url":"https://api.onomondo.com/sims/bulk","description":"<p><strong>Send a PATCH request to update a SIM id alias.</strong></p>\n<p>This request takes a JSON body. Only the properties that are being updated needs to be included. All properties that can be updated by a single SIM update can be added to the bulk call.</p>\n<p><strong>LIMIT: 20 SIMs per call</strong></p>\n<p><code>sims</code> is the only one field in the body, which consists of an array of SIM update objects.</p>\n<p>Each object needs to have the field <code>id</code>, which is the 9 character SIM ID.</p>\n<p><em>ICCID is not accepted but can be connected to a SIM ID by taking the first 9 of the last 10 numbers of the ICCID. Here is an ICCID example with the SIM ID in bold:<br />8945738730-<strong><strong>000001934</strong></strong>-2</em></p>\n","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}},"urlObject":{"protocol":"https","path":["sims","bulk"],"host":["api","onomondo","com"],"query":[],"variable":[]}},"response":[{"id":"5422646f-ec62-44ff-a0da-788e70229464","name":"Bulk SIM Update Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sims\": [\n        {\n            \"id\": \"000001934\",\n            \"connector\": \"https-connector\",\n            \"data_limit\": {\n                \"total\": 50000000,\n                \"type\": \"monthly\",\n                \"alert_threshold\": 25000000\n            }\n        },\n        {\n            \"id\": \"000279139\",\n            \"label\": \"jasons-device\",\n            \"data_limit\": {\n                \"total\": 1000000,\n                \"type\": \"hourly\",\n                \"alert_threshold\": 750000\n            }\n        },\n        {\n            \"id\": \"000210799\",\n            \"network_whitelist\": \"Americas\"\n        }\n    ]\n}"},"url":"{{host}}/sims/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 23 May 2022 07:30:38 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=JL72QlvNedtq+6hQ15tPXdBGFwkXU+Zp22h+RJxNxvgOfDbxiurwWDsdKx0FBa0Rbi7IxpSsRrCp/Nz/l1jWfOKlgBDWb+I8Al2A5F6ysrVzaN3cIuv6oeVxZdrS; Expires=Mon, 30 May 2022 07:30:38 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=JL72QlvNedtq+6hQ15tPXdBGFwkXU+Zp22h+RJxNxvgOfDbxiurwWDsdKx0FBa0Rbi7IxpSsRrCp/Nz/l1jWfOKlgBDWb+I8Al2A5F6ysrVzaN3cIuv6oeVxZdrS; Expires=Mon, 30 May 2022 07:30:38 GMT; Path=/; SameSite=None; Secure"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"599"},{"key":"X-RateLimit-Reset","value":"1653291099"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\"id\":\"000001934\",\"success\":true}\n{\"id\":\"000279139\",\"success\":true}\n{\"id\":\"000210799\",\"success\":true}\n"},{"id":"fcbe3a78-d5b3-4adc-8517-d011dee2db3f","name":"Bulk SIM Update - with an error on one SIM","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sims\": [\n    {\n        \"id\": \"000001934\",\n        \"connector\": \"https-connector\",\n        \"data_limit\": {\n            \"total\": 50000000,\n            \"type\": \"monthly\",\n            \"alert_threshold\": 25000000\n        }\n    },\n    {\n        \"id\": \"000279139\",\n        \"label\": \"jasons-device\",\n        \"data_limit\": {\n            \"total\": 1000000,\n            \"type\": \"hourly\",\n            \"alert_threshold\": 750000\n        }\n    },\n    {\n        \"id\": \"000210799\",\n        \"network_whitelist\": \"Americas_only\"\n    }\n]\n}"},"url":"{{host}}/sims/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 02 Jun 2022 06:51:26 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=2Jw6x4gF7/nhMGh9l2NnfmbUC50vIWilEV+zSj0xQqpZcqaYkCkpZncotx7OBozHJQlJP3cU+HDgB80f+4RvE7vP6uM8aLXbJE+cimr1X7GL8MLlHLzW7K3j93rO; Expires=Thu, 09 Jun 2022 06:51:26 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=2Jw6x4gF7/nhMGh9l2NnfmbUC50vIWilEV+zSj0xQqpZcqaYkCkpZncotx7OBozHJQlJP3cU+HDgB80f+4RvE7vP6uM8aLXbJE+cimr1X7GL8MLlHLzW7K3j93rO; Expires=Thu, 09 Jun 2022 06:51:26 GMT; Path=/; SameSite=None; Secure"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"598"},{"key":"X-RateLimit-Reset","value":"1654152719"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\"id\":\"000001934\",\"success\":true}\n{\"id\":\"000279139\",\"success\":true}\n{\"id\":\"000210799\",\"success\":false,\"error\":\"network_whitelist_not_found\"}\n"}],"_postman_id":"c8cd7725-450f-4def-85a7-2637fd5293fa"},{"name":"Update Single SIM","id":"3c706878-2f95-44f5-ab99-3af29e32f549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"connector\": \"<name you give the connector>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.onomondo.com/sims/000010010","description":"<p><strong>Send a PATCH request to update a SIM id alias.</strong></p>\n<p>This request takes a JSON body. Only the properties that are being updated needs to be included. There are seven different properties that can be updated:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"label\"\n</code></pre><blockquote>\n<p>A string alias of the SIM, null if no alias to be assigned.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"network_whitelist\"\n</code></pre><blockquote>\n<p>Name of the Network Whitelist attached, null if no Network Whitelist should be attached</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"imei_lock\"\n</code></pre><blockquote>\n<p>String IMEI of device the SIM should be locked too (if presented in network signaling) or a null value.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"connector\"\n</code></pre><blockquote>\n<p>Name of Connector attached, set to null if no Connector should be attached</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"activated\"\n</code></pre><blockquote>\n<p>Boolean to activate and deactivate the SIM</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"data_limit\"\n</code></pre><blockquote>\n<p>Object that can set hard data limits to the SIM. When the limit is reached the device will not be able to send data until the time indicated by the property <code>resets-at</code>. This can be found in the <a href=\"https://docs.onomondo.com/#aa33c442-cf55-4c83-960f-2fcb14b9849d\"><em>Retrieve a specific SIM</em> API call</a>. </p>\n</blockquote>\n<blockquote>\n<p>There are two required properties in the object:</p>\n</blockquote>\n<ol>\n<li><code>total</code> - a number in bytes with a minimum of <code>500000</code></li>\n<li><code>type</code> - pick from one of these values <code>\"minute\"</code>, <code>\"hourly\"</code>, <code>\"daily\"</code>, or <code>\"monthly\"</code></li>\n</ol>\n<blockquote>\n<p>You can also add the property <code>alert-threshold</code>  - set the warning amount in bytes. It needs to be less than the <code>total</code>. (Also requires a number with the minimum of <code>500000</code>)</p>\n</blockquote>\n<blockquote>\n<p>If the webhook is set up, a usage-alert event will be triggered first when a SIM has used the specified bytes in a usage-period defined in <code>alert-threshold</code> of the particular SIM. Afterwards, if the SIM reaches the number of bytes defined in the <code>total</code>, another usage-alert event will be triggered and the SIM will be unable to send more data until the usage period resets.</p>\n</blockquote>\n<p><strong>You can read more on usage alerts</strong> </p>\n<ol>\n<li><p><a href=\"https://help.onomondo.com/en/how-do-i-use-usage-alerts\">How do I use Usage Alerts</a> in our help section </p>\n</li>\n<li><p>Find the examples of webhook events in the documentation under <a href=\"https://docs.onomondo.com/#d25ea78e-17f6-4c78-bc39-83342cb393bb\">usage alerts in the documentation below</a>.</p>\n<p>  \"tags\"</p>\n</li>\n</ol>\n<blockquote>\n<p>An array of Tag ids to be associated with a SIM. Tag IDs require string format and can be obtained using a <a href=\"https://docs.onomondo.com/#ebc4c6ae-1f9f-44e1-af1e-97b6c240d7ab\">GET request on the Tags</a> endpoint <code>/tags</code>.      </p>\n</blockquote>\n<p><strong>Caution when adding Tags:</strong> <em>If you want to add a Tag to a SIM that already is associated with other tags, you need to include all tags you want to keep, as well as the one you want to add.</em> To change one tag, you can use the <a href=\"https://docs.onomondo.com/#65af8adf-065f-40aa-9614-117b729261e6\">Editing a taglist of a SIM API calls</a>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"technologies\"\n</code></pre><blockquote>\n<p>An object with three properties with booleon values. <code>SMS</code>, <code>2G/3G</code> or `4G``</p>\n</blockquote>\n<ol>\n<li><code>SMS</code> - Removes the ability to send SMS</li>\n<li><code>2G/3G</code> - Removes the ability to connect on 2G/3G.</li>\n<li><code>4G</code>- Removes ability to connect to 4G.</li>\n</ol>\n<p><strong>Caution when changing technologies:</strong> Make sure the SIM is not connected to a RAN when this happens. The best way to confirm this, is add these features when the device is not activated, or toggle activation off then on to clear any details at a RAN level.</p>\n","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}},"urlObject":{"protocol":"https","path":["sims","000010010"],"host":["api","onomondo","com"],"query":[],"variable":[]}},"response":[{"id":"b8e7584d-2e2b-40e3-8c74-d75d634a5b9e","name":"Update SIM including tags","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"alias\": \"test-device\",\n    \"activated\": true,\n    \"tags\": [\"a5023f47-1db8-425e-b664-dc0b8921f644\",\"4c21c1ce-0e3d-445f-8b3a-9d918a9acd89\"]\n}"},"url":"{{host}}/sims/000010010"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Nov 2021 12:18:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"902"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"529"},{"key":"X-RateLimit-Reset","value":"1635769142"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"386-7ArI/IeSB569fUHTufzYm2Goiyg\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"000279101\",\n    \"msisdn\": \"882360011968393\",\n    \"iccid\": \"89457387300002791013\",\n    \"label\": \"Bene-getting-started-device\",\n    \"network_whitelist\": \"bene-excellent-testing-whitelist\",\n    \"imei_lock\": null,\n    \"imei\": \"861340049971524\",\n    \"imsi\": \"234500027179101\",\n    \"connector\": \"getting-started\",\n    \"activated\": true,\n    \"ipv4\": \"100.68.153.152\",\n    \"online_at\": null,\n    \"network\": {\n        \"name\": \"Telia\",\n        \"country\": \"Denmark\",\n        \"country_code\": \"DK\",\n        \"mcc\": \"238\",\n        \"mnc\": \"20\"\n    },\n    \"usage\": 97854,\n    \"tags\": [\n        {\n            \"name\": \"getting-started product\",\n            \"id\": \"4c21c1ce-0e3d-445f-8b3a-9d918a9acd89\",\n            \"can_write\": false,\n            \"color\": \"#AB7D63\"\n        },\n        {\n            \"name\": \"Developer\",\n            \"id\": \"a5023f47-1db8-425e-b664-dc0b8921f644\",\n            \"can_write\": true,\n            \"color\": \"#5ba571\"\n        }\n    ],\n    \"data_limit\": {\n        \"used\": 744,\n        \"total\": 10000000,\n        \"type\": \"hourly\",\n        \"period\": \"2021110112\",\n        \"alert_threshold\": null,\n        \"resets_at\": \"2021-11-01T13:00:00.000Z\"\n    },\n    \"location\": {\n        \"lat\": 55.6821716,\n        \"lng\": 12.5824411,\n        \"cell_id\": 41963030,\n        \"location_area_code\": null,\n        \"accuracy\": 568\n    }\n}"},{"id":"96e545fb-df72-406e-9f72-bef6366c1516","name":"Update SIM - change the data limit","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"data_limit\": {\n        \"total\": 1000000,\n        \"type\": \"hourly\",\n        \"alert_threshold\": 800000\n    }\n}"},"url":"{{host}}/sims/000010010"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Nov 2021 12:20:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"660"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"568"},{"key":"X-RateLimit-Reset","value":"1635769262"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"294-cFX11dlVH1cyMnThKdRzYeaYmSI\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"000279101\",\n    \"msisdn\": \"882360011968393\",\n    \"iccid\": \"89457387300002791013\",\n    \"label\": \"Bene-getting-started-device\",\n    \"network_whitelist\": \"bene-excellent-testing-whitelist\",\n    \"imei_lock\": null,\n    \"imei\": \"861340049971524\",\n    \"imsi\": \"234500027179101\",\n    \"connector\": \"getting-started\",\n    \"activated\": true,\n    \"ipv4\": \"100.68.153.152\",\n    \"online_at\": null,\n    \"network\": {\n        \"name\": \"Telia\",\n        \"country\": \"Denmark\",\n        \"country_code\": \"DK\",\n        \"mcc\": \"238\",\n        \"mnc\": \"20\"\n    },\n    \"usage\": 98350,\n    \"tags\": [],\n    \"data_limit\": {\n        \"used\": null,\n        \"total\": 1000000,\n        \"type\": \"hourly\",\n        \"period\": null,\n        \"alert_threshold\": 800000,\n        \"resets_at\": null\n    },\n    \"location\": {\n        \"lat\": 55.6821716,\n        \"lng\": 12.5824411,\n        \"cell_id\": 41963030,\n        \"location_area_code\": null,\n        \"accuracy\": 568\n    }\n}"},{"id":"55c78dc7-f723-4838-912d-4d63b4268ee9","name":"Update SIM - change technology","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"technology\": {\n       \"SMS\": false\n    }\n}"},"url":"{{host}}/sims/000010010"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Nov 2021 10:15:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1171"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"600"},{"key":"X-RateLimit-Remaining","value":"595"},{"key":"X-RateLimit-Reset","value":"1637144210"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"493-rn7p+FSdHZJoy8FYPVxABLo9XIw\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"000010010\",\n    \"msisdn\": \"882362000502273\",\n    \"iccid\": \"89457387300000022734\",\n    \"label\": null,\n    \"network_whitelist\": \"DK-UK-Only\",\n    \"imei_lock\": null,\n    \"imei\": \"355409072367141\",\n    \"imsi\": \"234500021056173\",\n    \"connector\": \"getting-started\",\n    \"activated\": true,\n    \"ipv4\": \"100.64.237.173\",\n    \"online_at\": null,\n    \"network\": {\n        \"name\": \"Telia\",\n        \"country\": \"Denmark\",\n        \"country_code\": \"DK\",\n        \"mcc\": \"238\",\n        \"mnc\": \"20\"\n    },\n    \"usage\": 738021695,\n    \"tags\": [\n        {\n            \"name\": \"Customer Success\",\n            \"id\": \"614f2a1d-b4df-4b07-9838-9760e427abb4\",\n            \"can_write\": false,\n            \"color\": \"#fd1233\"\n        },\n        {\n            \"name\": \"Containers\",\n            \"id\": \"38d3b4a7-c66a-4d73-8382-f145bcc09ad5\",\n            \"can_write\": false,\n            \"color\": null\n        },\n        {\n            \"name\": \"ConnectivityTBC\",\n            \"id\": \"5e72e294-7bbb-4c3c-ac92-2c494a1ff23a\",\n            \"can_write\": true,\n            \"color\": \"#f0f0AA\"\n        },\n        {\n            \"name\": \"Developer\",\n            \"id\": \"a5023f47-1db8-425e-b664-dc0b8921f644\",\n            \"can_write\": true,\n            \"color\": \"#5ba571\"\n        }\n    ],\n    \"data_limit\": {\n        \"used\": null,\n        \"total\": 100000000,\n        \"type\": \"daily\",\n        \"period\": \"20211117\",\n        \"alert_threshold\": null,\n        \"resets_at\": \"2021-11-18T00:00:00.000Z\"\n    },\n    \"location\": {\n        \"lat\": 55.6821716,\n        \"lng\": 12.5824411,\n        \"cell_id\": 41963030,\n        \"location_area_code\": null,\n        \"accuracy\": 568\n    },\n    \"device_info\": {\n        \"model\": \"iPhone 6 (A1586)\",\n        \"manufacturer\": \"Apple\"\n    },\n    \"technologies\": {\n        \"sms\": true,\n        \"2g_3g\": true,\n        \"4g\": true\n    }\n}"}],"_postman_id":"3c706878-2f95-44f5-ab99-3af29e32f549"}],"id":"3166f7cb-2258-4e6f-8dfc-b84f45a1add4","_postman_id":"3166f7cb-2258-4e6f-8dfc-b84f45a1add4","description":"","auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"},"isInherited":true,"source":{"_postman_id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","id":"801b71d6-a988-4309-a42c-a90fc1acfb3b","name":"IPSec API Commands","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"value":"ADD-YOUR-API-KEY","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"f657e99c-ee51-4bcc-93ba-3487b3c1321b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c6cf9460-2c5d-4f06-a7e8-abb2d6f3d4d4","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-key","value":"ADD-YOUR-API-KEY"},{"key":"local endpoint id","value":"<local endpoint id>"},{"key":"Pre-Shared-Key","value":"<Pre-Shared-Key>"},{"key":"endpoint","value":"<customer IPSec endpoint, IP or FQDN>"},{"key":"proposal","value":"<proposal>"},{"key":"use_ip_boolean","value":"<true if you ID by IP, false if you ID by FQDN>"},{"key":"connector name","value":"<name you give the connector>"},{"key":"sim_id","value":"000010010"}]}