CreateNetworkSecurityGroup
POST {{baseUrl}}/networkSecurityGroups
Creates a new network security group for the specified VCN.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "vcnId"=>"reprehenderit minim", "displayName"=>"tempor nostrud Lorem"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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 (for example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (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":{}}