Policy Override Resource Controller
This document contains 8 endpoints under the Policy Override tag.
Endpoint: GET /api/3/assets/{id}/policy_overrides
Retrieves policy overrides defined on policy rules for the specified asset.
Operation ID: getAssetPolicyOverrides
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset.
Description: OK
Schema: Resources«PolicyOverride»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
{
"expires": "",
"id": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"review": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
},
"scope": {
"asset": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"newResult": "",
"originalResult": "",
"rule": "",
"type": ""
},
"state": "",
"submit": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
}
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/policy_overrides
Retrieves policy overrides defined on policy rules.
Operation ID: getPolicyOverrides
Name: page
Location: query
Type: integer
Required: No
Description: The index of the page (zero-based) to retrieve.
Name: size
Location: query
Type: integer
Required: No
Description: The number of records per page to retrieve.
Name: sort
Location: query
Type: array
Required: No
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.
Description: OK
Schema: PageOf«PolicyOverride»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"page": {
"number": 6,
"size": 10,
"totalPages": 13,
"totalResources": 123
},
"resources": [
{
"expires": "",
"id": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"review": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
},
"scope": {
"asset": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"newResult": "",
"originalResult": "",
"rule": "",
"type": ""
},
"state": "",
"submit": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
}
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: POST /api/3/policy_overrides
Submit a policy override. The policy override can be submitted or it can be submitted and approved in a single request.
Operation ID: createPolicyOverride
Name: policyOverride
Location: body
Type: PolicyOverride
Required: No
Description: The specification of a policy override. Allows users to override the compliance result of a policy rule.
JSON Example:
{
"expires": "",
"id": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"review": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
},
"scope": {
"asset": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"newResult": "",
"originalResult": "",
"rule": "",
"type": ""
},
"state": "",
"submit": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
}
}Name: policyOverride
Location: body
Type: PolicyOverride
Required: No
Description: The specification of a policy override. Allows users to override the compliance result of a policy rule.
JSON Example:
{
"expires": "",
"id": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"review": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
},
"scope": {
"asset": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"newResult": "",
"originalResult": "",
"rule": "",
"type": ""
},
"state": "",
"submit": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
}
}Description: OK
Schema: CreatedReference«PolicyOverrideID,Link»
Example JSON Response:
{
"id": 1,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/policy_overrides/{id}
Retrieve the specified policy override.
Operation ID: getPolicyOverride
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the policy override.
Description: OK
Schema: PolicyOverride
Example JSON Response:
{
"expires": "",
"id": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"review": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
},
"scope": {
"asset": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"newResult": "",
"originalResult": "",
"rule": "",
"type": ""
},
"state": "",
"submit": {
"comment": "",
"date": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "",
"user": ""
}
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/policy_overrides/{id}
Removes a policy override created for a policy rule.
Operation ID: deletePolicyOverride
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the policy override.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/policy_overrides/{id}/expires
Get the expiration date for a policy override.
Operation ID: getPolicyOverrideExpiration
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the policy override.
Description: OK Example JSON Response:
"string"Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/policy_overrides/{id}/expires
Set the expiration date for a policy override. This must be a valid date in the future.
Operation ID: setPolicyOverrideExpiration
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the policy override.
Name: expiration
Location: body
Type: string
Required: No
Description: The date the policy override is set to expire. Date is represented in ISO 8601 format.
JSON Example:
"string"Name: expiration
Location: body
Type: string
Required: No
Description: The date the policy override is set to expire. Date is represented in ISO 8601 format.
JSON Example:
"string"Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: POST /api/3/policy_overrides/{id}/{status}
Update the status of the specified policy override. The status can be one of the following: "recall", "approve", or "reject".
Operation ID: setPolicyOverrideStatus
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the policy override.
Name: status
Location: path
Type: string
Required: Yes
Description: Policy Override Status
Name: comment
Location: body
Type: string
Required: No
Description: A comment describing the change of the policy override status.
JSON Example:
"string"Name: comment
Location: body
Type: string
Required: No
Description: A comment describing the change of the policy override status.
JSON Example:
"string"Description: OK
Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8