Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. GraphQueryAnchor

GraphQueryAnchor

    Selects the anchor (zero-hop) node set. ‘match’ and ‘query’ are mutually exclusive, and supplying neither selects every node of the given type that the caller can see.

    Properties

    • nodeType enum required
      The node type to select.
      Values: resource, stack
    • match GraphNodeMatch optional
      Structured predicate over node attributes. Omit it, and ‘query’ with it, to select every node of the given type.
    • type string optional
      Exact match on the node’s resource type token — the same value reported as GraphNode.type — for example ‘aws:s3/bucket:Bucket’. Resource nodes only: setting match.type on a stack selection is rejected.
    • fields map[string]GraphFieldPredicate optional
      Typed comparisons over queryable node fields, keyed by field name as listed in the graph schema (for example ‘provider_version’ or ’name’). A stack anchor’s ’name’ takes the org-free ‘project/stack’ spelling; the ‘stack://’ form reported as a stack node’s id, and the ‘org/project/stack’ form used elsewhere in the API, are both rejected.
    • query string optional
      A resource search query string in the Pulumi resource search syntax, as an alternative to ‘match’. Only valid for the ‘resource’ node type.
    • limit integer optional
      Maximum number of anchor nodes to resolve, up to the engine’s anchor cap. When more match, the result is reported as meta.resultMode ’truncated’. Omitting this, or naming a value above the cap, leaves the bound to the engine — and a query that also traverses is then rejected rather than truncated.

      The infrastructure as code platform for any cloud.