Skip to content

Commit

Permalink
Update API pages with v0.30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
netbirddev committed Oct 16, 2024
1 parent 0a0fb2e commit b0189f1
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/pages/ipa/resources/accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ echo $response;
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand All @@ -187,6 +189,8 @@ echo $response;
"settings": {
"peer_login_expiration_enabled": "boolean",
"peer_login_expiration": "integer",
"peer_inactivity_expiration_enabled": "boolean",
"peer_inactivity_expiration": "integer",
"regular_users_view_blocked": "boolean",
"groups_propagation_enabled": "boolean",
"jwt_groups_enabled": "boolean",
Expand Down Expand Up @@ -405,6 +409,16 @@ echo $response;
Period of time after which peer login expires (seconds).
</Property>
<Property name="peer_inactivity_expiration_enabled" type="boolean" required={true}>
Enables or disables peer inactivity expiration globally. After peer's session has expired the user has to log in (authenticate). Applies only to peers that were added by a user (interactive SSO login).
</Property>
<Property name="peer_inactivity_expiration" type="integer" required={true}>
Period of time of inactivity after which peer session expires (seconds).
</Property>
<Property name="regular_users_view_blocked" type="boolean" required={true}>
Expand Down Expand Up @@ -470,6 +484,8 @@ curl -X PUT https://api.netbird.io/api/accounts/{accountId} \
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand All @@ -490,6 +506,8 @@ let data = JSON.stringify({
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand Down Expand Up @@ -532,6 +550,8 @@ payload = json.dumps({
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand Down Expand Up @@ -574,6 +594,8 @@ func main() {
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand Down Expand Up @@ -634,6 +656,8 @@ request.body = JSON.dump({
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand All @@ -658,6 +682,8 @@ RequestBody body = RequestBody.create(mediaType, '{
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand Down Expand Up @@ -698,6 +724,8 @@ curl_setopt_array($curl, array(
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand Down Expand Up @@ -733,6 +761,8 @@ echo $response;
"settings": {
"peer_login_expiration_enabled": true,
"peer_login_expiration": 43200,
"peer_inactivity_expiration_enabled": true,
"peer_inactivity_expiration": 43200,
"regular_users_view_blocked": true,
"groups_propagation_enabled": true,
"jwt_groups_enabled": true,
Expand All @@ -752,6 +782,8 @@ echo $response;
"settings": {
"peer_login_expiration_enabled": "boolean",
"peer_login_expiration": "integer",
"peer_inactivity_expiration_enabled": "boolean",
"peer_inactivity_expiration": "integer",
"regular_users_view_blocked": "boolean",
"groups_propagation_enabled": "boolean",
"jwt_groups_enabled": "boolean",
Expand Down
18 changes: 18 additions & 0 deletions src/pages/ipa/resources/peers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ echo $response;
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z",
"inactivity_expiration_enabled": false,
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
Expand Down Expand Up @@ -225,6 +226,7 @@ echo $response;
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string",
"inactivity_expiration_enabled": "boolean",
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
Expand Down Expand Up @@ -435,6 +437,7 @@ echo $response;
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z",
"inactivity_expiration_enabled": false,
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
Expand Down Expand Up @@ -469,6 +472,7 @@ echo $response;
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string",
"inactivity_expiration_enabled": "boolean",
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
Expand Down Expand Up @@ -514,6 +518,11 @@ echo $response;
</Property>
<Property name="inactivity_expiration_enabled" type="boolean" required={true}>
</Property>
<Property name="approval_required" type="boolean" required={false}>
Expand All @@ -536,6 +545,7 @@ curl -X PUT https://api.netbird.io/api/peers/{peerId} \
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
}'
```
Expand All @@ -546,6 +556,7 @@ let data = JSON.stringify({
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
});
let config = {
Expand Down Expand Up @@ -578,6 +589,7 @@ payload = json.dumps({
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
})
headers = {
Expand Down Expand Up @@ -610,6 +622,7 @@ func main() {
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
}`)
client := &http.Client {
Expand Down Expand Up @@ -660,6 +673,7 @@ request.body = JSON.dump({
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
})
response = https.request(request)
Expand All @@ -674,6 +688,7 @@ RequestBody body = RequestBody.create(mediaType, '{
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
}');
Request request = new Request.Builder()
Expand Down Expand Up @@ -704,6 +719,7 @@ curl_setopt_array($curl, array(
"name": "stage-host-1",
"ssh_enabled": true,
"login_expiration_enabled": false,
"inactivity_expiration_enabled": false,
"approval_required": true
}',
CURLOPT_HTTPHEADER => array(
Expand Down Expand Up @@ -751,6 +767,7 @@ echo $response;
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z",
"inactivity_expiration_enabled": false,
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
Expand Down Expand Up @@ -785,6 +802,7 @@ echo $response;
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string",
"inactivity_expiration_enabled": "boolean",
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
Expand Down

0 comments on commit b0189f1

Please sign in to comment.