List location groups
To show a list of location groups, you can send a GET request to /v1/l2_segments/location_groups. If it is necessary, modify the command with query parameters.
Authorization
bearerAuth In: header
Query Parameters
| Field | Details |
|---|---|
group_type? | stringValue in: A group type specifies what type of L2 Segments will be displayed: |
per_page? | integerDefault: Range: 1–100 The number of results [ 1 .. 100 ] displayed on a page. By default, 20 results are shown. |
page? | integerDefault: Min: The number of a page (>= 1) that will be returned. By default, it's 1. |
sorting? | stringValue in: Default: This parameter sorts items. By default, it's |
direction? | stringValue in: Default: This parameter defines if items are sorted in an ascending |
Response Body
application/json
curl -X GET "https://example.com/v1/l2_segments/location_groups"[ { "id": 76, "name": "location2031", "code": "location2031", "group_type": "public", "location_ids": [ 982 ], "location_codes": [ "location2029" ], "hyperscalers": [ "AWS", "Azure", "GCP" ] }]