Returns the collection coverage of one opened source registration, selected by ?source_id, ?source_revision and ?environment_ref: the current run's result, and the last qualified run when its scope has one.
const url = 'https://example.com/v1/m/inventory/collections?source_id=example&source_revision=1&environment_ref=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/m/inventory/collections?source_id=example&source_revision=1&environment_ref=example' \ --header 'Authorization: Bearer <token>'Returns the collection coverage of one opened source registration, selected by ?source_id, ?source_revision and ?environment_ref: the current run’s result, and the last qualified run when its scope has one.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Query Parameters
Section titled “ Query Parameters ”Source ID from the caller’s CURRENT opened registration; nonempty, at most 128 bytes. An old selector reads that historical selection, not the current roster.
Positive signed 64-bit revision from the same CURRENT opened registration; missing or invalid selectors return 400.
Environment from the same CURRENT opened registration; nonempty, at most 128 bytes. Unmatched selection returns unknown coverage.
Responses
Section titled “ Responses ”Collection evidence for the caller-selected CURRENT opened registration. An unmatched selection returns unknown, never inherited completeness. Current enumeration and projection are separate from historical last_qualified_success for the exact scope. Complete describes this query over its observed interval, not a global snapshot or provider authorization. Empty completion does not delete resources.
object
Optional list-envelope continuation cursor; this exact source selection has at most one head.
List-envelope continuation flag, not evidence of collection completeness.
object
object
SHA-256 fingerprint of the versioned query scope.
Host closure after Gather returns.
Host start as an RFC3339 timestamp; empty when the selected registration has no run.
Producer-declared enumeration end.
Producer-declared enumeration start.
Queued members are pending until their receipt/materialization commits; enumeration alone cannot qualify them.
Inventory qualification after all expected members commit.
SHA-256 fingerprint of the versioned query scope.
Host run ID; empty when the selected registration has no run.
Durable source order; zero when no run exists.
Immutable historical qualification for this exact registration and scope; absent until one run qualifies. Later rejection evidence does not rewrite this receipt.
object
SHA-256 fingerprint of the versioned query scope.
Host closure after Gather returns.
Host run start, separate from producer observation time.
Producer-declared enumeration end.
Producer-declared enumeration start.
Inventory qualification after all expected members commit.
SHA-256 fingerprint of the versioned query scope.
Host-owned collection run ID.
Example
{ "items": [ { "current": { "coverage": "complete", "family": "azure.resource", "projection": "pending", "reason": "", "rejection_reason": "terminal_conflict", "scope_contract": "azure-resource-graph/2022-10-01/id-v1" }, "last_qualified_success": { "family": "azure.resource", "scope_contract": "azure-resource-graph/2022-10-01/id-v1" } } ]}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Tenant service suspended or not in service
object
Example generated
{}Rate limited
object
Example generated
{}Stored collection evidence or store read failed; the generic error body contains no backend detail
object
Example generated
{}