Skip to main content

datacenter_nsxt_edges

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

Overview​

Namedatacenter_nsxt_edges
TypeResource
Idovh.dedicated_cloud.datacenter_nsxt_edges

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the NSX-T Edge
host_idintegerHost id where NSX-T Edge is located (wire: hostId)
nsxt_edge_idintegerId of the NSX-T Edge (wire: nsxtEdgeId)
disk_locationstringLocation of NSX-T Edge disks (wire: diskLocation)
ipstring (ipv4)IP of the NSX-T Edge (example: 192.0.2.0)
mo_refstringThe VMware MoRef of the NSX-T Edge (wire: moRef)
sizestringSize of the NSX-T Edge (LARGE, MEDIUM, XLARGE)
statestringState of the NSX-T Edge (available, delivered, disabled, disabling, error, migrating, provisionning, recycling, reserved, toDisable, toProvision, toRecycle, toRemove, toUnprovision, unprovisionning, upgrading)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatacenter_id, nsxt_edge_id, service_nameGet an edge node
listselectdatacenter_id, service_namex_pagination_modeList edge nodes
createinsertdatacenter_id, service_nameCreate an edge node
deletedeletedatacenter_id, nsxt_edge_id, service_nameDelete an edge node. Removes the NSX-T edge node from the datacenter. Returns a task to track progress.
relocate_edgeexecdatacenterId, nsxtEdgeId, serviceNameRelocate an edge node. Moves the compute resources of the edge node to another host, its disks to another datastore, or both. Returns a task to track progress.

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"}})
datacenterIdintegerId of the Datacenter
datacenter_idintegerId of the Datacenter (wire: datacenterId)
nsxtEdgeIdintegerId of the NSX-T Edge
nsxt_edge_idintegerId of the NSX-T Edge (wire: nsxtEdgeId)
serviceNamestringDomain of the service
service_namestringDomain of the service (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​

Get an edge node

SELECT
name,
host_id,
nsxt_edge_id,
disk_location,
ip,
mo_ref,
size,
state
FROM ovh.dedicated_cloud.datacenter_nsxt_edges
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND nsxt_edge_id = '{{ nsxt_edge_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create an edge node

INSERT INTO ovh.dedicated_cloud.datacenter_nsxt_edges (
datacenter_id,
service_name
)
SELECT
'{{ datacenter_id }}',
'{{ service_name }}'
RETURNING
name,
datacenter_id,
filer_id,
host_id,
network_access_id,
order_id,
parent_task_id,
task_id,
user_id,
vlan_id,
created_by,
created_from,
description,
end_date,
execution_date,
last_modification_date,
maintenance_date_from,
maintenance_date_to,
network,
progress,
state,
type
;

DELETE examples​

Delete an edge node. Removes the NSX-T edge node from the datacenter. Returns a task to track progress.

DELETE FROM ovh.dedicated_cloud.datacenter_nsxt_edges
WHERE datacenter_id = '{{ datacenter_id }}' --required
AND nsxt_edge_id = '{{ nsxt_edge_id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Relocate an edge node. Moves the compute resources of the edge node to another host, its disks to another datastore, or both. Returns a task to track progress.

EXEC ovh.dedicated_cloud.datacenter_nsxt_edges.relocate_edge
@datacenterId='{{ datacenterId }}' --required,
@nsxtEdgeId='{{ nsxtEdgeId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"datastore": "{{ datastore }}",
"hostId": {{ hostId }}
}'
;