mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-19 08:56:35 +00:00
Update API pages with v0.30.0
This commit is contained in:
@@ -181,6 +181,12 @@ echo $response;
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "ch8i4ug6lnn4g9hqv7m0",
|
||||
@@ -224,6 +230,12 @@ echo $response;
|
||||
"ports": [
|
||||
"string"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": "integer",
|
||||
"end": "integer"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "string",
|
||||
@@ -330,7 +342,29 @@ echo $response;
|
||||
</Property>
|
||||
<Property name="ports" type="string[]" required={false}>
|
||||
|
||||
Policy rule affected ports or it ranges list
|
||||
Policy rule affected ports
|
||||
|
||||
</Property>
|
||||
<Property name="port_ranges" type="object[]" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>Policy rule affected ports ranges list</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="start" type="integer" required={true}>
|
||||
|
||||
The starting port of the range
|
||||
|
||||
</Property>
|
||||
<Property name="end" type="integer" required={true}>
|
||||
|
||||
The ending port of the range
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
<Property name="sources" type="string[]" required={true}>
|
||||
@@ -381,6 +415,12 @@ curl -X POST https://api.netbird.io/api/policies \
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -414,6 +454,12 @@ let data = JSON.stringify({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -469,6 +515,12 @@ payload = json.dumps({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -524,6 +576,12 @@ func main() {
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -597,6 +655,12 @@ request.body = JSON.dump({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -634,6 +698,12 @@ RequestBody body = RequestBody.create(mediaType, '{
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -687,6 +757,12 @@ curl_setopt_array($curl, array(
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -734,6 +810,12 @@ echo $response;
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "ch8i4ug6lnn4g9hqv7m0",
|
||||
@@ -775,6 +857,12 @@ echo $response;
|
||||
"ports": [
|
||||
"string"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": "integer",
|
||||
"end": "integer"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "string",
|
||||
@@ -990,6 +1078,12 @@ echo $response;
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "ch8i4ug6lnn4g9hqv7m0",
|
||||
@@ -1031,6 +1125,12 @@ echo $response;
|
||||
"ports": [
|
||||
"string"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": "integer",
|
||||
"end": "integer"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "string",
|
||||
@@ -1144,7 +1244,29 @@ echo $response;
|
||||
</Property>
|
||||
<Property name="ports" type="string[]" required={false}>
|
||||
|
||||
Policy rule affected ports or it ranges list
|
||||
Policy rule affected ports
|
||||
|
||||
</Property>
|
||||
<Property name="port_ranges" type="object[]" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>Policy rule affected ports ranges list</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="start" type="integer" required={true}>
|
||||
|
||||
The starting port of the range
|
||||
|
||||
</Property>
|
||||
<Property name="end" type="integer" required={true}>
|
||||
|
||||
The ending port of the range
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
<Property name="sources" type="string[]" required={true}>
|
||||
@@ -1195,6 +1317,12 @@ curl -X PUT https://api.netbird.io/api/policies/{policyId} \
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1228,6 +1356,12 @@ let data = JSON.stringify({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1283,6 +1417,12 @@ payload = json.dumps({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1338,6 +1478,12 @@ func main() {
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1411,6 +1557,12 @@ request.body = JSON.dump({
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1448,6 +1600,12 @@ RequestBody body = RequestBody.create(mediaType, '{
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1501,6 +1659,12 @@ curl_setopt_array($curl, array(
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
@@ -1548,6 +1712,12 @@ echo $response;
|
||||
"ports": [
|
||||
"80"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": 80,
|
||||
"end": 320
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "ch8i4ug6lnn4g9hqv7m0",
|
||||
@@ -1589,6 +1759,12 @@ echo $response;
|
||||
"ports": [
|
||||
"string"
|
||||
],
|
||||
"port_ranges": [
|
||||
{
|
||||
"start": "integer",
|
||||
"end": "integer"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "string",
|
||||
|
||||
Reference in New Issue
Block a user