HTTP GET requests
http.get MQL resource for querying Network infrastructure with cnquery and cnspec.
Network
HTTP GET requests
Use MQL in cnspec shell or policy:
http.getMin version: 9.0.0Defaults:
url statusCodeRelationships
3 resources · 3 relationships·Click to select, expand fields to see properties.
Fields (6)
| Field | Type | Description |
|---|---|---|
body | string | Body returned from this request |
followRedirectsrequired | int | Follow redirects |
header | http.header | Header returned from this request |
statusCode | int | Status returned from this request |
urlrequired | url | URL for this request |
version | string | Version of the HTTP request, (e.g., 1.1) |