Get a configuration audit of the current account
https://api.faraday.ai/v1/accounts/current/audits/{audit_id}One configuration audit, in full.
Authentication
Provide your API key in the Authorization header. You can find your API key in the Settings page of the dashboard.
Authorization: Bearer YOUR_TOKENpath parameters
The UUID of an audit
Responses
200The audit.
applied_atstring<date-time>When every appliable change had been carried out. Absent otherwise.
apply_errorstringWhy the apply did not finish. Present only when apply_status is error.
apply_statusstringThe outcome of applying this audit. Absent until an apply is
requested; running while it is under way, applied when every
appliable change was carried out, error when one failed or the
apply was refused (see apply_error).
running, applied, errorchangesarray[object]What would bring the account in line with its use cases: resources
to create, and resources whose configuration differs from what the
use cases require. Empty when the account is aligned. Omitted from...
Resources that more than one use case wants configured differently.
The audit compares against the first use case's version, so the
others are not fully represented. These are for the knowledgebase's
...
not_applicable_reasonstringPresent when the audit finished and concluded that the account
cannot be audited, because nothing establishes that its use cases
describe what should exist in this account: it has no knowledgebase,
it...
orphaned_resourcesarray[object]Resources no use case asks for. Advisory: applying the audit never
archives them. Omitted from listings and from audits that are not
applicable.
running while the audit reads the account, ready once it has
finished, error if it could not finish (see status_error).
running, ready, errorstatus_errorstringWhy the audit could not finish. Present only when status is error.
use_casesarray[object]Each use case the audit compared against, and whether the account
serves it. Omitted from listings and from audits that are not
applicable.
400The request was invalid.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
401No API key was supplied.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
403Access to this resource was forbidden.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
404The requested resource ID was not found.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
500An internal server error occurred.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
Tags
Test request
Request snippet
curl -X GET 'https://api.faraday.ai/v1/accounts/current/audits/{audit_id}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY'Example response
{
"applied_at": "2024-01-01T12:00:00Z",
"apply_error": "string",
"apply_status": "running",
"changes": [
{
"action": "create",
"appliable": true,
"applied_at": "2024-01-01T12:00:00Z",
"apply_error": "string",
"detail": "string",
"differing_attributes": [
"string"
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_name": "string",
"resource_type": "scopes",
"use_case_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"conflicts": [
{
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_name": "string",
"resource_type": "scopes",
"use_case_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"created_at": "2024-01-01T12:00:00Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"not_applicable_reason": "string",
"orphaned_resources": [
{
"note": "string",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_type": "scopes"
}
],
"status": "running",
"status_error": "string",
"updated_at": "2024-01-01T12:00:00Z",
"use_cases": [
{
"correct": true,
"resources": [
{
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_type": "scopes"
}
],
"unmet_prerequisites": [
"string"
],
"use_case_id": "123e4567-e89b-12d3-a456-426614174000",
"use_case_revision_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}