Skip to content

Commit bb87d2f

Browse files
Added documentation snippet about gateway endpoint discrepancy
1 parent c285e12 commit bb87d2f

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3613,7 +3613,7 @@ URL: https://{{$hostname}}/api/v1/routing/gateway
36133613

36143614
| Key | Value | Description |
36153615
| --- | ------|-------------|
3616-
| id | integer | Specify the ID of the gateway to delete |
3616+
| id | integer | Specify the ID of the gateway to delete. _Note: If you are obtaining the ID via GET request, the ID will be included in the response within the `attribute` field of the object._ |
36173617

36183618

36193619

@@ -3634,6 +3634,8 @@ Read routing gateways.<br><br>
36343634

36353635
_Requires at least one of the following privileges:_ [`page-all`, `page-system-gateways`]
36363636

3637+
_Note: Currently, GET requests to this endpoint return verbose backend gateway information rather than the gateway objects as they appear in the configuration. This discrepancy makes it difficult to interact with gateway objects via API. Because of this, GET requests to this endpoint will be refactored in a future release._
3638+
36373639

36383640
***Endpoint:***
36393641

@@ -3677,6 +3679,7 @@ URL: https://{{$hostname}}/api/v1/routing/gateway
36773679

36783680
| Key | Value | Description |
36793681
| --- | ------|-------------|
3682+
| id | integer | Specify the ID of the gateway to update. _Note: If you are obtaining the ID via GET request, the ID will be included in the response within the `attribute` field of the object._ |
36803683
| interface | string | Update the interface the gateway will apply to. You may specify either the interface's descriptive name, the pfSense ID (wan, lan, optx), or the physical interface id (e.g. igb0). (optional) |
36813684
| ipprotocol | string | Update the IP protocol this gateway will serve. Options are `inet` for IPv4, or `inet6` for IPv6. If you are changing the protocol, you will also be required to update the `gateway` and/or `monitor` values to match the specified protocol. (optional) |
36823685
| name | string | Update the descriptive name for this gateway. This name must be unique, and can only contain alphanumeric characters and underscores. (optional) |

docs/documentation.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6857,7 +6857,7 @@
68576857
"gateway"
68586858
]
68596859
},
6860-
"description": "Read routing gateways.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-system-gateways`]"
6860+
"description": "Read routing gateways.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-system-gateways`]\n\n_Note: Currently, GET requests to this endpoint return verbose backend gateway information rather than the gateway objects as they appear in the configuration. This discrepancy makes it difficult to interact with gateway objects via API. Because of this, GET requests to this endpoint will be refactored in a future release._"
68616861
},
68626862
"response": []
68636863
},
@@ -6891,7 +6891,7 @@
68916891
{
68926892
"key": "id",
68936893
"value": "integer",
6894-
"description": "Specify the ID of the gateway to delete"
6894+
"description": "Specify the ID of the gateway to delete. _Note: If you are obtaining the ID via GET request, the ID will be included in the response within the `attribute` field of the object._"
68956895
}
68966896
]
68976897
},
@@ -7064,6 +7064,11 @@
70647064
"gateway"
70657065
],
70667066
"query": [
7067+
{
7068+
"key": "id",
7069+
"value": "integer",
7070+
"description": "Specify the ID of the gateway to update. _Note: If you are obtaining the ID via GET request, the ID will be included in the response within the `attribute` field of the object._"
7071+
},
70677072
{
70687073
"key": "interface",
70697074
"value": "string",
@@ -10218,4 +10223,4 @@
1021810223
}
1021910224
],
1022010225
"protocolProfileBehavior": {}
10221-
}
10226+
}

0 commit comments

Comments
 (0)