Scaleway logo
Public Gateways API

SSH bastion can be restricted by defining ranges of IPs that are allowed to connect. The default entry of 0.0.0.0/0 allows all IPs to connect.


Set all IP ranges allowed for SSH bastion

PUT
https://api.scaleway.com
/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips

Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.

Set all IP ranges allowed for SSH bastion › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
it-mil-1
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
gateway_id
​string · required

ID of the gateway on which to set the allowed IP range.

Set all IP ranges allowed for SSH bastion › Request Body

ip_ranges
​string[]

New list of IP ranges (each range in CIDR notation) allowed to connect to the SSH bastion.

Set all IP ranges allowed for SSH bastion › Responses

200
ip_ranges
​string[]

Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network)


Add allowed IP range to SSH bastion

POST
https://api.scaleway.com
/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips

Add an IP range (in CIDR notation) to be allowed to connect to the SSH bastion.

Add allowed IP range to SSH bastion › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
it-mil-1
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
gateway_id
​string · required

ID of the gateway to add the allowed IP range to.

Add allowed IP range to SSH bastion › Request Body

ip_range
​string

IP range allowed to connect to the SSH bastion. (IP network)

Add allowed IP range to SSH bastion › Responses

200
ip_ranges
​string[]

Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network)


Delete allowed IP range from SSH bastion

DELETE
https://api.scaleway.com
/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips/{ip_range}

Delete an IP range (defined in CIDR notation) from SSH bastion, so that it is no longer allowed to connect.

Delete allowed IP range from SSH bastion › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
it-mil-1
nl-ams-1
nl-ams-2
nl-ams-3
pl-waw-1
pl-waw-2
gateway_id
​string · required

ID of the gateway on which to delete the allowed IP range.

ip_range
​string · required

IP range to delete from SSH bastion's list of allowed IPs. (IP network)

Delete allowed IP range from SSH bastion › Responses

No data returned