Rapid7 · Capability

InsightVM API — Policy

InsightVM API — Policy. 26 operations. Lead operation: Policies For Asset. Self-contained Naftiko capability covering one business surface.

InsightVM API — Policy is a Naftiko capability published by Rapid7, one of 47 capabilities the APIs.io network indexes for this provider. It bundles 26 operations across the GET method rooted at /v1/api/3.

The capability includes 26 read-only operations. Lead operation: Policies For Asset. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Rapid7 and Policy.

Run with Naftiko Rapid7Policy

What You Can Do

GET
Getpoliciesforasset — Policies For Asset
/v1/api/3/assets/{assetId}/policies
GET
Getassetpolicychildren — Policy Rules or Groups Directly Under Policy For Asset
/v1/api/3/assets/{assetId}/policies/{policyId}/children
GET
Getassetpolicygroupchildren — Policy Rules or Groups Directly Under Policy Group For Asset
/v1/api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/children
GET
Getpolicygroupruleswithassetassessment — Policy Rules Under Policy Group For Asset
/v1/api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/rules
GET
Getassetpolicyrulessummary — Policy Rules For Asset
/v1/api/3/assets/{assetId}/policies/{policyId}/rules
GET
Getpolicies — Policies
/v1/api/3/policies
GET
Getpolicychildren — Policy Rules or Groups Directly Under Policy
/v1/api/3/policies/{id}/children
GET
Getpolicy — Policy
/v1/api/3/policies/{policyId}
GET
Getpolicyassetresults — Policy Asset Results
/v1/api/3/policies/{policyId}/assets
GET
Getpolicyassetresult — Policy Asset Result
/v1/api/3/policies/{policyId}/assets/{assetId}
GET
Getpolicygroups — Policy Groups
/v1/api/3/policies/{policyId}/groups
GET
Getpolicygroup — Policy Group
/v1/api/3/policies/{policyId}/groups/{groupId}
GET
Getpolicygroupassetresults — Assets Compliance For Policy Rules Under Policy Group
/v1/api/3/policies/{policyId}/groups/{groupId}/assets
GET
Getpolicygroupassetresult — Asset Compliance For Policy Rules Under Policy Group
/v1/api/3/policies/{policyId}/groups/{groupId}/assets/{assetId}
GET
Getpolicygroupchildren — Policy Rules or Groups Directly Under Policy Group
/v1/api/3/policies/{policyId}/groups/{groupId}/children
GET
Getdescendantpolicyrules — Policy Rules Under Policy Group
/v1/api/3/policies/{policyId}/groups/{groupId}/rules
GET
Getpolicyrules — Policy Rules
/v1/api/3/policies/{policyId}/rules
GET
Getdisabledpolicyrules — Disabled Policy Rules
/v1/api/3/policies/{policyId}/rules/disabled
GET
Getpolicyrule — Policy Rule
/v1/api/3/policies/{policyId}/rules/{ruleId}
GET
Getpolicyruleassetresults — Assets Compliance For Policy Rule
/v1/api/3/policies/{policyId}/rules/{ruleId}/assets
GET
Getpolicyruleassetresult — Asset Compliance For Policy Rule
/v1/api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}
GET
Getpolicyruleassetresultproof — Policy Rule Proof For Asset
/v1/api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}/proof
GET
Getpolicyrulecontrols — Policy Rule Controls
/v1/api/3/policies/{policyId}/rules/{ruleId}/controls
GET
Getpolicyrulerationale — Policy Rule Rationale
/v1/api/3/policies/{policyId}/rules/{ruleId}/rationale
GET
Getpolicyruleremediation — Policy Rule Remediation
/v1/api/3/policies/{policyId}/rules/{ruleId}/remediation
GET
Getpolicysummary — Policy Compliance Summaries
/v1/api/3/policy/summary

MCP Tools

rapid7-getpoliciesforasset

Policies For Asset

read-only idempotent
rapid7-getassetpolicychildren

Policy Rules or Groups Directly Under Policy For Asset

read-only idempotent
rapid7-getassetpolicygroupchildren

Policy Rules or Groups Directly Under Policy Group For Asset

read-only idempotent
rapid7-getpolicygroupruleswithassetassessment

Policy Rules Under Policy Group For Asset

read-only idempotent
rapid7-getassetpolicyrulessummary

Policy Rules For Asset

read-only idempotent
rapid7-getpolicies

Policies

read-only idempotent
rapid7-getpolicychildren

Policy Rules or Groups Directly Under Policy

read-only idempotent
rapid7-getpolicy

Policy

read-only idempotent
rapid7-getpolicyassetresults

Policy Asset Results

read-only idempotent
rapid7-getpolicyassetresult

Policy Asset Result

