policies
Creates, updates, deletes, gets or lists a policies resource.
Overview​
| Name | policies |
| Type | Resource |
| Id | oci.load_balancer.policies |
Fields​
The following fields are returned by SELECT queries:
- list
A policy that determines how traffic is distributed among backend servers.<br />For more information on load balancing policies, see<br />[How Load Balancing Policies Work](/Content/Balance/Reference/lbpolicies.htm).<br />
| Name | Datatype | Description |
|---|---|---|
name | string | The name of a load balancing policy. Example: 'LEAST_CONNECTIONS' |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | compartmentId, region | opc-request-id, limit, page | Lists the available load balancer policies. |
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 |
|---|---|---|
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list. |
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 (int64) | 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 |
opc-request-id | string | The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
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). Example: 3 |
SELECT examples​
- list
Lists the available load balancer policies.
SELECT
name
FROM oci.load_balancer.policies
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;