List Access Controls

This API is used to list url access controls policy for website accleration domain or filedownload service.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v1.0/services/{serviceId}/access_controls
  • Request Method
GET
  • Request Header

Refer to HTTP Request Headers

  • Request Body

No request body for this API.


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
id int Policy ID number for access control.
name string Policy name for access control.
type string Access control type, could be "allow", "deny" or "token".
matchType string Policy match type, could be "regex" or "prefix".
url string Prefix or regex of url pattern.
subnet string IP subnet for access control.
location string Comma-separated list of geographic locations to be matched. Each location should be specified as a 2-letter ISO3166 code. E.g "SG,GB".
  • Response Body Example
[
    {
        "id": 1001,
        "name": "ac1001",
        "type": "allow",
        "matchType": "regex",
        "url": "/*.js",
        "subnet": "192.168.1.0/24",
        "location": "SG,CN"
    },
    {
        "id": 1002,
        "name": "ac1002",
        "type": "deny",
        "matchType": "regex",
        "url": "/*.js",
        "subnet": "192.168.1.0/24",
        "location": "SG,CN"
    },
    {
        "id": 1003,
        "name": "ac1003",
        "type": "token",
        "matchType": "prefix",
        "url": "/protected/*",
        "subnet": "192.168.1.0/24",
        "location": "SG,CN"
    }
]
© 2019 Conversant Solutions Pte Ltd. All rights reserved.            Updated 2019-05-23 03:46:01

results matching ""

    No results matching ""