UpdateNetworkSecurityGroup

PUT {{baseUrl}}/networkSecurityGroups/:networkSecurityGroupId

Updates the specified network security group.

To add or remove an existing VNIC from the group, use UpdateVnic.

To add a VNIC to the group when you create the VNIC, specify the NSG's OCID during creation. For example, see the nsgIds attribute in CreateVnicDetails.

To add or remove security rules from the group, use AddNetworkSecurityGroupSecurityRules or RemoveNetworkSecurityGroupSecurityRules.

To edit the contents of existing security rules in the group, use UpdateNetworkSecurityGroupSecurityRules.

Request Body

{"displayName"=>"cillum aute voluptate consectetur"}

HEADERS

KeyDatatypeRequiredDescription
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"compartmentId":"enim","id":"commodo quis enim ex","lifecycleState":"PROVISIONING","timeCreated":"2012-01-31T16:34:06.775Z","vcnId":"nostrud reprehenderit ea occaecat","definedTags":{},"displayName":"sit enim eiusmod","freeformTags":{}}