Skip to main content

drg_route_distribution_statements

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

Overview​

Namedrg_route_distribution_statements
TypeResource
Idoci.network.drg_route_distribution_statements

Fields​

The following fields are returned by SELECT queries:

A single statement within a route distribution. All match criteria in a statement must be met<br />for the action to take place.<br />

NameDatatypeDescription
idstringThe Oracle-assigned ID of the route distribution statement.
actionstringACCEPT indicates the route should be imported or exported as-is. (ACCEPT)
matchCriteriaarrayThe action is applied only if all of the match criteria is met. If there are no match criteria in a statement, any input is considered a match and the action is applied.
priorityintegerThis field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdrgRouteDistributionId, regionlimit, page, sortBy, sortOrderLists the statements for the specified route distribution.
updateupdatedrgRouteDistributionId, region, statementsUpdates one or more route distribution statements in the specified route distribution.<br />

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
drgRouteDistributionIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the route distribution.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
sortBystringThe field to sort by.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

SELECT examples​

Lists the statements for the specified route distribution.

SELECT
id,
action,
matchCriteria,
priority
FROM oci.network.drg_route_distribution_statements
WHERE drgRouteDistributionId = '{{ drgRouteDistributionId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
;

UPDATE examples​

Updates one or more route distribution statements in the specified route distribution.<br />

UPDATE oci.network.drg_route_distribution_statements
SET
statements = '{{ statements }}'
WHERE
drgRouteDistributionId = '{{ drgRouteDistributionId }}' --required
AND region = '{{ region }}' --required
AND statements = '{{ statements }}' --required
RETURNING
id,
action,
matchCriteria,
priority;