openapi: 3.1.0 info: title: InsightAppSec Accounts Policy API description: '
Welcome to the reference documentation for the public APIs available for InsightAppSec.
Here are a few resources to help you learn how to start using our APIs:
After you''ve got the basics down, you can use this API guide to find examples of requests and responses.
This API uses the platform role of a user''s API key to inherit a set of permissions.
Notes:
| Role | Permissions | |
|---|---|---|
| Product Admin | Manage AppsRead Attack TemplatesManage TargetsManage Scan ConfigsManage ScansManage VulnerabilitiesAdminister Vulnerability CommentsManage EnginesManage Engine GroupsManage SchedulesManage BlackoutsManage Global BlackoutsManage FilesManage TagsManage PDF Report | |
| Read Write | Manage AppsRead Attack TemplatesRead TargetsManage Scan ConfigsManage ScansManage VulnerabilitiesManage Vulnerability CommentsRead EnginesRead Engine GroupsManage SchedulesManage BlackoutsManage FilesManage TagsManage PDF Report | |
| Read Only | Read AppsRead Attack TemplatesRead TargetsRead Scan ConfigsRead ScansRead VulnerabilitiesRead Vulnerability CommentsRead EnginesRead Engine GroupsRead SchedulesRead BlackoutsRead FilesRead TagsRead PDF Report |
| Parameter | Description | Example |
|---|---|---|
index | The 0-based index of the page of data desired (default: 0) | ?index=2 |
size | The size of the page of data desired (min: 1, max: 1000, default: 50) | ?size=10 |
sort | The sort terms and (optional) directions for the desired ordering of data (default: specific to each resource) | ?sort=scan.submit_time,DESC,scan.status |
page-token | The page token, used as an alternative to | ?page-token=NDM0NTk0NTIyOjo6X1M6OjpiYW5hbmFz |
When intending to page beyond the 10,000th result, or as an alternative to using the index query parameter, the page-token option may be used instead. After retrieving the first page, the page_token will be present in the metadata section of the response.
For example, with size=99, index=0 to index=99 may be used. To load the next page, use the page_token value used in the response e.g. ?page-token=NDM0NTk0NTIyO
As is generally the accepted practice with REST-ful APIs, creating a resource can be performed by sending an appropriately formatted POST request. Any ID provided for a new resource in a POST request body will simply be ignored (and a new one generated internally and returned as part of the resource in subsequent GET requests), and POST requests to URLs following a format similar to .../resource/ are unsupported and should respond with 415 Method Not Allowed. All requests which successfully create a resource and respond with 201 Created will contain a Location header the value of which is an absolute URI for the resource (the ID of which can be determined as the last section of the path in the given URI). For example:Location: https://us.api.insight.rapid7.com/ias/v1/scans/12345678-1234-5678-90AB-1234567890AB
The value of date and date-time type properties are fixed to the common ISO-8601 format. Unless otherwise specified, all date or date-time data in response bodies are expressed in UTC, and it is also expected that data provided in request bodies are also expressed in UTC.
The first_start and first_end properties of both Blackouts and Schedules, and the last_start property of Blackouts may be specified with a timezone. If the timezone is not specified, it is assumed to be UTC. For example:2019-08-12T14:00:00.000000Z[Asia/Tokyo]
It is also possible to specify the timezone as an offset of either GMT or UTC. For example:2019-09-04T15:00:00.000000Z[GMT+03:00]
| Value | Format | Notes |
|---|---|---|
| Date | YYYY-MM-DD | Defaults to 12 am UTC (if used for a date & time) |
| Date & time only | YYYY-MM-DD''T''hh:mm:ss[.nnn] | Defaults to UTC |
| Date & time in UTC | YYYY-MM-DD''T''hh:mm:ss[.nnn]Z | |
| Date & time with specific timezone | YYYY-MM-DD''T''hh:mm:ss[.nnn]Z[TimeZoneId] |
One characteristic of a powerful API is support for complex search and filtering of resources using a flexible query language. It is entirely possible to provide basic search and filtering functionality on standard GET resource collection operations using HTTP query parameters, but this becomes restrictive when attempting to encode boolean logic. Other solutions are also possible but come with equally restrictive compromises. The most effective way to facilitate this complex search and filtering is to provide it as a top-level API with a robust Domain-Specific Language (DSL).
For simple data retrieval that supports paging and sorting functionality, use the traditional resource-specific GET collection operations; for more complex data retrieval that supports a user-crafted query DSL, use the global Search operation.
Any response from the API with an HTTP Status Code in the 4xx or 5xx range indicates an error. If in the 4xx range it indicates a client-side error, where in the 5xx range it indicates a server-side error. All responses indicating an error should be JSON formatted, and contain both a "status" and a "message" property indicating the cause of the error, a "r7-correlation-id" header should also always be returned in the format of a UUID, which uniquely identifies the HTTP exchange that took place and caused the error (this header is present on every request). On some occasions, an "error_code" property will be included in the response body, which can provide the support team further context into the cause of the error in cases where the message is not explicitly clear.
When contacting support about error responses received from the API, please attempt to include, at minimum:
Specifically, when a response with an HTTP Status Code of 422 is returned, this indicates a validation error, almost always received in a response from a non-idempotent request (normally PUT, POST or DELETE). In this case, there should be an additional "errors" property included in the JSON response body that should describe the cause of the validation exception; this will almost always require a modification to the request body to resolve.
' version: v1 servers: - url: https://[region].api.insight.rapid7.com/ias/v1 tags: - name: Policy description: Resources and operations for managing policies. paths: /api/3/assets/{assetId}/policies: get: tags: - Policy summary: Policies For Asset description: Retrieves the list of policies with compliance results for the specified asset. operationId: getPoliciesForAsset schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 - name: applicableOnly in: query 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 include policies with a compliance status of NOT_APPLICABLE. required: false type: boolean - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«AssetPolicy»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/assets/{assetId}/policies/{policyId}/children: get: tags: - Policy summary: Policy Rules or Groups Directly Under Policy For Asset description: Retrieves a paged resource of either policy rules, or groups, that are defined directly underneath the specified policy with rule compliance results for the specified asset. operationId: getAssetPolicyChildren schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PageOf«AssetPolicyItem»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/children: get: tags: - Policy summary: Policy Rules or Groups Directly Under Policy Group For Asset description: Retrieves a paged resource of either policy rules, or groups, that are defined directly underneath the specified policy group with rule compliance results for the specified asset. operationId: getAssetPolicyGroupChildren schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PageOf«AssetPolicyItem»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/assets/{assetId}/policies/{policyId}/groups/{groupId}/rules: get: tags: - Policy summary: Policy Rules Under Policy Group For Asset description: Retrieves the list of policy rules defined directly, or indirectly, underneath the specified policy group and the compliance results for the specified asset. operationId: getPolicyGroupRulesWithAssetAssessment schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyRule»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/assets/{assetId}/policies/{policyId}/rules: get: tags: - Policy summary: Policy Rules For Asset description: Retrieves the list of policy rules with compliance results for the specified asset and policy. operationId: getAssetPolicyRulesSummary schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyRule»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies: get: tags: - Policy summary: Policies description: Retrieves a paged resource of policies. operationId: getPolicies schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: filter in: query description: Filters the retrieved policies with those whose titles that match the parameter. required: false type: string - name: scannedOnly in: query 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. required: false type: boolean - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«Policy»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{id}/children: get: tags: - Policy summary: Policy Rules or Groups Directly Under Policy description: Retrieves a paged resource of either policy rules, or groups, that are defined directly underneath the specified policy. operationId: getPolicyChildren schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: id in: path description: The identifier of the policy required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyItem»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}: get: tags: - Policy summary: Policy description: Retrieves the specified policy. operationId: getPolicy schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/Policy' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/assets: get: tags: - Policy summary: Policy Asset Results description: Retrieves asset resources with rule compliance results for the specified policy. operationId: getPolicyAssetResults schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: applicableOnly in: query 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 compliance status of NOT_APPLICABLE. required: false type: boolean - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyAsset»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/assets/{assetId}: get: tags: - Policy summary: Policy Asset Result description: Retrieves an asset resource with rule compliance results for the specified asset and policy. operationId: getPolicyAssetResult schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PolicyAsset' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups: get: tags: - Policy summary: Policy Groups description: Retrieves a paged resource of policy groups for the specified policy. operationId: getPolicyGroups schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyGroup»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups/{groupId}: get: tags: - Policy summary: Policy Group description: Retrieves the specified policy group. operationId: getPolicyGroup schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PolicyGroup' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups/{groupId}/assets: get: tags: - Policy summary: Assets Compliance For Policy Rules Under Policy Group description: Retrieves asset resources with rule compliance status against all rules under the specified policy group. operationId: getPolicyGroupAssetResults schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 - name: applicableOnly in: query 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 compliance status of NOT_APPLICABLE. required: false type: boolean - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyAsset»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups/{groupId}/assets/{assetId}: get: tags: - Policy summary: Asset Compliance For Policy Rules Under Policy Group description: Retrieves an asset resource with rule compliance status against all rules under the specified policy group. operationId: getPolicyGroupAssetResult schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PolicyAsset' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups/{groupId}/children: get: tags: - Policy summary: Policy Rules or Groups Directly Under Policy Group description: Retrieves a paged resource of either policy rules, or groups, that are defined directly underneath the specified policy group. operationId: getPolicyGroupChildren schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyItem»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/groups/{groupId}/rules: get: tags: - Policy summary: Policy Rules Under Policy Group description: Retrieves the list of policy rules defined directly, or indirectly, underneath the specified policy group. operationId: getDescendantPolicyRules schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: groupId in: path description: The identifier of the policy group. required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyRule»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules: get: tags: - Policy summary: Policy Rules description: Retrieves a paged resource of policy rules for the specified policy. operationId: getPolicyRules schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyRule»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/disabled: get: tags: - Policy summary: Disabled Policy Rules description: Retrieves a paged resource of disabled policy rules for the specified policy. operationId: getDisabledPolicyRules schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyRule»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}: get: tags: - Policy summary: Policy Rule description: Retrieves the specified policy rule. operationId: getPolicyRule schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PolicyRule' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/assets: get: tags: - Policy summary: Assets Compliance For Policy Rule description: Retrieves asset resources with rule compliance results for the specified policy policy rule. operationId: getPolicyRuleAssetResults schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 - name: applicableOnly in: query 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 compliance status of NOT_APPLICABLE. required: false type: boolean - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyAsset»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}: get: tags: - Policy summary: Asset Compliance For Policy Rule description: Retrieves an asset resource with rule compliance results for the specified policy policy rule. operationId: getPolicyRuleAssetResult schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 responses: '200': description: OK schema: $ref: '#/definitions/PolicyAsset' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/assets/{assetId}/proof: get: tags: - Policy summary: Policy Rule Proof For Asset description: Retrieves the policy rule proof captured during evaluation against the specified asset. operationId: getPolicyRuleAssetResultProof schemes: [] consumes: - application/json produces: - text/html parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 - name: assetId in: path description: The identifier of the asset. required: true type: integer format: int64 responses: '200': description: OK schema: type: string examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/controls: get: tags: - Policy summary: Policy Rule Controls description: Retrieves all NIST SP 800-53 controls mappings for each CCE within the specified policy rule. operationId: getPolicyRuleControls schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 - name: page in: query description: The index of the page (zero-based) to retrieve. required: false type: integer default: 0 format: int32 - name: size in: query description: The number of records per page to retrieve. required: false type: integer default: 10 format: int32 - name: sort in: query 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.' required: false type: array items: type: string collectionFormat: multi responses: '200': description: OK schema: $ref: '#/definitions/PageOf«PolicyControl»' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/rationale: get: tags: - Policy summary: Policy Rule Rationale description: Retrieves the policy rule rationale for the specified policy. operationId: getPolicyRuleRationale schemes: [] consumes: - application/json produces: - text/html parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 responses: '200': description: OK schema: type: string examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policies/{policyId}/rules/{ruleId}/remediation: get: tags: - Policy summary: Policy Rule Remediation description: Retrieves the policy rule remediation for the specified policy. operationId: getPolicyRuleRemediation schemes: [] consumes: - application/json produces: - text/html parameters: - name: policyId in: path description: The identifier of the policy required: true type: integer format: int64 - name: ruleId in: path description: The identifier of the policy rule. required: true type: integer format: int64 responses: '200': description: OK schema: type: string examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] /api/3/policy/summary: get: tags: - Policy summary: Policy Compliance Summaries description: Retrieves a compliance summary of all policies. operationId: getPolicySummary schemes: [] consumes: - application/json produces: - application/json;charset=UTF-8 parameters: [] responses: '200': description: OK schema: $ref: '#/definitions/PolicySummaryResource' examples: {} headers: {} '401': description: Unauthorized schema: $ref: '#/definitions/UnauthorizedError' examples: {} headers: {} '404': description: Not Found schema: $ref: '#/definitions/NotFoundError' examples: {} headers: {} '500': description: Internal Server Error schema: $ref: '#/definitions/InternalServerError' examples: {} headers: {} '503': description: Service Unavailable schema: $ref: '#/definitions/ServiceUnavailableError' examples: {} headers: {} security: [] definitions: Configuration: type: object required: - name properties: name: type: string example: