mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-25 11:56:36 +00:00
Update API pages with v0.69.0
This commit is contained in:
@@ -809,7 +809,14 @@ echo $response;
|
|||||||
"subdivision_code": "CA",
|
"subdivision_code": "CA",
|
||||||
"bytes_upload": 1024,
|
"bytes_upload": 1024,
|
||||||
"bytes_download": 8192,
|
"bytes_download": 8192,
|
||||||
"protocol": "http"
|
"protocol": "http",
|
||||||
|
"metadata": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Extra context about the request (e.g. crowdsec_verdict)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"page": 1,
|
"page": 1,
|
||||||
@@ -839,7 +846,12 @@ echo $response;
|
|||||||
"subdivision_code": "string",
|
"subdivision_code": "string",
|
||||||
"bytes_upload": "integer",
|
"bytes_upload": "integer",
|
||||||
"bytes_download": "integer",
|
"bytes_download": "integer",
|
||||||
"protocol": "string"
|
"protocol": "string",
|
||||||
|
"metadata": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": "string",
|
||||||
|
"description": "Extra context about the request (e.g. crowdsec_verdict)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"page": "integer",
|
"page": "integer",
|
||||||
|
|||||||
@@ -414,7 +414,17 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "2024-02-03T10:30:00Z",
|
"created_at": "2024-02-03T10:30:00Z",
|
||||||
@@ -503,7 +513,8 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"string"
|
"string"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": "string"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "string",
|
"created_at": "string",
|
||||||
@@ -801,6 +812,11 @@ echo $response;
|
|||||||
|
|
||||||
ISO 3166-1 alpha-2 country codes to block.
|
ISO 3166-1 alpha-2 country codes to block.
|
||||||
|
|
||||||
|
</Property>
|
||||||
|
<Property name="crowdsec_mode" type="string" required={false} enumList={["off","enforce","observe"]}>
|
||||||
|
|
||||||
|
CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec.
|
||||||
|
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
@@ -887,7 +903,17 @@ curl -X POST https://api.netbird.io/api/reverse-proxies/services \
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
@@ -961,7 +987,17 @@ let data = JSON.stringify({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let config = {
|
let config = {
|
||||||
@@ -1057,7 +1093,17 @@ payload = json.dumps({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
headers = {
|
headers = {
|
||||||
@@ -1153,7 +1199,17 @@ func main() {
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}`)
|
}`)
|
||||||
client := &http.Client {
|
client := &http.Client {
|
||||||
@@ -1267,7 +1323,17 @@ request.body = JSON.dump({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
response = https.request(request)
|
response = https.request(request)
|
||||||
@@ -1345,7 +1411,17 @@ RequestBody body = RequestBody.create(mediaType, '{
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}');
|
}');
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
@@ -1439,7 +1515,17 @@ curl_setopt_array($curl, array(
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
CURLOPT_HTTPHEADER => array(
|
CURLOPT_HTTPHEADER => array(
|
||||||
@@ -1531,7 +1617,17 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "2024-02-03T10:30:00Z",
|
"created_at": "2024-02-03T10:30:00Z",
|
||||||
@@ -1618,7 +1714,8 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"string"
|
"string"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": "string"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "string",
|
"created_at": "string",
|
||||||
@@ -1873,7 +1970,17 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "2024-02-03T10:30:00Z",
|
"created_at": "2024-02-03T10:30:00Z",
|
||||||
@@ -1960,7 +2067,8 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"string"
|
"string"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": "string"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "string",
|
"created_at": "string",
|
||||||
@@ -2265,6 +2373,11 @@ echo $response;
|
|||||||
|
|
||||||
ISO 3166-1 alpha-2 country codes to block.
|
ISO 3166-1 alpha-2 country codes to block.
|
||||||
|
|
||||||
|
</Property>
|
||||||
|
<Property name="crowdsec_mode" type="string" required={false} enumList={["off","enforce","observe"]}>
|
||||||
|
|
||||||
|
CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec.
|
||||||
|
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
@@ -2351,7 +2464,17 @@ curl -X PUT https://api.netbird.io/api/reverse-proxies/services/{serviceId} \
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
@@ -2425,7 +2548,17 @@ let data = JSON.stringify({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let config = {
|
let config = {
|
||||||
@@ -2521,7 +2654,17 @@ payload = json.dumps({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
headers = {
|
headers = {
|
||||||
@@ -2617,7 +2760,17 @@ func main() {
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}`)
|
}`)
|
||||||
client := &http.Client {
|
client := &http.Client {
|
||||||
@@ -2731,7 +2884,17 @@ request.body = JSON.dump({
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
response = https.request(request)
|
response = https.request(request)
|
||||||
@@ -2809,7 +2972,17 @@ RequestBody body = RequestBody.create(mediaType, '{
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}');
|
}');
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
@@ -2903,7 +3076,17 @@ curl_setopt_array($curl, array(
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
CURLOPT_HTTPHEADER => array(
|
CURLOPT_HTTPHEADER => array(
|
||||||
@@ -2995,7 +3178,17 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "2024-02-03T10:30:00Z",
|
"created_at": "2024-02-03T10:30:00Z",
|
||||||
@@ -3082,7 +3275,8 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"string"
|
"string"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": "string"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "string",
|
"created_at": "string",
|
||||||
@@ -3430,7 +3624,8 @@ echo $response;
|
|||||||
"type": "free",
|
"type": "free",
|
||||||
"target_cluster": "eu.proxy.netbird.io",
|
"target_cluster": "eu.proxy.netbird.io",
|
||||||
"supports_custom_ports": true,
|
"supports_custom_ports": true,
|
||||||
"require_subdomain": false
|
"require_subdomain": false,
|
||||||
|
"supports_crowdsec": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
@@ -3443,7 +3638,8 @@ echo $response;
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"target_cluster": "string",
|
"target_cluster": "string",
|
||||||
"supports_custom_ports": "boolean",
|
"supports_custom_ports": "boolean",
|
||||||
"require_subdomain": "boolean"
|
"require_subdomain": "boolean",
|
||||||
|
"supports_crowdsec": "boolean"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
@@ -3735,7 +3931,17 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"DE"
|
"DE"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"enforce",
|
||||||
|
"observe"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "CrowdSec IP reputation mode. Only available when the proxy cluster supports CrowdSec."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "2024-02-03T10:30:00Z",
|
"created_at": "2024-02-03T10:30:00Z",
|
||||||
@@ -3822,7 +4028,8 @@ echo $response;
|
|||||||
],
|
],
|
||||||
"blocked_countries": [
|
"blocked_countries": [
|
||||||
"string"
|
"string"
|
||||||
]
|
],
|
||||||
|
"crowdsec_mode": "string"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"created_at": "string",
|
"created_at": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user