Skip to main content

bring_your_own_ip_slices

Creates, updates, deletes, gets or lists a bring_your_own_ip_slices resource.

Overview​

Namebring_your_own_ip_slices
TypeResource
Idovh.ip.bring_your_own_ip_slices

Fields​

The following fields are returned by SELECT queries:

Preview of an IP slicing on BYOIP Additional IPs

NameDatatypeDescription
children_ipsarrayAdditional IP(s) that will be created (wire: childrenIps)
slicing_sizeintegerSlicing size (wire: slicingSize)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectipList slicing options. Returns, for each allowed size, the Additional IPs that slicing this one would create. Slicing applies to IPv4 blocks only. (Beta version)
createinsertip, slicing_sizeSlice an IPv4 block. Splits this BYOIP Additional IP into smaller Additional IPs of the chosen size (async task). (Beta version)

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
ipstring (ip-block)

SELECT examples​

List slicing options. Returns, for each allowed size, the Additional IPs that slicing this one would create. Slicing applies to IPv4 blocks only. (Beta version)

SELECT
children_ips,
slicing_size
FROM ovh.ip.bring_your_own_ip_slices
WHERE ip = '{{ ip }}' -- required
;

INSERT examples​

Slice an IPv4 block. Splits this BYOIP Additional IP into smaller Additional IPs of the chosen size (async task). (Beta version)

INSERT INTO ovh.ip.bring_your_own_ip_slices (
slicing_size,
ip
)
SELECT
{{ slicing_size }} /* required */,
'{{ ip }}'
RETURNING
task_id,
comment,
destination,
done_date,
function,
last_update,
start_date,
status
;