Children of a context graph box
One level of what the tenant runs and pays for as boxes, for a window of up to 90 days (default the last 7 days). Without parent it returns the top-level boxes (accounts and groups, plus a group per provider and kind for boxes that sit in none) with the box-to-box links, coverage, tray, start_here and known_gaps; with parent it returns the children of that box, highest cost first with the entity id as tiebreak (children that show an allocated cost, such as namespaces and workloads, are ranked by that cost), at most group_limit at a time (CONTEXT_GRAPH_CHILD_LIMIT; CONTEXT_GRAPH_TOP_LEVEL_LIMIT without parent), and parent is that box with its total cost. children_total counts every child, including children with no cost; remainder is how many children are not shown after this page and what they cost together. Page on with next_cursor passed as cursor (it costs the same at any depth) or, for the first pages only, group_offset (at most CONTEXT_GRAPH_MAX_OFFSET); cursor and group_offset cannot be combined. include pins a box: pinned_id is set when it is a box in the window and pinned_ancestors lists the boxes above it from the top, so a client opens each level with parent set to the ancestor and include set to the next id on the path; the pinned box leads nodes only when its direct parent is the requested parent (or it is a top-level box and parent is absent) and it never appears twice in a sequence. An include or parent that is not a box in the window is a 400. Money is rounded to cents and an amount under half a cent is 0. period last_7d, last_30d and month_to_date are served from totals rebuilt in the background; their window is the one the last rebuild covered. For a custom or calendar_month window, or with a filter, every amount (the box total, its children, the remainder and the links) is exact for that window and filter; only the order of the children of a box with more than CONTEXT_GRAPH_EXACT_CHILD_THRESHOLD children is taken from the nearest rebuilt period. Unfiltered box totals come from daily totals kept for 92 days. A window older than that or ending after the last rebuild, and every filtered request on such a box, sums the bill instead and is slower. With a filter the remainder of such a box also holds the box’s own cost lines. With filter only boxes with matching cost rows are listed. Boxes with more than 2000 boxes inside show their cost, refs, details, signals other than idle and meters other than billed usage, but no breakdown, basis_parts, idle_share, has_infrastructure or billed usage meters; the others carry typed references (refs, primary), details, typed signals, meters (including bill usage per dimension with its cost and, for a host running the CostGraph agent, its hourly price), breakdown shares and basis_parts, idle_share and cluster. Billed and allocated costs are separate layers and never added together. links are the connections touching the boxes of the page. Both ends of a link are boxes the client has: a nodes entry, parent, a box above parent, a top-level box, or a child of a box listed in open. The end that is not shown stands for the nearest such box above the real far entity, and counts, bytes and cost are summed per ends, means and source. At most 3000 links are returned, the most traffic first, and links_truncated says when more exist. With scope=network the response is the whole network: every box that is an end of a network, NAT, forwarding or call link, the boxes above them, every cluster and the boxes above the included box, in one response with all links between them and no paging; parent, group_offset and cursor are not accepted. coverage.bill_only is true when the tenant has only a bill: no flow tracing, no network access granted and no agent reporting. A 503 with code context_graph_building and retry_after_seconds (also sent as Retry-After) means the totals of the tenant are not built yet.
Authorizations
Enter "Bearer {token}"
Headers
Tenant ID
Query Parameters
Box whose children to return; omit for the top-level boxes
Box to pin at the top of its level and return the ancestors of
Boxes the client has expanded (repeat the parameter or comma-separated); only decides which box a link to a box that is not shown points at
Window; defaults to last_7d
month_to_date, last_7d, last_30d, calendar_month, custom Closed calendar month in YYYY-MM format; required when period=calendar_month
Window start in RFC3339 format; required when period=custom
Window end in RFC3339 format; required when period=custom
Return the whole network graph in one response; only network is accepted
network Repeated key:value dimension filter, same keys and modifiers as /cost/query
Children per page; defaults to and is at most the server limit
Children to skip, at most the server limit; cannot be combined with cursor
next_cursor of the previous page