Skip to main content

config_pop_datacenter_extras

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

Overview​

Nameconfig_pop_datacenter_extras
TypeResource
Idovh.ovh_cloud_connect.config_pop_datacenter_extras

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of the extra configuration
bgp_neighbor_areaintegerBGP AS number (wire: bgpNeighborArea)
bgp_neighbor_ipstring (ipv4)Router IP for BGP (example: 192.0.2.0) (wire: bgpNeighborIp)
next_hopstring (ipv4)Static route next hop (example: 192.0.2.0) (wire: nextHop)
statusstringStatus of the pop configuration (active, init, toDelete)
subnetstring (ipv4-block)Static route ip (example: 192.0.2.0/24)
typestringType of the configuration (bgp, network)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatacenter_id, extra_id, pop_id, service_nameReturns the route type, its BGP peer or static subnet and next hop, and its status.
listselectdatacenter_id, pop_id, service_namex_pagination_modeReturns the IDs of the BGP peers and static routes of this availability zone configuration.
createinsertdatacenter_id, pop_id, service_name, typeAdds a BGP peer (bgp) or a static route (network) to this availability zone configuration (async task).
deletedeletedatacenter_id, extra_id, pop_id, service_nameRemoves the BGP peer or static route (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"}})
datacenter_idintegerDatacenter ID (wire: datacenterId)
extra_idintegerExtra ID (wire: extraId)
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 route type, its BGP peer or static subnet and next hop, and its status.

SELECT
id,
bgp_neighbor_area,
bgp_neighbor_ip,
next_hop,
status,
subnet,
type
FROM ovh.ovh_cloud_connect.config_pop_datacenter_extras
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND extra_id = '{{ extra_id }}' -- required
AND pop_id = '{{ pop_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Adds a BGP peer (bgp) or a static route (network) to this availability zone configuration (async task).

INSERT INTO ovh.ovh_cloud_connect.config_pop_datacenter_extras (
bgp_neighbor_area,
bgp_neighbor_ip,
next_hop,
subnet,
type,
datacenter_id,
pop_id,
service_name
)
SELECT
{{ bgp_neighbor_area }},
'{{ bgp_neighbor_ip }}',
'{{ next_hop }}',
'{{ subnet }}',
'{{ type }}' /* required */,
'{{ datacenter_id }}',
'{{ pop_id }}',
'{{ service_name }}'
RETURNING
id,
resource_id,
function,
status
;

DELETE examples​

Removes the BGP peer or static route (async task).

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