Skip to main content

vrops_outgoing_flows

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

Overview​

Namevrops_outgoing_flows
TypeResource
Idovh.dedicated_cloud.vrops_outgoing_flows

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
outgoing_flow_idintegerId of the VMware Aria Operations outgoing flow (wire: outgoingFlowId)
descriptionstringOutgoing flow description
ipstring (ipv4)IP address of the remote service (example: 192.0.2.0)
service_portintegerRemote service port (25, 465, 587 or 2525) (wire: servicePort)
statestringOutgoing flow state (creating, deleting, delivered, error, toCreate, toDelete, toUpdate, unknown, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoutgoing_flow_id, service_nameGet an Aria Operations outgoing flow. Returns the remote IP address and port, description and state of the outgoing flow.
listselectservice_namex_pagination_modeList Aria Operations outgoing flows. Returns the IDs of the outgoing flows allowed from Aria Operations.
createinsertservice_name, ip, service_portCreate an Aria Operations outgoing flow. Allows Aria Operations to reach a remote service on port 25, 465, 587 or 2525. Returns a task to track progress.
deletedeleteoutgoing_flow_id, service_nameDelete an Aria Operations outgoing flow. Removes the outgoing flow. Returns a task to track progress.
change_propertiesexecoutgoingFlowId, serviceNameUpdate an Aria Operations outgoing flow. Updates the description of the outgoing flow. 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"}})
outgoingFlowIdintegerId of the VMware Aria Operations outgoing flow
outgoing_flow_idintegerId of the VMware Aria Operations outgoing flow (wire: outgoingFlowId)
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 Aria Operations outgoing flow. Returns the remote IP address and port, description and state of the outgoing flow.

SELECT
outgoing_flow_id,
description,
ip,
service_port,
state
FROM ovh.dedicated_cloud.vrops_outgoing_flows
WHERE outgoing_flow_id = '{{ outgoing_flow_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create an Aria Operations outgoing flow. Allows Aria Operations to reach a remote service on port 25, 465, 587 or 2525. Returns a task to track progress.

INSERT INTO ovh.dedicated_cloud.vrops_outgoing_flows (
description,
ip,
service_port,
service_name
)
SELECT
'{{ description }}',
'{{ ip }}' /* required */,
{{ service_port }} /* required */,
'{{ 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 Aria Operations outgoing flow. Removes the outgoing flow. Returns a task to track progress.

DELETE FROM ovh.dedicated_cloud.vrops_outgoing_flows
WHERE outgoing_flow_id = '{{ outgoing_flow_id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Update an Aria Operations outgoing flow. Updates the description of the outgoing flow. Returns a task to track progress.

EXEC ovh.dedicated_cloud.vrops_outgoing_flows.change_properties
@outgoingFlowId='{{ outgoingFlowId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"description": "{{ description }}"
}'
;