drg_route_distribution_statements
Creates, updates, deletes, gets or lists a drg_route_distribution_statements resource.
Overview​
| Name | drg_route_distribution_statements |
| Type | Resource |
| Id | oci.network.drg_route_distribution_statements |
Fields​
The following fields are returned by SELECT queries:
- list
A single statement within a route distribution. All match criteria in a statement must be met<br />for the action to take place.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The Oracle-assigned ID of the route distribution statement. |
action | string | ACCEPT indicates the route should be imported or exported as-is. (ACCEPT) |
matchCriteria | array | The 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. |
priority | integer | This 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | drgRouteDistributionId, region | limit, page, sortBy, sortOrder | Lists the statements for the specified route distribution. |
update | update | drgRouteDistributionId, region, statements | Updates 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.
| Name | Datatype | Description |
|---|---|---|
drgRouteDistributionId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. |
region | string | OCI 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) |
limit | integer | For 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 |
page | string | For 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). |
sortBy | string | The field to sort by. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive. |
SELECT examples​
- list
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​
- update
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;