Get Security Groups

Get Security Groups

Get all security groups

Request
URI
GET
https://api.mgmt.cloud.vmware.com//iaas/api/security-groups
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Responses
200

successful operation

Returns SecurityGroupResult of type(s) application/json
{
    "numberOfElements": 1,
    "content": [
        {
            "owner": "csp@vmware.com",
            "externalRegionId": "ap-northeast-2",
            "description": "my-description",
            "externalId": "i-cfe4-e241-e53b-756a9a2e25d2",
            "rules": [
                {
                    "protocol": "ANY, TCP, UDP",
                    "access": "Allow",
                    "service": "HTTPS, SSH",
                    "ipRangeCidr": "66.170.99.2/32",
                    "name": "5756f7e2",
                    "ports": "443, 1-655535",
                    "direction": "Outbound"
                }
            ],
            "orgId": "9e49",
            "organizationId": "deprecated",
            "createdAt": "2012-09-27",
            "cloudAccountIds": [
                "string"
            ],
            "name": "my-name",
            "id": "9e49",
            "updatedAt": "2012-09-27"
        }
    ],
    "totalElements": 1
}
integer As int64 As int64
numberOfElements
Optional

Number of elements in the current page

content
Optional

List of content items

integer As int64 As int64
totalElements
Optional

Total number of elements. In some cases the field may not be populated


403

Forbidden

Operation doesn't return any data structure