Skip to main content

campuses

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

Overview​

Namecampuses
TypeResource
Idovh.ip.campuses

Fields​

The following fields are returned by SELECT queries:

Campus of an IP address

NameDatatypeDescription
namestringCampus name (BHS, ERI, GRA, HIL, LIM, MIL, PAR, RBX, SBG, SGP, SYD, VIN, WAW, YNM, YYZ)
bring_your_own_ip_supported_rir_for_iparrayList of RIRs whose IPs can be imported in the campus (wire: bringYourOwnIpSupportedRirForIp)
datacentersarrayList of datacenters in the campus
descriptionstringDescription of the campus

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectList campuses. Returns each campus with its name, description, datacenters and the RIRs whose IP ranges it can import. (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"}})

SELECT examples​

List campuses. Returns each campus with its name, description, datacenters and the RIRs whose IP ranges it can import. (Beta version)

SELECT
name,
bring_your_own_ip_supported_rir_for_ip,
datacenters,
description
FROM ovh.ip.campuses
;