Skip to main content

bring_your_own_ip_aggregates

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

Overview​

Namebring_your_own_ip_aggregates
TypeResource
Idovh.ip.bring_your_own_ip_aggregates

Fields​

The following fields are returned by SELECT queries:

Preview of an IP aggregation on BYOIP Additional IPs

NameDatatypeDescription
aggregation_ipstring (ip-block)Aggregation Additional IP that will be created (example: 192.0.2.0/24) (wire: aggregationIp)
children_ipsarrayExisting Additional IP(s) that will be aggregated (wire: childrenIps)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectipList aggregation options. Returns the larger Additional IPs this one can merge into, with the neighbors each would absorb. Aggregation applies to IPv4 blocks only. (Beta version)
createinsertip, aggregation_ipAggregate IPv4 blocks. Merges this BYOIP Additional IP and its neighbors into the chosen larger block (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 aggregation options. Returns the larger Additional IPs this one can merge into, with the neighbors each would absorb. Aggregation applies to IPv4 blocks only. (Beta version)

SELECT
aggregation_ip,
children_ips
FROM ovh.ip.bring_your_own_ip_aggregates
WHERE ip = '{{ ip }}' -- required
;

INSERT examples​

Aggregate IPv4 blocks. Merges this BYOIP Additional IP and its neighbors into the chosen larger block (async task). (Beta version)

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