read-only idempotent
rapid7-getpolicygroups

Policy Groups

read-only idempotent
rapid7-getpolicygroup

Policy Group

read-only idempotent
rapid7-getpolicygroupassetresults

Assets Compliance For Policy Rules Under Policy Group

read-only idempotent
rapid7-getpolicygroupassetresult

Asset Compliance For Policy Rules Under Policy Group

read-only idempotent
rapid7-getpolicygroupchildren

Policy Rules or Groups Directly Under Policy Group

read-only idempotent
rapid7-getdescendantpolicyrules

Policy Rules Under Policy Group

read-only idempotent
rapid7-getpolicyrules

Policy Rules

read-only idempotent
rapid7-getdisabledpolicyrules

Disabled Policy Rules

read-only idempotent
rapid7-getpolicyrule

Policy Rule

read-only idempotent
rapid7-getpolicyruleassetresults

Assets Compliance For Policy Rule

read-only idempotent
rapid7-getpolicyruleassetresult

Asset Compliance For Policy Rule

read-only idempotent
rapid7-getpolicyruleassetresultproof

Policy Rule Proof For Asset

read-only idempotent
rapid7-getpolicyrulecontrols

Policy Rule Controls

read-only idempotent
rapid7-getpolicyrulerationale

Policy Rule Rationale

read-only idempotent
rapid7-getpolicyruleremediation

Policy Rule Remediation

read-only idempotent
rapid7-getpolicysummary

Policy Compliance Summaries

read-only idempotent

Capability Spec

