Create one or more security groups

post

/PASService/rest/services/v1/securityGroups

Creates single or multiple securitygroups.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

This response code indicates creation of one more more security groups successfully.
Back to Top

Examples

This example describes how to create one or more security groups.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X POST \ 
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/v1/securityGroups" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

{
"securityGroups": [
{
"securityGroupName": "OracleTestSecurityGroupDoc"
}
]
}

Example Response Body

The following shows an example of the response body in JSON format:

{
    "securityGroups": [
        "260E6966-ECD4-4189-910B-612D8C31B727"
    ]
}

Back to Top