Get all security groups

get

/PASService/rest/services/v1/securityGroups

Gets a list of latest 100 security groups and also define expand attributes to expand a user by its sub-resources such as user

Request

Query Parameters
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;loc!="NY.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

This operation fetches all security groups successfully.
Back to Top

Examples

This example describes how to get a list of latest 100 users and define expand attributes to expand a user by its sub-resources such as security groups.

Example cURL Command

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

curl \
    -X GET \
    -H "Content-Type: application/json" \
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
    -L "http://server:port/PASService/rest/services/v1/securityGroups"

Example Response Body

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

{
    "count": 19,
    "offset": 0,
    "limit": 100,
    "securityGroups": [
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/bhagyat",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "bhagyat",
            "securityGroupGuid": "09A46305-B163-43C2-A849-CB3CC4B062AD"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Super",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Super",
            "securityGroupGuid": "0BC5B169-5C30-4D47-81BE-95E56AC1B54A"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/AbdulCompanySecurityGroup",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "AbdulCompanySecurityGroup",
            "securityGroupGuid": "0CDFAFA7-388E-4446-9FB0-8E4109FA2C92"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Alamere Group Super",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Alamere Group Super",
            "securityGroupGuid": "1D41CAD3-0D24-49AC-8BB6-7824A5AA5E84"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Super",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Super",
            "securityGroupGuid": "2F5BD91E-0029-482B-B3A2-3462D1033D41"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Analyst",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Analyst",
            "securityGroupGuid": "4902A659-CA11-4D54-9695-5412D92FCDD0"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/OracleTestSecurityGroup",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "OracleTestSecurityGroup",
            "securityGroupGuid": "572485B6-2239-40E6-9B7A-B35F74C9087C"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/SecurityTest",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "SecurityTest",
            "securityGroupGuid": "758468E8-8FDC-4951-9ABE-504F75940519"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/AlamereTest",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "AlamereTest",
            "securityGroupGuid": "820318E4-EF0E-45EB-9FED-7B6D1114B7C8"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Mask High Security",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Mask High Security",
            "securityGroupGuid": "8E2881C1-4703-4383-A860-7EBFE59F35E7"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/OracleTestSecurityGroupDoc",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "OracleTestSecurityGroupDoc",
            "securityGroupGuid": "98F1645B-253D-4219-B8F4-5A1BEF477C18"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/RegressionGroup-2",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "RegressionGroup-2",
            "securityGroupGuid": "9C8E6F3F-49BA-4561-9452-9CA476607668"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/International Super",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "International Super",
            "securityGroupGuid": "B85DB228-A621-4EB1-AE16-2CA9C5AA1DCA"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/CommentsAll",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "CommentsAll",
            "securityGroupGuid": "CF63BF46-49BC-49E6-A0B4-DB8D9345FB58"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Mask Medium Security",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Mask Medium Security",
            "securityGroupGuid": "D864A8B8-6736-4BD5-9275-E68B74A796E4"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Tester",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Tester",
            "securityGroupGuid": "DEF35128-A0FD-41FC-82D3-ABC54393C6C0"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/Prototype Mask Low Security",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "Prototype Mask Low Security",
            "securityGroupGuid": "E421DEC1-CC47-41B4-94CD-5CE31C8400ED"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/CommentsUserOnly",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "CommentsUserOnly",
            "securityGroupGuid": "EC055C02-1438-4744-8BA0-A0009752E81E"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/v1/securityGroups/RegressionGroup",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "securityGroupName": "RegressionGroup",
            "securityGroupGuid": "F75B1167-1D4B-403B-938A-D3ECCEC156A1"
        }
    ]
}
Back to Top