mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-19 08:56:35 +00:00
Update API pages with v0.36.0
This commit is contained in:
@@ -382,15 +382,59 @@ echo $response;
|
||||
Policy rule ID
|
||||
|
||||
</Property>
|
||||
<Property name="sources" type="string[]" required={true}>
|
||||
<Property name="sources" type="string[]" required={false}>
|
||||
|
||||
Policy rule source group IDs
|
||||
|
||||
</Property>
|
||||
<Property name="destinations" type="string[]" required={true}>
|
||||
<Property name="sourceResource" type="object" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>More Information</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="id" type="string" required={true}>
|
||||
|
||||
ID of the resource
|
||||
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true} enumList={["host","subnet","domain"]}>
|
||||
|
||||
Network resource type based of the address
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
<Property name="destinations" type="string[]" required={false}>
|
||||
|
||||
Policy rule destination group IDs
|
||||
|
||||
</Property>
|
||||
<Property name="destinationResource" type="object" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>More Information</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="id" type="string" required={true}>
|
||||
|
||||
ID of the resource
|
||||
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true} enumList={["host","subnet","domain"]}>
|
||||
|
||||
Network resource type based of the address
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
@@ -438,9 +482,17 @@ curl -X POST https://api.netbird.io/api/policies \
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}'
|
||||
@@ -476,9 +528,17 @@ let data = JSON.stringify({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
@@ -536,9 +596,17 @@ payload = json.dumps({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -596,9 +664,17 @@ func main() {
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}`)
|
||||
@@ -674,9 +750,17 @@ request.body = JSON.dump({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -716,9 +800,17 @@ RequestBody body = RequestBody.create(mediaType, '{
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}');
|
||||
@@ -774,9 +866,17 @@ curl_setopt_array($curl, array(
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}',
|
||||
@@ -1312,15 +1412,59 @@ echo $response;
|
||||
Policy rule ID
|
||||
|
||||
</Property>
|
||||
<Property name="sources" type="string[]" required={true}>
|
||||
<Property name="sources" type="string[]" required={false}>
|
||||
|
||||
Policy rule source group IDs
|
||||
|
||||
</Property>
|
||||
<Property name="destinations" type="string[]" required={true}>
|
||||
<Property name="sourceResource" type="object" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>More Information</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="id" type="string" required={true}>
|
||||
|
||||
ID of the resource
|
||||
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true} enumList={["host","subnet","domain"]}>
|
||||
|
||||
Network resource type based of the address
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
<Property name="destinations" type="string[]" required={false}>
|
||||
|
||||
Policy rule destination group IDs
|
||||
|
||||
</Property>
|
||||
<Property name="destinationResource" type="object" required={false}>
|
||||
|
||||
<details class="custom-details" open>
|
||||
<summary>More Information</summary>
|
||||
<Properties>
|
||||
|
||||
<Properties><Property name="id" type="string" required={true}>
|
||||
|
||||
ID of the resource
|
||||
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true} enumList={["host","subnet","domain"]}>
|
||||
|
||||
Network resource type based of the address
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
</Properties>
|
||||
</details>
|
||||
|
||||
</Property>
|
||||
</Properties>
|
||||
|
||||
@@ -1368,9 +1512,17 @@ curl -X PUT https://api.netbird.io/api/policies/{policyId} \
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}'
|
||||
@@ -1406,9 +1558,17 @@ let data = JSON.stringify({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
@@ -1466,9 +1626,17 @@ payload = json.dumps({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -1526,9 +1694,17 @@ func main() {
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}`)
|
||||
@@ -1604,9 +1780,17 @@ request.body = JSON.dump({
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -1646,9 +1830,17 @@ RequestBody body = RequestBody.create(mediaType, '{
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}');
|
||||
@@ -1704,9 +1896,17 @@ curl_setopt_array($curl, array(
|
||||
"sources": [
|
||||
"ch8i4ug6lnn4g9hqv797"
|
||||
],
|
||||
"sourceResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
},
|
||||
"destinations": [
|
||||
"ch8i4ug6lnn4g9h7v7m0"
|
||||
]
|
||||
],
|
||||
"destinationResource": {
|
||||
"id": "chacdk86lnnboviihd7g",
|
||||
"type": "host"
|
||||
}
|
||||
}
|
||||
]
|
||||
}',
|
||||
|
||||
Reference in New Issue
Block a user