Skip to main content

config_pops

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

Overview​

Nameconfig_pops
TypeResource
Idovh.ovh_cloud_connect.config_pops

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of the Pop Configuration
interface_idintegerID of the interface (wire: interfaceId)
customer_bgp_areaintegerCustomer Private AS (wire: customerBgpArea)
ovh_bgp_areaintegerOVH Private AS (wire: ovhBgpArea)
statusstringStatus of the pop configuration (active, init, toDelete)
subnetstring (ipv4-block)Subnet should be a /30, first IP for OVH, second IP for customer (example: 192.0.2.0/24)
typestringType of the pop configuration (l2, l3)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpop_id, service_nameReturns the configuration's type, interface, subnet, AS numbers and status.
listselectservice_namex_pagination_modeReturns the IDs of the PoP configurations.
createinsertservice_name, interface_id, typeSets configuration for an interface from interfaceList; Provided settings depends on type L2 or L3 (async task).
deletedeletepop_id, service_nameRemoves the PoP configuration from its interface (async task).

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"}})
pop_idintegerPop ID (wire: popId)
service_namestring (uuid)Service name (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the configuration's type, interface, subnet, AS numbers and status.

SELECT
id,
interface_id,
customer_bgp_area,
ovh_bgp_area,
status,
subnet,
type
FROM ovh.ovh_cloud_connect.config_pops
WHERE pop_id = '{{ pop_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Sets configuration for an interface from interfaceList; Provided settings depends on type L2 or L3 (async task).

INSERT INTO ovh.ovh_cloud_connect.config_pops (
customer_bgp_area,
interface_id,
ovh_bgp_area,
subnet,
type,
service_name
)
SELECT
{{ customer_bgp_area }},
{{ interface_id }} /* required */,
{{ ovh_bgp_area }},
'{{ subnet }}',
'{{ type }}' /* required */,
'{{ service_name }}'
RETURNING
id,
resource_id,
function,
status
;

DELETE examples​

Removes the PoP configuration from its interface (async task).

DELETE FROM ovh.ovh_cloud_connect.config_pops
WHERE pop_id = '{{ pop_id }}' --required
AND service_name = '{{ service_name }}' --required
;