insightvm-console-swagger-policy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: InsightVM API — Policy
  description: 'InsightVM API — Policy. 26 operations. Lead operation: Policies For Asset. Self-contained Naftiko capability covering one business surface.'
  tags:
  - Rapid7
  - Policy
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    RAPID7_API_KEY: RAPID7_API_KEY
capability:
  consumes:
  - type: http
    namespace: insightvm-console-swagger-policy
    baseUri: https://localhost:3780
    description: InsightVM API — Policy business capability. Self-contained, no shared references.
    resources:
    - name: api-3-assets-assetid-policies
      path: /api/3/assets/{assetId}/policies
      operations:
      - name: getpoliciesforasset
        method: GET
        description: Policies For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
        - name: applicableOnly
          in: query
          type: boolean
          description: An optional boolean parameter indicating the policies retrieved should only include those with a policy compliance status of either a PASS of FAIL result. Default value is `false`, which will also inc
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-assets-assetid-policies-policyid-children
      path: /api/3/assets/{assetId}/policies/{policyId}/children
      operations:
      - name: getassetpolicychildren
        method: GET
        description: Policy Rules or Groups Directly Under Policy For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
    - name: api-3-assets-assetid-policies-policyid-groups-groupid-childr
      path: /api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/children
      operations:
      - name: getassetpolicygroupchildren
        method: GET
        description: Policy Rules or Groups Directly Under Policy Group For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
    - name: api-3-assets-assetid-policies-policyid-groups-groupid-rules
      path: /api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/rules
      operations:
      - name: getpolicygroupruleswithassetassessment
        method: GET
        description: Policy Rules Under Policy Group For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-assets-assetid-policies-policyid-rules
      path: /api/3/assets/{assetId}/policies/{policyId}/rules
      operations:
      - name: getassetpolicyrulessummary
        method: GET
        description: Policy Rules For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies
      path: /api/3/policies
      operations:
      - name: getpolicies
        method: GET
        description: Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filters the retrieved policies with those whose titles that match the parameter.
        - name: scannedOnly
          in: query
          type: boolean
          description: Flag indicating the policies retrieved should only include those with Pass or Fail compliance results. The list of scanned policies is based on the user's list of accessible assets.
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-id-children
      path: /api/3/policies/{id}/children
      operations:
      - name: getpolicychildren
        method: GET
        description: Policy Rules or Groups Directly Under Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The identifier of the policy
          required: true
    - name: api-3-policies-policyid
      path: /api/3/policies/{policyId}
      operations:
      - name: getpolicy
        method: GET
        description: Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
    - name: api-3-policies-policyid-assets
      path: /api/3/policies/{policyId}/assets
      operations:
      - name: getpolicyassetresults
        method: GET
        description: Policy Asset Results
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: applicableOnly
          in: query
          type: boolean
          description: An optional boolean parameter indicating the assets retrieved should only include those with rule results of either PASS or FAIL. Default value is `false`, which will also include assets with a compli
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-assets-assetid
      path: /api/3/policies/{policyId}/assets/{assetId}
      operations:
      - name: getpolicyassetresult
        method: GET
        description: Policy Asset Result
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
    - name: api-3-policies-policyid-groups
      path: /api/3/policies/{policyId}/groups
      operations:
      - name: getpolicygroups
        method: GET
        description: Policy Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-groups-groupid
      path: /api/3/policies/{policyId}/groups/{groupId}
      operations:
      - name: getpolicygroup
        method: GET
        description: Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
    - name: api-3-policies-policyid-groups-groupid-assets
      path: /api/3/policies/{policyId}/groups/{groupId}/assets
      operations:
      - name: getpolicygroupassetresults
        method: GET
        description: Assets Compliance For Policy Rules Under Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
        - name: applicableOnly
          in: query
          type: boolean
          description: An optional boolean parameter indicating the assets retrieved should only include those with rule results of either PASS or FAIL. Default value is `false`, which will also include assets with a compli
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-groups-groupid-assets-assetid
      path: /api/3/policies/{policyId}/groups/{groupId}/assets/{assetId}
      operations:
      - name: getpolicygroupassetresult
        method: GET
        description: Asset Compliance For Policy Rules Under Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
    - name: api-3-policies-policyid-groups-groupid-children
      path: /api/3/policies/{policyId}/groups/{groupId}/children
      operations:
      - name: getpolicygroupchildren
        method: GET
        description: Policy Rules or Groups Directly Under Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
    - name: api-3-policies-policyid-groups-groupid-rules
      path: /api/3/policies/{policyId}/groups/{groupId}/rules
      operations:
      - name: getdescendantpolicyrules
        method: GET
        description: Policy Rules Under Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: groupId
          in: path
          type: integer
          description: The identifier of the policy group.
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-rules
      path: /api/3/policies/{policyId}/rules
      operations:
      - name: getpolicyrules
        method: GET
        description: Policy Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-rules-disabled
      path: /api/3/policies/{policyId}/rules/disabled
      operations:
      - name: getdisabledpolicyrules
        method: GET
        description: Disabled Policy Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-rules-ruleid
      path: /api/3/policies/{policyId}/rules/{ruleId}
      operations:
      - name: getpolicyrule
        method: GET
        description: Policy Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
    - name: api-3-policies-policyid-rules-ruleid-assets
      path: /api/3/policies/{policyId}/rules/{ruleId}/assets
      operations:
      - name: getpolicyruleassetresults
        method: GET
        description: Assets Compliance For Policy Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
        - name: applicableOnly
          in: query
          type: boolean
          description: An optional boolean parameter indicating the assets retrieved should only include those with rule results of either PASS or FAIL. Default value is `false`, which will also include assets with a compli
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-rules-ruleid-assets-assetid
      path: /api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}
      operations:
      - name: getpolicyruleassetresult
        method: GET
        description: Asset Compliance For Policy Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
    - name: api-3-policies-policyid-rules-ruleid-assets-assetid-proof
      path: /api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}/proof
      operations:
      - name: getpolicyruleassetresultproof
        method: GET
        description: Policy Rule Proof For Asset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
        - name: assetId
          in: path
          type: integer
          description: The identifier of the asset.
          required: true
    - name: api-3-policies-policyid-rules-ruleid-controls
      path: /api/3/policies/{policyId}/rules/{ruleId}/controls
      operations:
      - name: getpolicyrulecontrols
        method: GET
        description: Policy Rule Controls
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
        - name: page
          in: query
          type: integer
          description: The index of the page (zero-based) to retrieve.
        - name: size
          in: query
          type: integer
          description: The number of records per page to retrieve.
        - name: sort
          in: query
          type: array
          description: 'The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.'
    - name: api-3-policies-policyid-rules-ruleid-rationale
      path: /api/3/policies/{policyId}/rules/{ruleId}/rationale
      operations:
      - name: getpolicyrulerationale
        method: GET
        description: Policy Rule Rationale
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
    - name: api-3-policies-policyid-rules-ruleid-remediation
      path: /api/3/policies/{policyId}/rules/{ruleId}/remediation
      operations:
      - name: getpolicyruleremediation
        method: GET
        description: Policy Rule Remediation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: integer
          description: The identifier of the policy
          required: true
        - name: ruleId
          in: path
          type: integer
          description: The identifier of the policy rule.
          required: true
    - name: api-3-policy-summary
      path: /api/3/policy/summary
      operations:
      - name: getpolicysummary
        method: GET
        description: Policy Compliance Summaries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
  exposes:
  - type: rest
    namespace: insightvm-console-swagger-policy-rest
    port: 8080
    description: REST adapter for InsightVM API — Policy. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/3/assets/{assetId}/policies
      name: api-3-assets-assetid-policies
      description: REST surface for api-3-assets-assetid-policies.
      operations:
      - method: GET
        name: getpoliciesforasset
        description: Policies For Asset
        call: insightvm-console-swagger-policy.getpoliciesforasset
        with:
          assetId: rest.assetId
          applicableOnly: rest.applicableOnly
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/assets/{assetId}/policies/{policyId}/children
      name: api-3-assets-assetid-policies-policyid-children
      description: REST surface for api-3-assets-assetid-policies-policyid-children.
      operations:
      - method: GET
        name: getassetpolicychildren
        description: Policy Rules or Groups Directly Under Policy For Asset
        call: insightvm-console-swagger-policy.getassetpolicychildren
        with:
          assetId: rest.assetId
          policyId: rest.policyId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/children
      name: api-3-assets-assetid-policies-policyid-groups-groupid-childr
      description: REST surface for api-3-assets-assetid-policies-policyid-groups-groupid-childr.
      operations:
      - method: GET
        name: getassetpolicygroupchildren
        description: Policy Rules or Groups Directly Under Policy Group For Asset
        call: insightvm-console-swagger-policy.getassetpolicygroupchildren
        with:
          assetId: rest.assetId
          policyId: rest.policyId
          groupId: rest.groupId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/rules
      name: api-3-assets-assetid-policies-policyid-groups-groupid-rules
      description: REST surface for api-3-assets-assetid-policies-policyid-groups-groupid-rules.
      operations:
      - method: GET
        name: getpolicygroupruleswithassetassessment
        description: Policy Rules Under Policy Group For Asset
        call: insightvm-console-swagger-policy.getpolicygroupruleswithassetassessment
        with:
          assetId: rest.assetId
          policyId: rest.policyId
          groupId: rest.groupId
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/assets/{assetId}/policies/{policyId}/rules
      name: api-3-assets-assetid-policies-policyid-rules
      description: REST surface for api-3-assets-assetid-policies-policyid-rules.
      operations:
      - method: GET
        name: getassetpolicyrulessummary
        description: Policy Rules For Asset
        call: insightvm-console-swagger-policy.getassetpolicyrulessummary
        with:
          assetId: rest.assetId
          policyId: rest.policyId
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies
      name: api-3-policies
      description: REST surface for api-3-policies.
      operations:
      - method: GET
        name: getpolicies
        description: Policies
        call: insightvm-console-swagger-policy.getpolicies
        with:
          filter: rest.filter
          scannedOnly: rest.scannedOnly
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{id}/children
      name: api-3-policies-id-children
      description: REST surface for api-3-policies-id-children.
      operations:
      - method: GET
        name: getpolicychildren
        description: Policy Rules or Groups Directly Under Policy
        call: insightvm-console-swagger-policy.getpolicychildren
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}
      name: api-3-policies-policyid
      description: REST surface for api-3-policies-policyid.
      operations:
      - method: GET
        name: getpolicy
        description: Policy
        call: insightvm-console-swagger-policy.getpolicy
        with:
          policyId: rest.policyId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}/assets
      name: api-3-policies-policyid-assets
      description: REST surface for api-3-policies-policyid-assets.
      operations:
      - method: GET
        name: getpolicyassetresults
        description: Policy Asset Results
        call: insightvm-console-swagger-policy.getpolicyassetresults
        with:
          policyId: rest.policyId
          applicableOnly: rest.applicableOnly
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}/assets/{assetId}
      name: api-3-policies-policyid-assets-assetid
      description: REST surface for api-3-policies-policyid-assets-assetid.
      operations:
      - method: GET
        name: getpolicyassetresult
        description: Policy Asset Result
        call: insightvm-console-swagger-policy.getpolicyassetresult
        with:
          policyId: rest.policyId
          assetId: rest.assetId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}/groups
      name: api-3-policies-policyid-groups
      description: REST surface for api-3-policies-policyid-groups.
      operations:
      - method: GET
        name: getpolicygroups
        description: Policy Groups
        call: insightvm-console-swagger-policy.getpolicygroups
        with:
          policyId: rest.policyId
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}/groups/{groupId}
      name: api-3-policies-policyid-groups-groupid
      description: REST surface for api-3-policies-policyid-groups-groupid.
      operations:
      - method: GET
        name: getpolicygroup
        description: Policy Group
        call: insightvm-console-swagger-policy.getpolicygroup
        with:
          policyId: rest.policyId
          groupId: rest.groupId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/3/policies/{policyId}/groups/{groupId}/assets
      name: api-3-policies-policyid-groups-groupid-assets
      description: REST surface for api-3-policies-policyid-groups-groupid-assets.
      operations:
      - method: GET
        name: getpolicygroupassetresults
        description: Assets Compliance For Policy Rules Under Policy Group
        call: insightv

# --- truncated at 32 KB (50 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/rapid7/refs/heads/main/capabilities/insightvm-console-swagger-policy.yaml