Get available firewall service presets (SSH, HTTP, HTTPS, etc.)
curl --request GET \
--url https://api.storiza.store/vps/firewall/presets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/vps/firewall/presets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/firewall/presets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "Firewall presets retrieved successfully",
"data": [
{
"name": "<string>",
"protocol": "tcp",
"port": "<string>",
"description": "<string>"
}
]
}Server firewall
Get available firewall service presets (SSH, HTTP, HTTPS, etc.)
Returns the static catalogue of common service presets (name, protocol, port, description) that clients can use to pre-fill a firewall rule form. The data is the same for every VPS.
Required API key permission: vps:read
GET
/
vps
/
firewall
/
presets
Get available firewall service presets (SSH, HTTP, HTTPS, etc.)
curl --request GET \
--url https://api.storiza.store/vps/firewall/presets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/vps/firewall/presets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/firewall/presets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "Firewall presets retrieved successfully",
"data": [
{
"name": "<string>",
"protocol": "tcp",
"port": "<string>",
"description": "<string>"
}
]
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Was this page helpful?