VcnNsgIdsDetails¶
-
class
oci.distributed_database_v26.models.VcnNsgIdsDetails(**kwargs)¶ Bases:
objectSpecifies the Virtual Cloud Network (VCN) and the list of associated Network Security Group (NSG) OCIDs.
This model is shared across create (POST), update (PUT/PATCH), and retrieve (GET) operations.
- During create, nsgIds (if provided) specifies the NSGs to associate with the new resource.
- During update or patch, nsgIds modifies the associations: provide an empty array ([]) to clear all NSGs, or provide a new list to replace them.
- GET responses return the current associations (which may be empty).
Methods
__init__(**kwargs)Initializes a new VcnNsgIdsDetails object with values from keyword arguments. Attributes
nsg_ids[Required] Gets the nsg_ids of this VcnNsgIdsDetails. vcn_id[Required] Gets the vcn_id of this VcnNsgIdsDetails. -
__init__(**kwargs)¶ Initializes a new VcnNsgIdsDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - vcn_id (str) – The value to assign to the vcn_id property of this VcnNsgIdsDetails.
- nsg_ids (list[str]) – The value to assign to the nsg_ids property of this VcnNsgIdsDetails.
-
nsg_ids¶ [Required] Gets the nsg_ids of this VcnNsgIdsDetails. The list of OCIDs of the network security groups (NSGs) associated with resources in this VCN. For more information about NSGs, see Security Rules.
Returns: The nsg_ids of this VcnNsgIdsDetails. Return type: list[str]