Gotipath Docs
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
  1. Access Controls
  • Distribution
    • Delete CDN Distribution
      DELETE
    • Create CDN Distribution
      POST
    • Update CDN Distribution
      PUT
    • Get All CDN Distributions
      GET
    • Get Distribution
      GET
    • Distribution Verify
      POST
  • Headers
    • Response headers
      POST
    • Create Headers
      POST
    • Request Headers
      POST
    • List
      GET
  • origin
    • Get All Origins
      GET
    • Create Origins
      POST
    • Origin Batch update
      POST
    • Update Origins
      PUT
    • Delete Origins
      DELETE
  • SSL Certificates
    • Attach Certificate to Distribution
      PUT
    • Delete Certificate
      DELETE
    • Get All Certificates
      GET
    • Create Certificate
      POST
    • Revoke Certificate from Distribution
      DELETE
  • Let's Encrypt
    • Let's Encrypt Certificate
    • Request Let's Encrypt Certificate for Distribution
  • Cache Controls
    • Create Cache Control
    • Update Cache Control
    • Delete Cache Rules
    • Get Cache Control
    • Get All Cache Conrols
  • Access Controls
    • Create Access Control
      POST
    • Update Access Control
      PUT
    • Delete Access Control
      DELETE
    • Token Reset
      PATCH
    • Get All Access Controls
      GET
    • Details
      GET
  • Prefetch
    • Create Prefetch
  • Purge
    • Purge
  • usages
    • Volume usage
    • Volume usage Copy
  • Traffic Usage
    • Get Bandwidth Usage
    • Get Volume Usage
    • Get Request Number Usage
  1. Access Controls

Create Access Control

Developing
POST
https://apistream.gotipath.com/v1/distributions/0fdcdf0b-7676-44a8-ac6a-e400771ea773/access-rules
cdn
Last modified:2023-09-19 14:46:20
Maintainer:Not configured

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
X-Auth-ClientId
string 
required
Default:
ebe8bac0-eaef-4548-8b59-96c9ec38a22b
X-Auth-LibraryId
string 
required
Default:
89898172-d32b-49f8-a94a-bdf0c6ca1bd9
X-Auth-ApiKey
string 
required
Default:
pEBPYVUNMbP7uDsb0W2h3oTjpEqr32fFh/3TNUhvFcJt7/J/hyV+5LctVWONgzaw+w+PpQ
Body Params application/json
object {0}
Example
{
    "name": "Videso m3u8",
    "match_type": "regex",
    "match": "/",
    "enabled": true,
    "country": {
        "action": "allow", // allow or deny
        "values": [
            "BD",
            "IN"
        ],
        "enabled": true
    },
    "referer": {
        "action": "allow",
        "values": [
            "gotipath.com"
        ],
        "enabled": true
    },
    "ip": {
        "action": "allow",
        "values": [
            "192.168.1.100/32"
        ],
        "enabled": true
    },
    "token": {
        "action": "allow",
        "value": "kI8lqvrWbhTZDLrfMJe9jZkh3fiSChgUROeeR6Aq1TX9iZ58cKGTM044yV2Veg4G",
        "enabled": true
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apistream.gotipath.com/v1/distributions/0fdcdf0b-7676-44a8-ac6a-e400771ea773/access-rules' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Videso m3u8",
    "match_type": "regex",
    "match": "/",
    "enabled": true,
    "country": {
        "action": "allow", // allow or deny
        "values": [
            "BD",
            "IN"
        ],
        "enabled": true
    },
    "referer": {
        "action": "allow",
        "values": [
            "gotipath.com"
        ],
        "enabled": true
    },
    "ip": {
        "action": "allow",
        "values": [
            "192.168.1.100/32"
        ],
        "enabled": true
    },
    "token": {
        "action": "allow",
        "value": "kI8lqvrWbhTZDLrfMJe9jZkh3fiSChgUROeeR6Aq1TX9iZ58cKGTM044yV2Veg4G",
        "enabled": true
    }
}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2023-09-19 14:46:20
Previous
Get All Cache Conrols
Next
Update Access Control
Built with