- Distribution
- Headers
- origin
- SSL Certificates
- Let's Encrypt
- Cache Controls
- Access Controls
- Prefetch
- Purge
- usages
- Traffic Usage
Details
Developing
GET
https://apistream.gotipath.com/v1/distributions/bb52605c-5bbc-41f4-af77-1c1bf12ec7d9/access-rules/114dd277-029e-44ad-abe6-2b6964bcc484
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
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 GET 'https://apistream.gotipath.com/v1/distributions/bb52605c-5bbc-41f4-af77-1c1bf12ec7d9/access-rules/114dd277-029e-44ad-abe6-2b6964bcc484' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;'
Responses
🟢200OK
application/json
Body
object {0}
Example
{
"status": 200,
"message": "Access Rule fetched successfully",
"result": {
"customer_id": "b1bef3d5-a2dd-4fec-9bf3-061038ce2c41",
"distribution_id": "bb52605c-5bbc-41f4-af77-1c1bf12ec7d9",
"enabled": true,
"id": "47426643-13a1-4adf-994d-8d3bdc1d5706",
"match": "/",
"match_type": "regex",
"name": "Videso m3u8",
"rules": [
{
"access_rule_id": "47426643-13a1-4adf-994d-8d3bdc1d5706",
"action": "allow",
"enabled": true,
"id": "0ac6a357-e4a2-4f36-ba64-b5adf1d80614",
"type": "country",
"values": [
"BD",
"IN"
]
},
{
"access_rule_id": "47426643-13a1-4adf-994d-8d3bdc1d5706",
"action": "allow",
"id": "6fc0c7c4-64ed-48d7-9bc9-24c9a7677507",
"type": "referer",
"values": [
"gotipath.com"
]
},
{
"access_rule_id": "47426643-13a1-4adf-994d-8d3bdc1d5706",
"action": "allow",
"id": "b3a9ea5c-bc8a-4c41-b927-dbb968765ce2",
"type": "token",
"values": "kI8lqvrWbhTZDLrfMJe9jZkh3fiSChgUROeeR6Aq1TX9iZ58cKGTM044yV2Veg4G"
},
{
"access_rule_id": "47426643-13a1-4adf-994d-8d3bdc1d5706",
"action": "allow",
"id": "bb59b2a4-2267-42f1-ba2c-5d7c472166f7",
"type": "ip",
"values": [
"192.168.1.100/32"
]
}
],
"updated_at": "0001-01-01T00:00:00Z",
"created_at": "0001-01-01T00:00:00Z",
"created_by": ""
},
"success": true
}