Skip to main content

network_security_groups

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

Overview​

Namenetwork_security_groups
TypeResource
Idoci.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:

NameAccessible byRequired ParamsOptional ParamsDescription
updateupdateloadBalancerId, regionopc-request-id, opc-retry-tokenUpdates 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.

NameDatatypeDescription
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer to update the NSGs for.
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)
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA 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​

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}}';