Submit cloud snapshot
Accept a customer-controlled provider inventory with no ambient cloud authority. A repository's keyless CI token is accepted only for a cloud account connected to that repository (cloud quick-connect).
POST
Accept a customer-controlled provider inventory with no ambient cloud authority.
A repository's keyless CI token is accepted only for a cloud account connected to that repository (cloud quick-connect).
workspaceTokenheader
AuthorizationBearer <vat_<opaque-token>>Expiring, hashed workspace token with explicit scopes.
workspace_id*Workspace IdFormat
uuidstale_after_seconds?Stale After SecondsRange
300 <= value <= 604800Default
86400application/json- body
A bounded snapshot produced by a customer-controlled cloud collector.
account_ref*Account RefLength
1 <= length <= 255collection?How a bounded inventory was collected, including partial-coverage disclosure.
provider*ProviderValue in
"aws""azure""gcp"relationships?array<>Items
items <= 1000resources*array<>Items
1 <= items <= 500schema_version?Schema VersionDefault
"veriom-cloud-evidence-v1"sync_id*Sync IdLength
1 <= length <= 255Successful Response
application/json- response
accepted_evidence*Accepted Evidenceaccount_boundary*Account Boundaryaccount_ref*Account Refage_seconds*Age Secondscollected_at*Collected AtFormat
date-timecollection_status*Collection StatusValue in
"complete""partial"freshness*FreshnessValue in
"current""stale"ingestion_id*Ingestion IdFormat
uuidnewest_observed_at*Newest Observed AtFormat
date-timeprovider*ProviderValue in
"aws""azure""gcp"relationship_count*Relationship Countreplayed?ReplayedDefault
falseresource_count*Resource Countstale_after_seconds*Stale After Secondssync_id*Sync Idwarnings?array<string>curl -X POST 'https://api.veriom.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/cloud/snapshots' \ -H 'Content-Type: application/json' \ -d '{ "account_ref": "string", "provider": "aws", "resources": [ { "external_id": "string", "name": "string", "resource_type": "string" } ], "sync_id": "string"}'Example Response
{ "accepted_evidence": 0, "account_boundary": "string", "account_ref": "string", "age_seconds": 0, "collected_at": "2019-08-24T14:15:22Z", "collection_status": "complete", "freshness": "current", "ingestion_id": "330007c8-a401-40a2-81b9-8c140ac8d66a", "newest_observed_at": "2019-08-24T14:15:22Z", "provider": "aws", "relationship_count": 0, "replayed": false, "resource_count": 0, "stale_after_seconds": 0, "sync_id": "string", "warnings": [ "string" ]}