network_security_groups
Creates, updates, deletes, gets or lists a network_security_groups resource.
Overview​
| Name | network_security_groups |
| Type | Resource |
| Id | oci.load_balancer.network_security_groups |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update | update | loadBalancerId, region | opc-request-id, opc-retry-token | Updates the network security groups associated with the specified load balancer. |
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 |
|---|---|---|
loadBalancerId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer to update the NSGs for. |
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) |
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. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). |
UPDATE examples​
- update
Updates the network security groups associated with the specified load balancer.
UPDATE oci.load_balancer.network_security_groups
SET
networkSecurityGroupIds = '{{ networkSecurityGroupIds }}'
WHERE
loadBalancerId = '{{ loadBalancerId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND opc-retry-token = '{{ opc-retry-token}}';