GET /v1/roles?includeCounts=true&cursor=&pageSize=500 HTTP/2
Host: api.defined.net
Sec-Ch-Ua: "Chromium";v="109", "Not_A Brand";v="99"
Accept: application/json
Content-Type: application/json
Sec-Ch-Ua-Mobile: ?0
Authorization: Bearer sess-CcSodB65KzkdJuPzdp-A-vdDx2P-Vxsynpk_LTGPUmw auth-O7mugxdYta-RKtLMqDW4j8XCJ85EfZKKezeZZXBYtFQ
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.75 Safari/537.36
Sec-Ch-Ua-Platform: "Linux"
Origin: https://admin.defined.net
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

HTTP/2 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://admin.defined.net
Access-Control-Expose-Headers: X-Request-Id
Cache-Control: no-store
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubdomains
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: 4WYWVGZYCTXN4CQOIAFZKL4HSE
Content-Length: 240
Date: Fri, 03 Feb 2023 15:31:08 GMT

{"data":[{"id":"role-PLK37J7HFPGUG7SMXD4SB65A5U","name":"Lighthouse","description":"","firewallRulesCount":1,"createdAt":"2023-02-03T14:35:11Z","modifiedAt":"2023-02-03T14:35:11Z"}],"metadata":{"totalCount":1,"page":{"start":0,"count":1}}}

GET /v1/roles?includeCounts=true&cursor=&pageSize=25 HTTP/2
Host: api.defined.net
Sec-Ch-Ua: "Chromium";v="109", "Not_A Brand";v="99"
Accept: application/json
Content-Type: application/json
Sec-Ch-Ua-Mobile: ?0
Authorization: Bearer sess-CcSodB65KzkdJuPzdp-A-vdDx2P-Vxsynpk_LTGPUmw auth-O7mugxdYta-RKtLMqDW4j8XCJ85EfZKKezeZZXBYtFQ
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.75 Safari/537.36
Sec-Ch-Ua-Platform: "Linux"
Origin: https://admin.defined.net
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

HTTP/2 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://admin.defined.net
Access-Control-Expose-Headers: X-Request-Id
Cache-Control: no-store
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubdomains
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: L26XAKHIORN4IM4YK6EJSGDKCQ
Content-Length: 240
Date: Fri, 03 Feb 2023 15:43:42 GMT

{"data":[{"id":"role-PLK37J7HFPGUG7SMXD4SB65A5U","name":"Lighthouse","description":"","firewallRulesCount":1,"createdAt":"2023-02-03T14:35:11Z","modifiedAt":"2023-02-03T14:35:11Z"}],"metadata":{"totalCount":1,"page":{"start":0,"count":1}}}

POST /v1/roles HTTP/2
Host: api.defined.net
Content-Length: 174
Sec-Ch-Ua: "Chromium";v="109", "Not_A Brand";v="99"
Accept: application/json
Content-Type: application/json
Sec-Ch-Ua-Mobile: ?0
Authorization: Bearer sess-CcSodB65KzkdJuPzdp-A-vdDx2P-Vxsynpk_LTGPUmw auth-O7mugxdYta-RKtLMqDW4j8XCJ85EfZKKezeZZXBYtFQ
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.75 Safari/537.36
Sec-Ch-Ua-Platform: "Linux"
Origin: https://admin.defined.net
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

{"name":"testrole","description":"1234role","firewallRules":[{"protocol":"ICMP","portRange":null,"description":"Allows ping requests from other hosts","allowedRoleID":null}]}

HTTP/2 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://admin.defined.net
Access-Control-Expose-Headers: X-Request-Id
Cache-Control: no-store
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubdomains
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: QS5G63RZGSYL6U67ZC6V4JKFKM
Content-Length: 308
Date: Fri, 03 Feb 2023 15:44:35 GMT

{"data":{"id":"role-KHWBRCVZFHSIXCV75P3FDZFTEU","name":"testrole","description":"1234role","createdAt":"2023-02-03T15:44:35Z","modifiedAt":"2023-02-03T15:44:35Z","firewallRules":[{"allowedRoleID":null,"protocol":"ICMP","portRange":null,"description":"Allows ping requests from other hosts"}]},"metadata":{}}
