ListNetworkSecurityGroups

get

/20160918/networkSecurityGroups

List network security groups, either NSGs in the specified compartment or NSGs associated with the specified VLAN. Specify either a compartmentId or a vlanId but not both. If you specify a vlanId, all other parameters are ignored.

Request

Supported Media Types
Query Parameters
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment.
    Default Value: none
  • Minimum Length: 1
    Maximum Length: 255
    A filter to return only resources that match the entire display name given.
  • A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
  • Minimum Value: 1
    Maximum Value: 1000
    For list pagination. The maximum number of results per page, or items to return in a paginated List call. 1 is the minimum, 1000 is the maximum.
    Default Value: 100
  • Minimum Length: 1
    Maximum Length: 512
    For list pagination. The value of the opc-next-page response header from the previous List call.
    Default Value: oracle.doceng.json.BetterJsonNull@2c07545f
  • The optional field to sort the results by.
    Default Value: NAME
    Allowed Values: [ "ID", "NAME", "TIME_CREATED" ]
  • The sort order to use, either ascending (ASC) or descending (DESC).
    Allowed Values: [ "ASC", "DESC" ]
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the VCN.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the VLAN.
Back to Top

Response

Supported Media Types

200 Response

The list is being retrieved.
Headers
  • For list pagination. When this header appears in the response, additional pages of results remain. Use this value as the page parameter to get the next page of items.
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : schema
Type: array
Show Source
  • NetworkSecurityGroup
    A network security group (NSG) provides virtual firewall rules for a specific set of VNICs in a VCN. Compare NSGs with SecurityLists, which provide virtual firewall rules to all the VNICs in a subnet. A network security group consists of two items: - The set of VNICs that all have the same security rule needs (for example, a group of Compute instances all running the same application). - A set of NSG SecurityRules that apply to the VNICs in the group. After creating an NSG, you can add VNICs and security rules to it. For example, when you create an instance, you can specify one or more NSGs to add the instance to (see CreateVnicDetails). Or you can add an existing instance to an NSG with UpdateVnic. To add security rules to an NSG, see AddNetworkSecurityGroupSecurityRules. To list the VNICs in an NSG, see ListNetworkSecurityGroupVnics. To list the security rules in an NSG, see ListNetworkSecurityGroupSecurityRules. Important: Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, Linux iptables, Windows firewall). If there are issues with some type of access to an instance, make sure all of the following are set correctly: - Any security rules in any NSGs the instance's VNIC belongs to. - Any SecurityLists associated with the instance's subnet. - The instance's OS firewall rules.
Nested Schema : NetworkSecurityGroup
Type: object
A network security group (NSG) provides virtual firewall rules for a specific set of VNICs in a VCN. Compare NSGs with SecurityLists, which provide virtual firewall rules to all the VNICs in a subnet. A network security group consists of two items: - The set of VNICs that all have the same security rule needs (for example, a group of Compute instances all running the same application). - A set of NSG SecurityRules that apply to the VNICs in the group. After creating an NSG, you can add VNICs and security rules to it. For example, when you create an instance, you can specify one or more NSGs to add the instance to (see CreateVnicDetails). Or you can add an existing instance to an NSG with UpdateVnic. To add security rules to an NSG, see AddNetworkSecurityGroupSecurityRules. To list the VNICs in an NSG, see ListNetworkSecurityGroupVnics. To list the security rules in an NSG, see ListNetworkSecurityGroupSecurityRules. Important: Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, Linux iptables, Windows firewall). If there are issues with some type of access to an instance, make sure all of the following are set correctly: - Any security rules in any NSGs the instance's VNIC belongs to. - Any SecurityLists associated with the instance's subnet. - The instance's OS firewall rules.
Show Source
Nested Schema : definedTags
Type: object
Additional Properties Allowed
Show Source
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations": {"CostCenter": "42"}}
Nested Schema : freeformTags
Type: object
Additional Properties Allowed
Show Source
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
Nested Schema : additionalProperties
Type: object
Additional Properties Allowed
Show Source
Key-value pair representing a defined tag key and value, scoped to a namespace. Example: {"CostCenter": "42"}
Nested Schema : additionalProperties
Type: object
The value of the tag. Only the String type is supported.

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

Default Response

An error has occurred.
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
Back to Top