Get a snapshot for an environment.
`snapshot_expression` can be specified as follows:
- `N`: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot.
example: 42
- `~N`: the Nth snapshot behind the latest, at the time of the request
example: ~5
- `@{YYYY-MM-DDTHH:MM:SS}`: the snapshot at specific moment in time in UTC
example: @{2023-10-02T12:00:00}
- `@{N.<hours|days|weeks|months>.ago}`: the snapshot at a time relative to the time of the request. N is a positive integer.
example: @{2.hours.ago}
- `@{now}`: the snapshot at the time of the request
example: @{now}
Which snapshot to get: N (the Nth, from 1), -N (the Nth from the latest, so -1 is the latest), ~N (N behind the latest), @{YYYY-MM-DDTHH:MM:SS} (the one live at that UTC time), @{N.<hours|days|weeks|months>.ago} or @{now}
The creation timestamp of the next snapshot if one exists
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kosli Documentation","colors":{"primary":"#1C4BC6","light":"#ABBDFF","dark":"#1C4BC6"},"logo":{"light":"https://mintcdn.com/kosli/Cee1LAu-Jhawp1Om/logo/kosli-logo-light-main.svg?fit=max\u0026auto=format\u0026n=Cee1LAu-Jhawp1Om\u0026q=85\u0026s=fb05fdbb0c9c9ae7da266a500eac2be6","dark":"https://mintcdn.com/kosli/Cee1LAu-Jhawp1Om/logo/kosli-logo-dark-main.svg?fit=max\u0026auto=format\u0026n=Cee1LAu-Jhawp1Om\u0026q=85\u0026s=c230555c5e1d57d0f9f9630117a1467d"},"favicon":"https://mintcdn.com/kosli/CktiOOFhqneQZXyH/favicon-32x32.png?fit=max\u0026auto=format\u0026n=CktiOOFhqneQZXyH\u0026q=85\u0026s=1b16e66cd5c7266604a6a683f334f672","api":{"playground":{"display":"interactive"}},"background":{"decoration":"windows","color":{"light":"#F6F8FC","dark":"#111A26"}},"navbar":{"links":[{"href":"mailto:support@kosli.com","label":"Support"}],"primary":{"type":"button","label":"Kosli App","href":"https://app.kosli.com"}},"footer":{"socials":{"website":"https://kosli.com","github":"https://github.com/kosli-dev","linkedin":"https://linkedin.com/company/kosli-dev"},"links":[{"header":"Resources","items":[{"label":"Privacy Policy","href":"https://www.kosli.com/privacy-policy"},{"label":"Status","href":"https://status.app.kosli.com/"}]},{"header":"Learn","items":[{"label":"Labs","href":"/labs"},{"label":"Blog","href":"https://kosli.com/blog"}]},{"header":"Company","items":[{"label":"About Kosli","href":"https://www.kosli.com/about"},{"label":"Privacy","href":"https://www.kosli.com/privacy-policy"},{"label":"Community","href":"https://www.kosli.com/community"}]}]},"fonts":{"family":"IBM Plex Sans"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"dracula","languages":{"custom":["/languages/rego.json"]}},"latex":false},"integrations":{"posthog":{"apiKey":"phc_vKbCGJq5rzV4apArUzYDRwh6azCmgCPcLz8jTa9CgmGR","apiHost":"https://eu.posthog.com","sessionRecording":false},"cookies":{"key":"kosli_consent","value":"accepted"}},"banner":{"content":"🌱 The docs have a new layout, grouped by what you're here to do.","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kosli","hasAudioNarration":false,"actualSubdomain":"kosli","customDomains":["docs.kosli.com"],"gitSource":{"type":"github","owner":"kosli-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aecb97adab9b27b24420669","collectionId":"a80df489-8e62-492b-84de-7995fdccc9c0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aecb97adab9b27b24420669"},"feedback":{"thumbs":true,"edits":false,"issues":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED","enabled":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED","enabled":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aedf0a1f454d7a498161a36","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Reference","count":290},{"language":"default","tag":"API Reference","count":152},{"language":"default","tag":"CLI Reference","count":103},{"language":"default","tag":"Platform administration","count":28},{"language":"default","tag":"Discover Kosli","count":28},{"language":"default","tag":"Terraform Reference","count":22},{"language":"default","tag":"Environments","count":21},{"language":"default","tag":"Attestation","count":18},{"language":"default","tag":"kosli get","count":15},{"language":"default","tag":"kosli attest","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":false,"showHelpButton":false}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"[data-component-part=\"step-number\"]>div{background-color:#CFD8FF!important;color:#111A26!important}"}],"page":{"pagePath":"api-reference/snapshots/get-snapshot","slug":"/api-reference/snapshots/get-snapshot","pageMetadata":{"title":"Get snapshot","description":"Get a snapshot for an environment.\n\n`snapshot_expression` can be specified as follows:\n- `N`: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot.\n example: 42\n- `~N`: the Nth snapshot behind the latest, at the time of the request\n example: ~5\n- `@{YYYY-MM-DDTHH:MM:SS}`: the snapshot at specific moment in time in UTC\n example: @{2023-10-02T12:00:00}\n- `@{N.\u003chours|days|weeks|months>.ago}`: the snapshot at a time relative to the time of the request. N is a positive integer.\n example: @{2.hours.ago}\n- `@{now}`: the snapshot at the time of the request\n example: @{now}","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /snapshots/{org}/{env_name}/{snapshot_expression}","href":"/api-reference/snapshots/get-snapshot","autogeneratedByOpenApi":true},"description":"Get a snapshot for an environment.\n\n`snapshot_expression` can be specified as follows:\n- `N`: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot.\n example: 42\n- `~N`: the Nth snapshot behind the latest, at the time of the request\n example: ~5\n- `@{YYYY-MM-DDTHH:MM:SS}`: the snapshot at specific moment in time in UTC\n example: @{2023-10-02T12:00:00}\n- `@{N.\u003chours|days|weeks|months>.ago}`: the snapshot at a time relative to the time of the request. N is a positive integer.\n example: @{2.hours.ago}\n- `@{now}`: the snapshot at the time of the request\n example: @{now}","pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":"dracula","languages":{"custom":["/languages/rego.json"]}},"config":{},"pageMetadata":{"title":"Get snapshot","description":"Get a snapshot for an environment.\n\n`snapshot_expression` can be specified as follows:\n- `N`: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot.\n example: 42\n- `~N`: the Nth snapshot behind the latest, at the time of the request\n example: ~5\n- `@{YYYY-MM-DDTHH:MM:SS}`: the snapshot at specific moment in time in UTC\n example: @{2023-10-02T12:00:00}\n- `@{N.\u003chours|days|weeks|months>.ago}`: the snapshot at a time relative to the time of the request. N is a positive integer.\n example: @{2.hours.ago}\n- `@{now}`: the snapshot at the time of the request\n example: @{now}","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /snapshots/{org}/{env_name}/{snapshot_expression}","href":"/api-reference/snapshots/get-snapshot","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/kosli/a8952d14c382591c/termly.js"],"openApiReferenceData":{"operation":{"tags":["Snapshots"],"summary":"Get snapshot","description":"Get a snapshot for an environment.\n\n`snapshot_expression` can be specified as follows:\n- `N`: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot.\n example: 42\n- `~N`: the Nth snapshot behind the latest, at the time of the request\n example: ~5\n- `@{YYYY-MM-DDTHH:MM:SS}`: the snapshot at specific moment in time in UTC\n example: @{2023-10-02T12:00:00}\n- `@{N.\u003chours|days|weeks|months>.ago}`: the snapshot at a time relative to the time of the request. N is a positive integer.\n example: @{2.hours.ago}\n- `@{now}`: the snapshot at the time of the request\n example: @{now}","operationId":"get_snapshot","security":["928588fc-8447-43d4-bd53-521d67f5a823","87aed4e6-a1d6-4fe9-93b6-ec6a3bca86c9"],"parameters":["1c88e350-2c14-4276-8653-3d927d1c1476","adb54d29-2704-4175-b846-de8cf8509b4c","ffb96afb-0583-4ae0-a43b-1c95a8b86275"],"responses":{"200":"3fbbe564-895b-4fd8-be10-9d6fb62501c6"},"method":"get","type":"path","servers":["46f1752b-c86a-4aff-9fd4-770655ca3d72","1fbcc30c-3132-4c15-849a-19e98b1095fc"],"path":"/snapshots/{org}/{env_name}/{snapshot_expression}","baseUrlOptions":["https://app.kosli.com/api/v2","https://app.us.kosli.com/api/v2"],"title":"Get snapshot","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"1c88e350-2c14-4276-8653-3d927d1c1476":{"name":"env_name","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\.\\-_]*$","description":"Name of an environment in the org","title":"Env Name","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Name of an environment in the org"},"adb54d29-2704-4175-b846-de8cf8509b4c":{"name":"snapshot_expression","in":"path","required":true,"schema":{"type":"string","description":"Which snapshot to get: `N` (the Nth, from 1), `-N` (the Nth from the latest, so `-1` is the latest), `~N` (N behind the latest), `@{YYYY-MM-DDTHH:MM:SS}` (the one live at that UTC time), `@{N.\u003chours|days|weeks|months>.ago}` or `@{now}`","examples":["-1"],"title":"Snapshot Expression","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Which snapshot to get: `N` (the Nth, from 1), `-N` (the Nth from the latest, so `-1` is the latest), `~N` (N behind the latest), `@{YYYY-MM-DDTHH:MM:SS}` (the one live at that UTC time), `@{N.\u003chours|days|weeks|months>.ago}` or `@{now}`"},"ffb96afb-0583-4ae0-a43b-1c95a8b86275":{"name":"org","in":"path","required":true,"schema":{"type":"string","title":"Org","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"responses":{"3fbbe564-895b-4fd8-be10-9d6fb62501c6":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"index":{"type":"integer","title":"Index","description":"The index of the snapshot","isRequired":true,"uniqueKey":"index","typeLabel":"integer"},"is_latest":{"type":"boolean","title":"Is Latest","description":"True if this snapshot is the most recent","isRequired":true,"uniqueKey":"is_latest","typeLabel":"boolean"},"artifact_compliance_count":{"additionalProperties":{"type":"integer","uniqueKey":"artifact_compliance_count.additionalProperties","typeLabel":"integer"},"type":"object","title":"Artifact Compliance Count","description":"The number of compliant and non-compliant artifacts in the snapshot","isRequired":true,"uniqueKey":"artifact_compliance_count","typeLabel":"Artifact Compliance Count · object"},"timestamp":{"type":"number","title":"Timestamp","description":"The timestamp of the snapshot creation","isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"type":{"type":"string","title":"Type","description":"The type of the environment","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"compliant":{"type":"boolean","title":"Compliant","description":"Whether the snapshot is compliant","isRequired":true,"uniqueKey":"compliant","typeLabel":"boolean"},"html_url":{"type":"string","title":"Html Url","description":"The HTML URL to the snapshot","isRequired":true,"uniqueKey":"html_url","typeLabel":"string"},"artifacts":{"items":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].name","typeLabel":"string"},"fingerprint":{"oneOf":[{"type":"string","title":"Fingerprint","description":"SHA-256 fingerprint of an artifact, 64 lowercase hex characters","pattern":"^[a-f0-9]{64}$","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].fingerprint.oneOf.0","typeLabel":"string"},{"type":"string","title":"Fingerprint","description":"The fingerprint of an artifact","const":"","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].fingerprint.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].fingerprint","typeLabel":"string"},"creationTimestamp":{"items":{"type":"integer","uniqueKey":"artifacts.items.[INDEX].creationTimestamp.items.[INDEX]","typeLabel":"integer"},"type":"array","title":"Creationtimestamp","description":"The list of timestamps when the artifact instances started running","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].creationTimestamp","typeLabel":"integer[]"},"annotation":{"additionalProperties":true,"type":"object","title":"Annotation","description":"The annotation of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].annotation","typeLabel":"Annotation · object"},"flow_name":{"type":"string","title":"Flow Name","description":"The name of the flow to which the artifact belongs","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flow_name","typeLabel":"string"},"git_commit":{"type":"string","title":"Git Commit","description":"The git commit of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].git_commit","typeLabel":"string"},"commit_url":{"type":"string","title":"Commit Url","description":"The URL to the git commit of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].commit_url","typeLabel":"string"},"html_url":{"type":"string","title":"Html Url","description":"The HTML URL to the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].html_url","typeLabel":"string"},"flow_html_url":{"type":"string","title":"Flow Html Url","description":"The HTML URL to the flow to which the artifact belongs","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flow_html_url","typeLabel":"string"},"flows":{"items":{"properties":{"flow_name":{"type":"string","title":"Flow Name","description":"The name of the flow to which the artifact belongs","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_name","typeLabel":"string"},"git_commit":{"type":"string","title":"Git Commit","description":"The git commit of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].git_commit","typeLabel":"string"},"commit_url":{"type":"string","title":"Commit Url","description":"The URL to the git commit of the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].commit_url","typeLabel":"string"},"html_url":{"type":"string","title":"Html Url","description":"The HTML URL to the artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].html_url","typeLabel":"string"},"flow_html_url":{"type":"string","title":"Flow Html Url","description":"The HTML URL to the flow to which the artifact belongs","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_html_url","typeLabel":"string"},"trail_name":{"oneOf":[{"type":"string","title":"Trail Name","description":"The name of the trail to which the artifact belongs","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].trail_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Trail Name","description":"The name of the trail to which the artifact belongs","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].trail_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].trail_name","typeLabel":"string | null"},"template_reference_name":{"oneOf":[{"type":"string","title":"Template Reference Name","description":"The template_reference_name this artifact was reported with","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].template_reference_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Template Reference Name","description":"The template_reference_name this artifact was reported with","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].template_reference_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].template_reference_name","typeLabel":"string | null"},"git_commit_info":{"oneOf":[{"type":"object","title":"Git Commit Info","description":"The git commit info of the artifact","additionalProperties":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].git_commit_info.oneOf.0","typeLabel":"Git Commit Info · object"},{"type":"null","title":"Git Commit Info","description":"The git commit info of the artifact","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].git_commit_info.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].git_commit_info","typeLabel":"Git Commit Info · object | null"},"deployment_diff":{"oneOf":[{"type":"object","title":"DeploymentDiff","description":"The change from the artifact this one replaced in the environment. Always present, and null when nothing was replaced: the first artifact from this flow to run in this environment, or an artifact with no provenance","required":["diff_url","previous_git_commit","previous_git_commit_url","previous_fingerprint","previous_artifact_name","previous_artifact_compliance_state","previous_running","previous_trail_name","previous_template_reference_name"],"properties":{"diff_url":{"type":"string","title":"Diff Url","description":"The URL comparing previous_git_commit with the artifact's git commit, at the git provider hosting the repository. Empty when the commit URL is not recognised as GitHub, GitLab, Bitbucket or Azure DevOps","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.diff_url","typeLabel":"string"},"previous_git_commit":{"type":"string","title":"Previous Git Commit","description":"The git commit of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_git_commit","typeLabel":"string"},"previous_git_commit_url":{"type":"string","title":"Previous Git Commit Url","description":"The URL to the git commit of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_git_commit_url","typeLabel":"string"},"previous_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Previous Fingerprint","description":"The fingerprint of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_fingerprint","typeLabel":"string"},"previous_artifact_name":{"type":"string","title":"Previous Artifact Name","description":"The name the replaced artifact was running under in the environment, which need not match the name of this artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_artifact_name","typeLabel":"string"},"previous_artifact_compliance_state":{"type":"string","title":"Previous Artifact Compliance State","description":"The compliance state of the replaced artifact in its flow, as of this request: COMPLIANT, NON-COMPLIANT or INCOMPLETE","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_artifact_compliance_state","typeLabel":"string"},"previous_running":{"type":"boolean","title":"Previous Running","description":"Whether the replaced artifact is still running elsewhere in this snapshot","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_running","typeLabel":"boolean"},"previous_trail_name":{"oneOf":[{"type":"string","title":"Previous Trail Name","description":"The name of the trail the replaced artifact was attested to","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Previous Trail Name","description":"The name of the trail the replaced artifact was attested to","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name","typeLabel":"string | null"},"previous_template_reference_name":{"oneOf":[{"type":"string","title":"Previous Template Reference Name","description":"The template_reference_name the replaced artifact was reported with","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Previous Template Reference Name","description":"The template_reference_name the replaced artifact was reported with","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name","typeLabel":"string | null"}},"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.0","typeLabel":"DeploymentDiff · object"},{"type":"null","description":"The change from the artifact this one replaced in the environment. Always present, and null when nothing was replaced: the first artifact from this flow to run in this environment, or an artifact with no provenance","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].deployment_diff","typeLabel":"DeploymentDiff · object | null"},"commit_lead_time":{"oneOf":[{"type":"number","title":"Commit Lead Time","description":"The lead time of the commit; the diff between the commit timestamp and the time the artifact started running","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].commit_lead_time.oneOf.0","typeLabel":"number"},{"type":"null","title":"Commit Lead Time","description":"The lead time of the commit; the diff between the commit timestamp and the time the artifact started running","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].commit_lead_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].commit_lead_time","typeLabel":"number | null"},"artifact_compliance_in_flow":{"oneOf":[{"type":"boolean","title":"Artifact Compliance In Flow","description":"Whether the artifact is compliant in the flow","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].artifact_compliance_in_flow.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Artifact Compliance In Flow","description":"Whether the artifact is compliant in the flow","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].artifact_compliance_in_flow.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].artifact_compliance_in_flow","typeLabel":"boolean | null"},"flow_reasons_for_non_compliance":{"oneOf":[{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_reasons_for_non_compliance.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"Flow Reasons For Non Compliance","description":"The list of reasons for non-compliance of an artifact in the flow","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_reasons_for_non_compliance.oneOf.0","typeLabel":"Flow Reasons For Non Compliance · object[]"},{"type":"null","title":"Flow Reasons For Non Compliance","description":"The list of reasons for non-compliance of an artifact in the flow","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_reasons_for_non_compliance.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX].flow_reasons_for_non_compliance","typeLabel":"Flow Reasons For Non Compliance · object[] | null"}},"type":"object","required":["flow_name","git_commit","commit_url","html_url","flow_html_url"],"title":"SnapshotArtifactFlow","uniqueKey":"artifacts.items.[INDEX].flows.items.[INDEX]","typeLabel":"SnapshotArtifactFlow · object"},"type":"array","title":"Flows","description":"The list of flows in which the artifact was reported","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].flows","typeLabel":"SnapshotArtifactFlow · object[]"},"compliant":{"oneOf":[{"type":"boolean","title":"Compliant","description":"Whether the artifact is compliant in the snapshot. None if the artifact status is 'unknown'","uniqueKey":"artifacts.items.[INDEX].compliant.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Compliant","description":"Whether the artifact is compliant in the snapshot. None if the artifact status is 'unknown'","uniqueKey":"artifacts.items.[INDEX].compliant.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].compliant","typeLabel":"boolean | null"},"deployments":{"items":{"type":"integer","uniqueKey":"artifacts.items.[INDEX].deployments.items.[INDEX]","typeLabel":"integer"},"type":"array","title":"Deployments","description":"Deprecated: The list of deployments","uniqueKey":"artifacts.items.[INDEX].deployments","typeLabel":"integer[]"},"policy_decisions":{"oneOf":[{"type":"array","items":{"properties":{"policy_version":{"type":"integer","title":"Policy Version","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].policy_version","typeLabel":"integer"},"status":{"type":"string","enum":["COMPLIANT","NON-COMPLIANT"],"title":"Status","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"policy_name":{"type":"string","title":"Policy Name","readOnly":true,"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].policy_name","typeLabel":"string"},"rule_evaluations":{"items":{"properties":{"rule":{"properties":{"type":{"type":"string","enum":["provenance","trail-compliance","attestation"],"title":"Type","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.type","typeLabel":"enum\u003cstring>"},"definition":{"oneOf":[{"type":"object","title":"RequiredAttestationRule","required":["type"],"properties":{"type":{"oneOf":[{"type":"string","title":"Type","description":"Built-in attestation type, custom:... reference, or wildcard *.","enum":["generic","junit","snyk","pull_request","jira","sonar"],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","title":"Type","description":"Built-in attestation type, custom:... reference, or wildcard *.","pattern":"^custom:.*$","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.type.oneOf.1","typeLabel":"string"},{"type":"string","title":"Type","description":"Built-in attestation type, custom:... reference, or wildcard *.","enum":["decision","sbom"],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.type.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"string","title":"Type","description":"Built-in attestation type, custom:... reference, or wildcard *.","const":"*","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.type.oneOf.3","typeLabel":"string"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.type","typeLabel":"enum\u003cstring> · string · enum\u003cstring> · string"},"if":{"oneOf":[{"type":"object","title":"PolicyExpression","description":"Boolean expression evaluated against flow/artifact context. In YAML this is often written as a string wrapped in ${{ ... }}. A missing (None) context value never matches: matches() and the ordering comparisons (\u003c, >, \u003c=, >=) return false if either operand is missing, and `in` is a list-membership test that returns false unless its right-hand side is a list containing the left-hand value. The ordering comparisons compare two numbers numerically (an optional `-`, digits, and an optional `.` followed by digits, such as 10 or -1.5) and anything else as text. When exactly one side is a number the comparison has no answer, and the rule it belongs to is treated as required: an `if` condition applies and an exception does not waive.","required":["text"],"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.if.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.if.oneOf.0","typeLabel":"PolicyExpression · object"},{"type":"null","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.if.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.if","typeLabel":"PolicyExpression · object | null"},"name":{"type":"string","title":"Name","description":"Attestation name; default * matches any.","default":"*","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.name","typeLabel":"string"},"must_be_compliant":{"type":"boolean","title":"Must Be Compliant","default":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.must_be_compliant","typeLabel":"boolean"},"for_control":{"oneOf":[{"type":"string","title":"For Control","description":"Control identifier this decision attestation must satisfy. Only valid when type is 'decision'.","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.for_control.oneOf.0","typeLabel":"string"},{"type":"null","title":"For Control","description":"Control identifier this decision attestation must satisfy. Only valid when type is 'decision'.","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.for_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0.for_control","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.0","typeLabel":"RequiredAttestationRule · object"},{"type":"object","title":"BooleanRule","properties":{"required":{"type":"boolean","title":"Required","default":false,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.required","typeLabel":"boolean"},"exceptions":{"items":{"properties":{"if":{"oneOf":[{"type":"object","title":"PolicyExpression","description":"Boolean expression evaluated against flow/artifact context. In YAML this is often written as a string wrapped in ${{ ... }}. A missing (None) context value never matches: matches() and the ordering comparisons (\u003c, >, \u003c=, >=) return false if either operand is missing, and `in` is a list-membership test that returns false unless its right-hand side is a list containing the left-hand value. The ordering comparisons compare two numbers numerically (an optional `-`, digits, and an optional `.` followed by digits, such as 10 or -1.5) and anything else as text. When exactly one side is a number the comparison has no answer, and the rule it belongs to is treated as required: an `if` condition applies and an exception does not waive.","required":["text"],"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions.items.[INDEX].if.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions.items.[INDEX].if.oneOf.0","typeLabel":"PolicyExpression · object"},{"type":"null","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions.items.[INDEX].if.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions.items.[INDEX].if","typeLabel":"PolicyExpression · object | null"}},"additionalProperties":false,"type":"object","title":"ConditionalRule","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions.items.[INDEX]","typeLabel":"ConditionalRule · object"},"type":"array","title":"Exceptions","default":[],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1.exceptions","typeLabel":"ConditionalRule · object[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition.oneOf.1","typeLabel":"BooleanRule · object"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule.definition","typeLabel":"RequiredAttestationRule · object | BooleanRule · object"}},"type":"object","required":["type","definition"],"title":"PolicyRuleDefinition","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].rule","typeLabel":"PolicyRuleDefinition · object"},"satisfied":{"oneOf":[{"type":"boolean","title":"Satisfied","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].satisfied.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Satisfied","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].satisfied.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].satisfied","typeLabel":"boolean | null"},"ignored":{"oneOf":[{"type":"boolean","title":"Ignored","default":false,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].ignored.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Ignored","default":false,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].ignored.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].ignored","typeLabel":"boolean | null"},"resolutions":{"items":{"properties":{"type":{"type":"string","enum":["missing_attestation","non_compliant_attestation","non_compliant_in_trail","no_provenance","missing_provenance","legacy_flow","rule_satisfied","rule_not_applicable"],"title":"Type","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"context":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions.items.[INDEX].context.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions.items.[INDEX].context.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions.items.[INDEX].context","typeLabel":"object | null"}},"type":"object","required":["type"],"title":"RuleResolutionResponse","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions.items.[INDEX]","typeLabel":"RuleResolutionResponse · object"},"type":"array","title":"Resolutions","default":[],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX].resolutions","typeLabel":"RuleResolutionResponse · object[]"}},"type":"object","required":["rule"],"title":"RuleEvaluationResponse","description":"represents one policy rule evaluation result","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations.items.[INDEX]","typeLabel":"RuleEvaluationResponse · object"},"type":"array","title":"Rule Evaluations","default":[],"uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX].rule_evaluations","typeLabel":"RuleEvaluationResponse · object[]"}},"type":"object","required":["policy_version","status","policy_name"],"title":"PolicyEvaluationResponse","description":"represents the result of evaluating one artifact against one policy","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0.items.[INDEX]","typeLabel":"PolicyEvaluationResponse · object"},"title":"Policy Decisions","description":"The list of compliance decisions made from the attached policies to the environment at the time of snapshot creation","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.0","typeLabel":"PolicyEvaluationResponse · object[]"},{"type":"null","title":"Policy Decisions","description":"The list of compliance decisions made from the attached policies to the environment at the time of snapshot creation","uniqueKey":"artifacts.items.[INDEX].policy_decisions.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].policy_decisions","typeLabel":"PolicyEvaluationResponse · object[] | null"},"reasons_for_incompliance":{"oneOf":[{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"artifacts.items.[INDEX].reasons_for_incompliance.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"Reasons For Incompliance","description":"Deprecated: The list of reasons for non-compliance of an artifact","uniqueKey":"artifacts.items.[INDEX].reasons_for_incompliance.oneOf.0","typeLabel":"Reasons For Incompliance · object[]"},{"type":"null","title":"Reasons For Incompliance","description":"Deprecated: The list of reasons for non-compliance of an artifact","uniqueKey":"artifacts.items.[INDEX].reasons_for_incompliance.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].reasons_for_incompliance","typeLabel":"Reasons For Incompliance · object[] | null"},"pods":{"oneOf":[{"type":"object","title":"Pods","description":"The list of K8S pods if env is of type K8S","additionalProperties":true,"uniqueKey":"artifacts.items.[INDEX].pods.oneOf.0","typeLabel":"Pods · object"},{"type":"null","title":"Pods","description":"The list of K8S pods if env is of type K8S","uniqueKey":"artifacts.items.[INDEX].pods.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].pods","typeLabel":"Pods · object | null"},"deployment_diff":{"oneOf":[{"type":"object","title":"DeploymentDiff","description":"The deployment_diff of the first entry in flows. Always present, and null when nothing was replaced: the first artifact from this flow to run in this environment, or an artifact with no provenance","required":["diff_url","previous_git_commit","previous_git_commit_url","previous_fingerprint","previous_artifact_name","previous_artifact_compliance_state","previous_running","previous_trail_name","previous_template_reference_name"],"properties":{"diff_url":{"type":"string","title":"Diff Url","description":"The URL comparing previous_git_commit with the artifact's git commit, at the git provider hosting the repository. Empty when the commit URL is not recognised as GitHub, GitLab, Bitbucket or Azure DevOps","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.diff_url","typeLabel":"string"},"previous_git_commit":{"type":"string","title":"Previous Git Commit","description":"The git commit of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_git_commit","typeLabel":"string"},"previous_git_commit_url":{"type":"string","title":"Previous Git Commit Url","description":"The URL to the git commit of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_git_commit_url","typeLabel":"string"},"previous_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Previous Fingerprint","description":"The fingerprint of the replaced artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_fingerprint","typeLabel":"string"},"previous_artifact_name":{"type":"string","title":"Previous Artifact Name","description":"The name the replaced artifact was running under in the environment, which need not match the name of this artifact","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_artifact_name","typeLabel":"string"},"previous_artifact_compliance_state":{"type":"string","title":"Previous Artifact Compliance State","description":"The compliance state of the replaced artifact in its flow, as of this request: COMPLIANT, NON-COMPLIANT or INCOMPLETE","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_artifact_compliance_state","typeLabel":"string"},"previous_running":{"type":"boolean","title":"Previous Running","description":"Whether the replaced artifact is still running elsewhere in this snapshot","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_running","typeLabel":"boolean"},"previous_trail_name":{"oneOf":[{"type":"string","title":"Previous Trail Name","description":"The name of the trail the replaced artifact was attested to","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Previous Trail Name","description":"The name of the trail the replaced artifact was attested to","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_trail_name","typeLabel":"string | null"},"previous_template_reference_name":{"oneOf":[{"type":"string","title":"Previous Template Reference Name","description":"The template_reference_name the replaced artifact was reported with","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Previous Template Reference Name","description":"The template_reference_name the replaced artifact was reported with","isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0.previous_template_reference_name","typeLabel":"string | null"}},"uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.0","typeLabel":"DeploymentDiff · object"},{"type":"null","description":"The deployment_diff of the first entry in flows. Always present, and null when nothing was replaced: the first artifact from this flow to run in this environment, or an artifact with no provenance","uniqueKey":"artifacts.items.[INDEX].deployment_diff.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].deployment_diff","typeLabel":"DeploymentDiff · object | null"},"commit_lead_time":{"oneOf":[{"type":"number","title":"Commit Lead Time","description":"The lead time of the commit; the diff between the commit timestamp and the time the artifact started running","uniqueKey":"artifacts.items.[INDEX].commit_lead_time.oneOf.0","typeLabel":"number"},{"type":"null","title":"Commit Lead Time","description":"The lead time of the commit; the diff between the commit timestamp and the time the artifact started running","uniqueKey":"artifacts.items.[INDEX].commit_lead_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].commit_lead_time","typeLabel":"number | null"},"ecs_context":{"oneOf":[{"type":"object","title":"SnapshotArtifactECSContext","description":"The ECS context of the artifact. Only available for ECS environments","properties":{"task_arn":{"oneOf":[{"type":"string","title":"Task Arn","description":"The ARN of the ECS task","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.task_arn.oneOf.0","typeLabel":"string"},{"type":"null","title":"Task Arn","description":"The ARN of the ECS task","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.task_arn.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.task_arn","typeLabel":"string | null"},"cluster_name":{"oneOf":[{"type":"string","title":"Cluster Name","description":"The name of the ECS cluster. Only available for ECS environments","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.cluster_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Cluster Name","description":"The name of the ECS cluster. Only available for ECS environments","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.cluster_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.cluster_name","typeLabel":"string | null"},"service_name":{"oneOf":[{"type":"string","title":"Service Name","description":"The name of the ECS service. Only available for ECS environments","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.service_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Service Name","description":"The name of the ECS service. Only available for ECS environments","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.service_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0.service_name","typeLabel":"string | null"}},"uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.0","typeLabel":"SnapshotArtifactECSContext · object"},{"type":"null","description":"The ECS context of the artifact. Only available for ECS environments","uniqueKey":"artifacts.items.[INDEX].ecs_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].ecs_context","typeLabel":"SnapshotArtifactECSContext · object | null"},"cloud_run_context":{"oneOf":[{"type":"object","title":"SnapshotArtifactCloudRunContext","description":"The Cloud Run context of the artifact. Only available for Cloud Run environments","properties":{"kind":{"oneOf":[{"type":"string","title":"Kind","description":"Cloud Run resource kind: \"service\" or \"job\"","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.kind.oneOf.0","typeLabel":"string"},{"type":"null","title":"Kind","description":"Cloud Run resource kind: \"service\" or \"job\"","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.kind","typeLabel":"string | null"},"revision_name":{"oneOf":[{"type":"string","title":"Revision Name","description":"The name of the Cloud Run revision (kind=service)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.revision_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Revision Name","description":"The name of the Cloud Run revision (kind=service)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.revision_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.revision_name","typeLabel":"string | null"},"service_name":{"oneOf":[{"type":"string","title":"Service Name","description":"The name of the Cloud Run service (kind=service)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.service_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Service Name","description":"The name of the Cloud Run service (kind=service)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.service_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.service_name","typeLabel":"string | null"},"job_name":{"oneOf":[{"type":"string","title":"Job Name","description":"The name of the Cloud Run job (kind=job)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.job_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Job Name","description":"The name of the Cloud Run job (kind=job)","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.job_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0.job_name","typeLabel":"string | null"}},"uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.0","typeLabel":"SnapshotArtifactCloudRunContext · object"},{"type":"null","description":"The Cloud Run context of the artifact. Only available for Cloud Run environments","uniqueKey":"artifacts.items.[INDEX].cloud_run_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"artifacts.items.[INDEX].cloud_run_context","typeLabel":"SnapshotArtifactCloudRunContext · object | null"}},"type":"object","required":["name","fingerprint","creationTimestamp","annotation","flow_name","git_commit","commit_url","html_url","flow_html_url","flows"],"title":"SnapshotArtifact","uniqueKey":"artifacts.items.[INDEX]","typeLabel":"SnapshotArtifact · object"},"type":"array","title":"Artifacts","description":"The list of artifacts in the snapshot","isRequired":true,"uniqueKey":"artifacts","typeLabel":"SnapshotArtifact · object[]"},"applied_policies":{"items":{"additionalProperties":true,"type":"object","uniqueKey":"applied_policies.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Applied Policies","description":"The list of policies applied to this snapshot","isRequired":true,"uniqueKey":"applied_policies","typeLabel":"Applied Policies · object[]"},"next_snapshot_timestamp":{"oneOf":[{"type":"number","title":"Next Snapshot Timestamp","description":"The creation timestamp of the next snapshot if one exists","uniqueKey":"next_snapshot_timestamp.oneOf.0","typeLabel":"number"},{"type":"null","title":"Next Snapshot Timestamp","description":"The creation timestamp of the next snapshot if one exists","uniqueKey":"next_snapshot_timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_snapshot_timestamp","typeLabel":"number | null"}},"type":"object","required":["index","is_latest","artifact_compliance_count","timestamp","type","compliant","html_url","artifacts","applied_policies"],"title":"GetSnapshotResponse","uniqueKey":"","typeLabel":"GetSnapshotResponse · object"},"examples":{"Example":{"title":"Example","value":{"index":123,"is_latest":true,"artifact_compliance_count":{},"timestamp":123,"type":"\u003cstring>","compliant":true,"html_url":"\u003cstring>","artifacts":[{"name":"\u003cstring>","fingerprint":"\u003cstring>","creationTimestamp":[123],"annotation":{},"flow_name":"\u003cstring>","git_commit":"\u003cstring>","commit_url":"\u003cstring>","html_url":"\u003cstring>","flow_html_url":"\u003cstring>","flows":[{"flow_name":"\u003cstring>","git_commit":"\u003cstring>","commit_url":"\u003cstring>","html_url":"\u003cstring>","flow_html_url":"\u003cstring>","trail_name":"\u003cstring>","template_reference_name":"\u003cstring>","git_commit_info":{},"deployment_diff":{"diff_url":"\u003cstring>","previous_git_commit":"\u003cstring>","previous_git_commit_url":"\u003cstring>","previous_fingerprint":"\u003cstring>","previous_artifact_name":"\u003cstring>","previous_artifact_compliance_state":"\u003cstring>","previous_running":true,"previous_trail_name":"\u003cstring>","previous_template_reference_name":"\u003cstring>"},"commit_lead_time":123,"artifact_compliance_in_flow":true,"flow_reasons_for_non_compliance":[{}]}],"compliant":true,"deployments":[123],"policy_decisions":[{"policy_version":123,"status":"COMPLIANT","policy_name":"\u003cstring>","rule_evaluations":[]}],"reasons_for_incompliance":[{}],"pods":{},"deployment_diff":{"diff_url":"\u003cstring>","previous_git_commit":"\u003cstring>","previous_git_commit_url":"\u003cstring>","previous_fingerprint":"\u003cstring>","previous_artifact_name":"\u003cstring>","previous_artifact_compliance_state":"\u003cstring>","previous_running":true,"previous_trail_name":"\u003cstring>","previous_template_reference_name":"\u003cstring>"},"commit_lead_time":123,"ecs_context":{"task_arn":"\u003cstring>","cluster_name":"\u003cstring>","service_name":"\u003cstring>"},"cloud_run_context":{"kind":"\u003cstring>","revision_name":"\u003cstring>","service_name":"\u003cstring>","job_name":"\u003cstring>"}}],"applied_policies":[{}],"next_snapshot_timestamp":123}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"928588fc-8447-43d4-bd53-521d67f5a823":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"}},"87aed4e6-a1d6-4fe9-93b6-ec6a3bca86c9":{"HTTPBasic":{"$ref":"5c3e2768-ad78-465c-8900-4a37bcf5c2ae","scopes":[]}}},"servers":{"46f1752b-c86a-4aff-9fd4-770655ca3d72":{"url":"https://app.kosli.com/api/v2","description":"EU"},"1fbcc30c-3132-4c15-849a-19e98b1095fc":{"url":"https://app.us.kosli.com/api/v2","description":"US"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"https://app.kosli.com/api/v2/openapi.json"},"subdomain":"kosli","siteName":"Kosli Documentation","title":"Get snapshot - Kosli Documentation","contextualStarterQuestions":[{"_id":"69e22991f00f77c4dc7edfe4","deploymentId":"694a567a82866c4f503bbfbf","questionText":"How do I query snapshots by date?","status":"active","generatedBy":"contextual","path":"api-reference/snapshots/get-snapshot","createdAt":"2026-04-17T12:37:37.095Z","updatedAt":"2026-04-17T12:37:37.095Z","__v":0},{"_id":"69e22991f00f77c4dc7edfe2","deploymentId":"694a567a82866c4f503bbfbf","questionText":"How do I get the latest snapshot?","status":"active","generatedBy":"contextual","path":"api-reference/snapshots/get-snapshot","createdAt":"2026-04-17T12:37:37.095Z","updatedAt":"2026-04-17T12:37:37.095Z","__v":0},{"_id":"69e22991f00f77c4dc7edfe3","deploymentId":"694a567a82866c4f503bbfbf","questionText":"What snapshot time formats work?","status":"active","generatedBy":"contextual","path":"api-reference/snapshots/get-snapshot","createdAt":"2026-04-17T12:37:37.095Z","updatedAt":"2026-04-17T12:37:37.095Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/snapshots/get-snapshot.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get a snapshot for an environment. snapshot_expression can be specified as follows: - N: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot. example: 42 - ~N: the Nth snapshot behind the latest, at the time of the request example: ~5 - @{YYYY-MM-DDTHH:MM:SS}: the snapshot at specific moment in time in UTC example: @{2023-10-02T12:00:00} - @{N..ago}: the snapshot at a time relative to the time of the request. N is a positive integer. example: @{2.hours.ago} - @{now}: the snapshot at the time of the request example: @{now}\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kosli Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get snapshot - Kosli Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a snapshot for an environment. snapshot_expression can be specified as follows: - N: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot. example: 42 - ~N: the Nth snapshot behind the latest, at the time of the request example: ~5 - @{YYYY-MM-DDTHH:MM:SS}: the snapshot at specific moment in time in UTC example: @{2023-10-02T12:00:00} - @{N..ago}: the snapshot at a time relative to the time of the request. N is a positive integer. example: @{2.hours.ago} - @{now}: the snapshot at the time of the request example: @{now}\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kosli Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kosli.com/api-reference/snapshots/get-snapshot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kosli.mintlify.site/_mintlify/api/og/v2?division=Snapshots\u0026amp;title=Get+snapshot\u0026amp;description=Get+a+snapshot+for+an+environment.%0A%0A%60snapshot_expression%60+can+be+specified+as+follows%3A%0A-+%60N%60%3A+the+Nth+snapshot%2C+counting+from+1.+Negative+values+count+from+the+\u0026amp;theme=381f3588bbad67d04f5be36e\u0026amp;signature=04afae237437f945355c9c1fa3d1fa3dcbb3eccd9871211cf54994d28ca36ffa\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get snapshot - Kosli Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a snapshot for an environment. snapshot_expression can be specified as follows: - N: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot. example: 42 - ~N: the Nth snapshot behind the latest, at the time of the request example: ~5 - @{YYYY-MM-DDTHH:MM:SS}: the snapshot at specific moment in time in UTC example: @{2023-10-02T12:00:00} - @{N..ago}: the snapshot at a time relative to the time of the request. N is a positive integer. example: @{2.hours.ago} - @{now}: the snapshot at the time of the request example: @{now}\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kosli.mintlify.site/_mintlify/api/og/v2?division=Snapshots\u0026amp;title=Get+snapshot\u0026amp;description=Get+a+snapshot+for+an+environment.%0A%0A%60snapshot_expression%60+can+be+specified+as+follows%3A%0A-+%60N%60%3A+the+Nth+snapshot%2C+counting+from+1.+Negative+values+count+from+the+\u0026amp;theme=381f3588bbad67d04f5be36e\u0026amp;signature=04afae237437f945355c9c1fa3d1fa3dcbb3eccd9871211cf54994d28ca36ffa\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kosli/7UeZPXzpjJmWmx3T/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kosli Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1C4BC6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kosli.com/api-reference/snapshots/get-snapshot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/snapshots/get-snapshot.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kosli.com/#organization\",\"name\":\"Kosli Documentation\",\"url\":\"https://docs.kosli.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kosli/Cee1LAu-Jhawp1Om/logo/kosli-logo-light-main.svg?fit=max\u0026auto=format\u0026n=Cee1LAu-Jhawp1Om\u0026q=85\u0026s=fb05fdbb0c9c9ae7da266a500eac2be6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kosli.com#website\",\"name\":\"Kosli Documentation\",\"url\":\"https://docs.kosli.com\",\"publisher\":{\"@id\":\"https://docs.kosli.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot#webpage\",\"url\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot\",\"name\":\"Get snapshot\",\"description\":\"Get a snapshot for an environment. snapshot_expression can be specified as follows: - N: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot. example: 42 - ~N: the Nth snapshot behind the latest, at the time of the request example: ~5 - @{YYYY-MM-DDTHH:MM:SS}: the snapshot at specific moment in time in UTC example: @{2023-10-02T12:00:00} - @{N..ago}: the snapshot at a time relative to the time of the request. N is a positive integer. example: @{2.hours.ago} - @{now}: the snapshot at the time of the request example: @{now}\",\"isPartOf\":{\"@id\":\"https://docs.kosli.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Snapshots\",\"item\":\"https://docs.kosli.com/api-reference/snapshots/list-snapshots\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get snapshot\",\"item\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot#apireference\",\"headline\":\"Get snapshot\",\"name\":\"Get snapshot\",\"description\":\"Get a snapshot for an environment. snapshot_expression can be specified as follows: - N: the Nth snapshot, counting from 1. Negative values count from the latest snapshot i.e. -1 is the latest snapshot. example: 42 - ~N: the Nth snapshot behind the latest, at the time of the request example: ~5 - @{YYYY-MM-DDTHH:MM:SS}: the snapshot at specific moment in time in UTC example: @{2023-10-02T12:00:00} - @{N..ago}: the snapshot at a time relative to the time of the request. N is a positive integer. example: @{2.hours.ago} - @{now}: the snapshot at the time of the request example: @{now}\",\"url\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kosli.com/api-reference/snapshots/get-snapshot#webpage\"},\"publisher\":{\"@id\":\"https://docs.kosli.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kosli.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kosli Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Kosli Documentation","nav":{"global":null,"tabs":[{"tab":"Discover Kosli","pages":[{"title":"Discover Kosli","href":"/understand_kosli/what_is_kosli"}]},{"tab":"Platform administration","pages":[{"title":"Platform administration","href":"/user/default_organization"}]},{"tab":"Risks and controls","pages":[{"title":"Risks and controls","href":"/understand_kosli/risks"}]},{"tab":"Environments and runtime","pages":[{"title":"Environments and runtime","href":"/administration/managing_environments/overview"}]},{"tab":"Record evidence","pages":[{"title":"Record evidence","href":"/tutorials/organizing_with_spaces"}]},{"tab":"Reference","menu":[{"item":"CLI Reference","icon":"terminal","pages":[{"title":"CLI Reference","href":"/client_reference/overview"}]},{"item":"API Reference","icon":"code","groups":[{"group":"Get started","pages":[{"title":"Kosli API","sidebarTitle":"Overview","icon":"book-open","href":"/api-reference/overview"}]},{"group":"Actions","pages":[{"title":"List actions","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /actions/{org}","href":"/api-reference/actions/list-actions"},{"title":"Create or update environment action","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /actions/{org}/environments","href":"/api-reference/actions/create-or-update-environment-action"},{"title":"Create or update flow action","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /actions/{org}/flows","href":"/api-reference/actions/create-or-update-flow-action"},{"title":"Get action","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /actions/{org}/{action_number}","href":"/api-reference/actions/get-action"},{"title":"Delete an action","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /actions/{org}/{action_number}","href":"/api-reference/actions/delete-an-action"}]},{"group":"Allowlists","pages":[{"title":"List allowlist","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /allowlists/{org}","href":"/api-reference/allowlists/list-allowlist"},{"title":"Allow artifact for environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /allowlists/{org}/{env_name}","href":"/api-reference/allowlists/allow-artifact-for-environment"}]},{"group":"Artifacts","pages":[{"title":"List artifacts","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}","href":"/api-reference/artifacts/list-artifacts"},{"title":"List artifacts in flow","deprecated":true,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}/{flow_name}","href":"/api-reference/artifacts/list-artifacts-in-flow"},{"title":"Report artifact","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /artifacts/{org}/{flow_name}","href":"/api-reference/artifacts/report-artifact"},{"title":"Get artifacts by commit SHA","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}/{flow_name}/commit_sha/{commit_sha}","href":"/api-reference/artifacts/get-artifacts-by-commit-sha"},{"title":"Get artifact by fingerprint","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}/{flow_name}/fingerprint/{fingerprint}","href":"/api-reference/artifacts/get-artifact-by-fingerprint"},{"title":"Get artifact audit package","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}/{flow_name}/{fingerprint}/audit_package","href":"/api-reference/artifacts/get-artifact-audit-package"},{"title":"Get latest artifact commit","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /artifacts/{org}/{flow_name}/{fingerprint}/latest_commit","href":"/api-reference/artifacts/get-latest-artifact-commit"}]},{"group":"Asserts","pages":[{"title":"Assert artifact","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /asserts/{org}/fingerprint/{fingerprint}","href":"/api-reference/asserts/assert-artifact"}]},{"group":"Attestation","pages":[{"title":"List system attestation types","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/system-attestation-types","href":"/api-reference/attestation/list-system-attestation-types"},{"title":"List attestations","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}","href":"/api-reference/attestation/list-attestations"},{"title":"List attestations for criteria","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/list_attestations_for_criteria","href":"/api-reference/attestation/list-attestations-for-criteria"},{"title":"Create an attachment upload","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/uploads","href":"/api-reference/attestation/create-an-attachment-upload"},{"title":"List flow attestations","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}","href":"/api-reference/attestation/list-flow-attestations"},{"title":"Get artifact attestation","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/artifact/{fingerprint}/{attestation_name}","href":"/api-reference/attestation/get-artifact-attestation"},{"title":"Get trail attestation by ID","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/trail/{trail_name}/attestation/{attestation_id}","href":"/api-reference/attestation/get-trail-attestation-by-id"},{"title":"Get attestation evidence file","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/trail/{trail_name}/attestation/{attestation_id}/evidence","href":"/api-reference/attestation/get-attestation-evidence-file"},{"title":"Attest custom","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/custom","href":"/api-reference/attestation/attest-custom"},{"title":"Attest generic","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/generic","href":"/api-reference/attestation/attest-generic"},{"title":"Attest Jira issue","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/jira","href":"/api-reference/attestation/attest-jira-issue"},{"title":"Attest JUnit test results","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/junit","href":"/api-reference/attestation/attest-junit-test-results"},{"title":"Override attestation","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/override","href":"/api-reference/attestation/override-attestation"},{"title":"Attest pull request","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/pull_request","href":"/api-reference/attestation/attest-pull-request"},{"title":"Attest Snyk scan","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/snyk","href":"/api-reference/attestation/attest-snyk-scan"},{"title":"Attest Sonar scan","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/sonar","href":"/api-reference/attestation/attest-sonar-scan"},{"title":"Attest system","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /attestations/{org}/{flow_name}/trail/{trail_name}/system","href":"/api-reference/attestation/attest-system"},{"title":"Get trail attestation","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/trail/{trail_name}/{attestation_name}","href":"/api-reference/attestation/get-trail-attestation"}]},{"group":"Builds","pages":[{"title":"List Builds","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /builds/{org}","href":"/api-reference/builds/list-builds"},{"title":"Build frequency statistics","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /builds/{org}/statistics","href":"/api-reference/builds/build-frequency-statistics"}]},{"group":"Controls","pages":[{"title":"List controls","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}","href":"/api-reference/controls/list-controls"},{"title":"Create a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /controls/{org}","href":"/api-reference/controls/create-a-control"},{"title":"List distinct tag key/value pairs for an org's controls","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/tags","href":"/api-reference/controls/list-distinct-tag-keyvalue-pairs-for-an-orgs-controls"},{"title":"Get a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}","href":"/api-reference/controls/get-a-control"},{"title":"Update a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /controls/{org}/{identifier}","href":"/api-reference/controls/update-a-control"},{"title":"Archive a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /controls/{org}/{identifier}/archive","href":"/api-reference/controls/archive-a-control"},{"title":"Environment coverage for a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}/coverage","href":"/api-reference/controls/environment-coverage-for-a-control"},{"title":"List decisions for a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}/decisions","href":"/api-reference/controls/list-decisions-for-a-control"},{"title":"Get a single decision for a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}/decisions/{decision_id}","href":"/api-reference/controls/get-a-single-decision-for-a-control"},{"title":"Unarchive a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /controls/{org}/{identifier}/unarchive","href":"/api-reference/controls/unarchive-a-control"},{"title":"List versions of a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}/versions","href":"/api-reference/controls/list-versions-of-a-control"},{"title":"Get a specific version of a control","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /controls/{org}/{identifier}/versions/{version_number}","href":"/api-reference/controls/get-a-specific-version-of-a-control"}]},{"group":"Custom Attestation Types","pages":[{"title":"List custom attestation types","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /custom-attestation-types/{org}","href":"/api-reference/custom-attestation-types/list-custom-attestation-types"},{"title":"Create or update custom attestation type","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /custom-attestation-types/{org}","href":"/api-reference/custom-attestation-types/create-or-update-custom-attestation-type"},{"title":"Get custom attestation type","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /custom-attestation-types/{org}/{custom_attestation_type_name}","href":"/api-reference/custom-attestation-types/get-custom-attestation-type"},{"title":"Archive custom attestation type","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /custom-attestation-types/{org}/{custom_attestation_type_name}/archive","href":"/api-reference/custom-attestation-types/archive-custom-attestation-type"}]},{"group":"Deployments","pages":[{"title":"List Deployments","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /deployments/{org}","href":"/api-reference/deployments/list-deployments"},{"title":"Get Deployment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /deployments/{org}/{env_name}/{fingerprint}","href":"/api-reference/deployments/get-deployment"}]},{"group":"EnvDiff","pages":[{"title":"Get environment diff","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /env-diff/{org}","href":"/api-reference/envdiff/get-environment-diff"}]},{"group":"Environments","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}","href":"/api-reference/environments/list-environments"},{"title":"Create or update environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}","href":"/api-reference/environments/create-or-update-environment"},{"title":"Get environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}/{env_name}","href":"/api-reference/environments/get-environment"},{"title":"Update environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json patch /environments/{org}/{env_name}","href":"/api-reference/environments/update-environment"},{"title":"Archive environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/archive","href":"/api-reference/environments/archive-environment"},{"title":"Get environment audit log","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}/{env_name}/auditlog","href":"/api-reference/environments/get-environment-audit-log"},{"title":"Get deployment frequency","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}/{env_name}/deployment_frequency","href":"/api-reference/environments/get-deployment-frequency"},{"title":"List deployments for an environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}/{env_name}/deployments","href":"/api-reference/environments/list-deployments-for-an-environment"},{"title":"List environment events","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /environments/{org}/{env_name}/events","href":"/api-reference/environments/list-environment-events"},{"title":"Add environment to logical environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/join","href":"/api-reference/environments/add-environment-to-logical-environment"},{"title":"Attach policy to environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /environments/{org}/{env_name}/policies","href":"/api-reference/environments/attach-policy-to-environment"},{"title":"Detach policy from environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /environments/{org}/{env_name}/policies","href":"/api-reference/environments/detach-policy-from-environment"},{"title":"Rename environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/rename","href":"/api-reference/environments/rename-environment"},{"title":"Report ECS environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/ECS","href":"/api-reference/environments/report-ecs-environment"},{"title":"Report K8S environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/K8S","href":"/api-reference/environments/report-k8s-environment"},{"title":"Report S3 environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/S3","href":"/api-reference/environments/report-s3-environment"},{"title":"Report Azure Web and Function Apps environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/azure-apps","href":"/api-reference/environments/report-azure-web-and-function-apps-environment"},{"title":"Report Cloud Run environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/cloud-run","href":"/api-reference/environments/report-cloud-run-environment"},{"title":"Report Docker environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/docker","href":"/api-reference/environments/report-docker-environment"},{"title":"Report Lambda environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/lambda","href":"/api-reference/environments/report-lambda-environment"},{"title":"Report server environment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /environments/{org}/{env_name}/report/server","href":"/api-reference/environments/report-server-environment"}]},{"group":"Evaluations","pages":[{"title":"List evaluations","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /evaluations/{org}","href":"/api-reference/evaluations/list-evaluations"},{"title":"Create an evaluation","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /evaluations/{org}","href":"/api-reference/evaluations/create-an-evaluation"},{"title":"Get an evaluation","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /evaluations/{org}/{evaluation_id}","href":"/api-reference/evaluations/get-an-evaluation"},{"title":"Get an evaluation's input","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /evaluations/{org}/{evaluation_id}/input","href":"/api-reference/evaluations/get-an-evaluations-input"}]},{"group":"Flows","pages":[{"title":"List flows","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /flows/{org}","href":"/api-reference/flows/list-flows"},{"title":"Create or update flow","deprecated":true,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /flows/{org}","href":"/api-reference/flows/create-or-update-flow"},{"title":"Create or update flow with template","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /flows/{org}/template_file","href":"/api-reference/flows/create-or-update-flow-with-template"},{"title":"Get flow","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /flows/{org}/{flow_name}","href":"/api-reference/flows/get-flow"},{"title":"Archive flow","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /flows/{org}/{flow_name}/archive","href":"/api-reference/flows/archive-flow"},{"title":"Rename flow","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /flows/{org}/{flow_name}/rename","href":"/api-reference/flows/rename-flow"}]},{"group":"Audit Log","pages":[{"title":"List membership/role change history for an org","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /membership-audit-log/{org}","href":"/api-reference/audit-log/list-membershiprole-change-history-for-an-org"}]},{"group":"Notification Config","pages":[{"title":"Get notification configuration","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /notification-config/{org}/{notification_type}","href":"/api-reference/notification-config/get-notification-configuration"},{"title":"Create or update notification configuration","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /notification-config/{org}/{notification_type}","href":"/api-reference/notification-config/create-or-update-notification-configuration"},{"title":"Delete notification configuration","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /notification-config/{org}/{notification_type}","href":"/api-reference/notification-config/delete-notification-configuration"}]},{"group":"Organizations","pages":[{"title":"Get organization","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /organizations/{org}","href":"/api-reference/organizations/get-organization"},{"title":"List environment notifications","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /organizations/{org}/environments_notifications","href":"/api-reference/organizations/list-environment-notifications"},{"title":"Create or update environment notification","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /organizations/{org}/environments_notifications","href":"/api-reference/organizations/create-or-update-environment-notification"},{"title":"Get environment notification","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /organizations/{org}/environments_notifications/{notification_number}","href":"/api-reference/organizations/get-environment-notification"},{"title":"Update environment notification","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /organizations/{org}/environments_notifications/{notification_number}","href":"/api-reference/organizations/update-environment-notification"},{"title":"Delete environment notification","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /organizations/{org}/environments_notifications/{notification_number}","href":"/api-reference/organizations/delete-environment-notification"}]},{"group":"Policies","pages":[{"title":"List policies","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /policies/{org}","href":"/api-reference/policies/list-policies"},{"title":"Create or update policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /policies/{org}","href":"/api-reference/policies/create-or-update-policy"},{"title":"Get policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /policies/{org}/{policy_name}","href":"/api-reference/policies/get-policy"}]},{"group":"Rego Policies","pages":[{"title":"List rego policies","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}","href":"/api-reference/rego-policies/list-rego-policies"},{"title":"Get a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}","href":"/api-reference/rego-policies/get-a-rego-policy"},{"title":"Publish a version of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /rego-policies/{org}/{identifier}","href":"/api-reference/rego-policies/publish-a-version-of-a-rego-policy"},{"title":"List versions of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}/versions","href":"/api-reference/rego-policies/list-versions-of-a-rego-policy"},{"title":"Get a version of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}/versions/{version_number}","href":"/api-reference/rego-policies/get-a-version-of-a-rego-policy"},{"title":"Download the files of a version of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}/versions/{version_number}/bundle","href":"/api-reference/rego-policies/download-the-files-of-a-version-of-a-rego-policy"},{"title":"List the files of a version of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}/versions/{version_number}/files","href":"/api-reference/rego-policies/list-the-files-of-a-version-of-a-rego-policy"},{"title":"Get the source of a file in a version of a rego policy","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /rego-policies/{org}/{identifier}/versions/{version_number}/files/{file_path}","href":"/api-reference/rego-policies/get-the-source-of-a-file-in-a-version-of-a-rego-policy"}]},{"group":"Repos","pages":[{"title":"List repos","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}","href":"/api-reference/repos/list-repos"},{"title":"List repo filter options","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/filter-options","href":"/api-reference/repos/list-repo-filter-options"},{"title":"Get live artifacts for a repo","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/live-artifacts/{repo_name}","href":"/api-reference/repos/get-live-artifacts-for-a-repo"},{"title":"List repo tag choices","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/tags","href":"/api-reference/repos/list-repo-tag-choices"},{"title":"Get a repo","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/{repo_name}","href":"/api-reference/repos/get-a-repo"},{"title":"Deployment frequency and lead-time statistics for a repo","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/{repo}/deployment-statistics","href":"/api-reference/repos/deployment-frequency-and-lead-time-statistics-for-a-repo"},{"title":"List deployments for a repo","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /repos/{org}/{repo}/deployments","href":"/api-reference/repos/list-deployments-for-a-repo"}]},{"group":"Schemas","pages":[{"title":"Environment policy schema v1","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /schemas/environment-policy/v1","href":"/api-reference/schemas/environment-policy-schema-v1"},{"title":"Rego policy input schema for a single trail v1","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /schemas/evaluation-input/trail/v1","href":"/api-reference/schemas/rego-policy-input-schema-for-a-single-trail-v1"},{"title":"Rego policy input schema for many trails v1","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /schemas/evaluation-input/trails/v1","href":"/api-reference/schemas/rego-policy-input-schema-for-many-trails-v1"},{"title":"Flow template schema v1","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /schemas/flow-template/v1","href":"/api-reference/schemas/flow-template-schema-v1"}]},{"group":"Search","pages":[{"title":"Search commits by SHA prefix","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /search/{org}/commit/{sha_prefix}","href":"/api-reference/search/search-commits-by-sha-prefix"},{"title":"List trails for a commit","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /search/{org}/commit/{sha}/trails","href":"/api-reference/search/list-trails-for-a-commit"},{"title":"Search artifacts by SHA or fingerprint","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /search/{org}/sha/{search_value}","href":"/api-reference/search/search-artifacts-by-sha-or-fingerprint"}]},{"group":"Service Accounts","pages":[{"title":"List service accounts in an organization","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /service-accounts/{org}","href":"/api-reference/service-accounts/list-service-accounts-in-an-organization"},{"title":"Create a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /service-accounts/{org}","href":"/api-reference/service-accounts/create-a-service-account"},{"title":"Get a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /service-accounts/{org}/{name}","href":"/api-reference/service-accounts/get-a-service-account"},{"title":"Delete a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /service-accounts/{org}/{name}","href":"/api-reference/service-accounts/delete-a-service-account"},{"title":"Update a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json patch /service-accounts/{org}/{name}","href":"/api-reference/service-accounts/update-a-service-account"},{"title":"List API keys for a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /service-accounts/{org}/{name}/api-keys","href":"/api-reference/service-accounts/list-api-keys-for-a-service-account"},{"title":"Create an API key for a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /service-accounts/{org}/{name}/api-keys","href":"/api-reference/service-accounts/create-an-api-key-for-a-service-account"},{"title":"Get an API key for a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /service-accounts/{org}/{name}/api-keys/{key_id}","href":"/api-reference/service-accounts/get-an-api-key-for-a-service-account"},{"title":"Revoke an API key for a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /service-accounts/{org}/{name}/api-keys/{key_id}","href":"/api-reference/service-accounts/revoke-an-api-key-for-a-service-account"},{"title":"Rotate an API key for a service account","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /service-accounts/{org}/{name}/api-keys/{key_id}/rotate","href":"/api-reference/service-accounts/rotate-an-api-key-for-a-service-account"}]},{"group":"Snapshots","pages":[{"title":"List snapshots","description":"Get list of snapshots for an environment.","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /snapshots/{org}/{env_name}","href":"/api-reference/snapshots/list-snapshots"},{"title":"Get snapshot","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /snapshots/{org}/{env_name}/{snapshot_expression}","href":"/api-reference/snapshots/get-snapshot"}]},{"group":"Tags","pages":[{"title":"Update tags","description":"Patch tags for resource.","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json patch /tags/{org}/{resource_type}/{resource_id}","href":"/api-reference/tags/update-tags"}]},{"group":"Trails","pages":[{"title":"List trails for organization","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}","href":"/api-reference/trails/list-trails-for-organization"},{"title":"List trails","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}","href":"/api-reference/trails/list-trails"},{"title":"Begin trail","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /trails/{org}/{flow_name}","href":"/api-reference/trails/begin-trail"},{"title":"Get trail","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}","href":"/api-reference/trails/get-trail"},{"title":"Download trail audit package","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/audit_package","href":"/api-reference/trails/download-trail-audit-package"},{"title":"Download trail audit PDF","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/audit_pdf","href":"/api-reference/trails/download-trail-audit-pdf"},{"title":"List trail events","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/events","href":"/api-reference/trails/list-trail-events"},{"title":"Download trail events PDF","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/events_pdf","href":"/api-reference/trails/download-trail-events-pdf"},{"title":"List trail moments","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/moments","href":"/api-reference/trails/list-trail-moments"},{"title":"Get trail moment","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/moments/{moment_expression}","href":"/api-reference/trails/get-trail-moment"},{"title":"Download trail status PDF","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /trails/{org}/{flow_name}/{trail_name}/status_pdf","href":"/api-reference/trails/download-trail-status-pdf"}]},{"group":"User","pages":[{"title":"List personal API keys","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /user/api-keys","href":"/api-reference/user/list-personal-api-keys"},{"title":"Create a personal API key","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /user/api-keys","href":"/api-reference/user/create-a-personal-api-key"},{"title":"Get a personal API key","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /user/api-keys/{key_id}","href":"/api-reference/user/get-a-personal-api-key"},{"title":"Revoke a personal API key","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json delete /user/api-keys/{key_id}","href":"/api-reference/user/revoke-a-personal-api-key"},{"title":"Rotate a personal API key","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json post /user/api-keys/{key_id}/rotate","href":"/api-reference/user/rotate-a-personal-api-key"},{"title":"Get default organization","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json get /user/default-org","href":"/api-reference/user/get-default-organization"},{"title":"Set default organization","deprecated":null,"version":null,"openapi":"https://app.kosli.com/api/v2/openapi.json put /user/{org}","href":"/api-reference/user/set-default-organization"}]}]},{"item":"GitHub Action Reference","icon":"github","pages":[{"title":"GitHub Action Reference","href":"/github-action-reference/setup_cli_action"}]},{"item":"Terraform Reference","icon":"cubes","pages":[{"title":"Terraform Reference","href":"/terraform-reference"}]},{"item":"Helm Reference","icon":"layer-group","pages":[{"title":"Helm Reference","href":"/helm/k8s_reporter/overview"}]},{"item":"Template Reference","icon":"file-code","pages":[{"title":"Template Reference","href":"/template-reference/flow_template"}]},{"item":"Policy Reference","icon":"scroll","pages":[{"title":"Policy Reference","href":"/policy-reference/environment_policy"}]}]},{"tab":"Changelog","icon":"clock","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Get snapshot - Kosli Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}