List Firewall Rule Sets
List Firewall Rule Sets on the NodeRings client API (GET /v1/firewall/rulesets).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Query Parameters
page?integer
Format
int32pageSize?integer
Format
int32name?string
filterAttachment?string
Optional: Filter by whether any virtual machine is attached to the ruleset.
- FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets
- FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached
- FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached
Value in
"FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED" | "FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED" | "FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED"Response Body
application/json
curl -X GET "https://api.noderings.com/v1/firewall/rulesets?page&pageSize&name&filterAttachment" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}"{
"rulesets": [
{
"id": "string",
"name": "string",
"timestamps": {
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z"
},
"ruleCount": 0,
"attachedVmCount": 0,
"attachedVmHostnames": [
"string"
]
}
],
"totalCount": 0
}