Create an access control list entry with at least one IP address or IP range.
Security
Basic or OAuth2.0
The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.
Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47
- https://elastic-trunking.api.sinch.comhttps://elastic-trunking.api.sinch.com/v1/projects/{projectId}/accessControlLists/{id}
Update an access control list.
curl -i -X PUT \
-u '<username>:<password>' \
'https://elastic-trunking.api.sinch.com/v1/projects/3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47/accessControlLists/{id}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Test Prague 5",
"enabled": false,
"ipRanges": [
{
"description": "Location 1",
"ipAddress": "15.15.15.16",
"range": 20
}
]
}'The list of access control list entries
The associated IP ranges. When creating you need to submit at least one IP range.
Whether the access control list entry is enabled. You can use this to disable an list temporarily without deleting it.
Default:true
Response
The updated access control list.
{ "name": "Test Prague 5", "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47", "enabled": false, "id": "01HA9BRJW4J3QE4WBKVC337V4E", "createTime": "2023-09-14T08:08:48", "updateTime": "2023-09-14T08:10:10.187513334", "ipRanges": [ { … } ] }
We'd love to hear from you!
Rate this content: