{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-service-mesh/json-schema/google-cloud-service-mesh-client-status-request-schema.json",
  "title": "ClientStatusRequest",
  "description": "Request for client status of clients identified by a list of NodeMatchers.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-service-mesh-trafficdirector-discovery-api-openapi.yml#/components/schemas/ClientStatusRequest",
  "type": "object",
  "properties": {
    "excludeResourceContents": {
      "description": "If true, the server will not include the resource contents in the response (i.e., the generic_xds_configs.xds_config field will not be populated). [#not-implemented-hide:]",
      "type": "boolean"
    },
    "nodeMatchers": {
      "description": "Management server can use these match criteria to identify clients. The match follows OR semantics.",
      "items": {
        "$ref": "#/$defs/NodeMatcher"
      },
      "type": "array"
    },
    "node": {
      "$ref": "#/$defs/Node",
      "description": "The node making the csds request."
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "description": "Addresses specify either a logical or physical address and port, which are used to tell Envoy where to bind/listen, connect to upstream and find management servers.",
      "properties": {
        "pipe": {
          "$ref": "#/$defs/Pipe"
        },
        "envoyInternalAddress": {
          "$ref": "#/$defs/EnvoyInternalAddress",
          "description": "Specifies a user-space address handled by :ref:`internal listeners `."
        },
        "socketAddress": {
          "$ref": "#/$defs/SocketAddress"
        }
      }
    },
    "BuildVersion": {
      "properties": {
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "Free-form build information. Envoy defines several well known keys in the source/common/version/version.h file"
        },
        "version": {
          "$ref": "#/$defs/SemanticVersion",
          "description": "SemVer version of extension."
        }
      },
      "description": "BuildVersion combines SemVer version of extension with free-form build information (i.e. 'alpha', 'private-build') as a set of strings.",
      "type": "object"
    },
    "ContextParams": {
      "properties": {
        "params": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "description": "Additional parameters that can be used to select resource variants. These include any global context parameters, per-resource type client feature capabilities and per-resource type functional attributes. All per-resource type attributes will be `xds.resource.` prefixed and some of these are documented below: `xds.resource.listening_address`: The value is \"IP:port\" (e.g. \"10.1.1.3:8080\") which is the listening address of a Listener. Used in a Listener resource query.",
      "type": "object"
    },
    "DoubleMatcher": {
      "description": "Specifies the way to match a double value.",
      "properties": {
        "range": {
          "$ref": "#/$defs/DoubleRange",
          "description": "If specified, the input double value must be in the range specified here. Note: The range is using half-open interval semantics [start, end)."
        },
        "exact": {
          "type": "number",
          "description": "If specified, the input double value must be equal to the value specified here.",
          "format": "double"
        }
      },
      "type": "object"
    },
    "DoubleRange": {
      "description": "Specifies the double start and end of the range using half-open interval semantics [start, end).",
      "properties": {
        "end": {
          "format": "double",
          "description": "end of the range (exclusive)",
          "type": "number"
        },
        "start": {
          "description": "start of the range (inclusive)",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    },
    "EnvoyInternalAddress": {
      "description": "The address represents an envoy internal listener. [#comment: ",
      "properties": {
        "endpointId": {
          "type": "string",
          "description": "Specifies an endpoint identifier to distinguish between multiple endpoints for the same internal listener in a single upstream pool. Only used in the upstream addresses for tracking changes to individual endpoints. This, for example, may be set to the final destination IP for the target internal listener."
        },
        "serverListenerName": {
          "description": "Specifies the :ref:`name ` of the internal listener.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Extension": {
      "type": "object",
      "description": "Version and identification for an Envoy extension. [#next-free-field: 7]",
      "properties": {
        "version": {
          "$ref": "#/$defs/BuildVersion",
          "description": "The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version information."
        },
        "typeUrls": {
          "type": "array",
          "description": "Type URLs of extension configuration protos.",
          "items": {
            "type": "string"
          }
        },
        "typeDescriptor": {
          "type": "string",
          "description": "[#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment:",
          "deprecated": true
        },
        "category": {
          "type": "string",
          "description": "Category of the extension. Extension category names use reverse DNS notation. For instance \"envoy.filters.listener\" for Envoy's built-in listener filters or \"com.acme.filters.http\" for HTTP filters from acme.com vendor. [#comment:"
        },
        "disabled": {
          "type": "boolean",
          "description": "Indicates that the extension is present but was disabled via dynamic configuration."
        },
        "name": {
          "type": "string",
          "description": "This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget."
        }
      }
    },
    "GoogleRE2": {
      "type": "object",
      "properties": {
        "maxProgramSize": {
          "description": "This field controls the RE2 \"program size\" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client. .. note:: Although this field is deprecated, the program size will still be checked against the global ``re2.max_program_size.error_level`` runtime value.",
          "type": "integer",
          "format": "uint32",
          "deprecated": true
        }
      },
      "description": "Google's `RE2 `_ regex engine. The regex string must adhere to the documented `syntax `_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys ``re2.max_program_size.error_level`` and ``re2.max_program_size.warn_level`` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. ``re2.max_program_size.error_level`` defaults to 100, and ``re2.max_program_size.warn_level`` has no default if unset (will not check/log a warning). Envoy emits two stats for tracking the program size of regexes: the histogram ``re2.program_size``, which records the program size, and the counter ``re2.exceeded_warn_level``, which is incremented each time the program size exceeds the warn level threshold."
    },
    "ListMatcher": {
      "description": "Specifies the way to match a list value.",
      "type": "object",
      "properties": {
        "oneOf": {
          "$ref": "#/$defs/ValueMatcher",
          "description": "If specified, at least one of the values in the list must match the value specified."
        }
      }
    },
    "Locality": {
      "properties": {
        "subZone": {
          "description": "When used for locality of upstream hosts, this field further splits zone into smaller chunks of sub-zones so they can be load balanced independently.",
          "type": "string"
        },
        "region": {
          "description": "Region this :ref:`zone ` belongs to.",
          "type": "string"
        },
        "zone": {
          "description": "Defines the local service zone where Envoy is running. Though optional, it should be set if discovery service routing is used and the discovery service exposes :ref:`zone data `, either in this message or via :option:`--service-zone`. The meaning of zone is context dependent, e.g. `Availability Zone (AZ) `_ on AWS, `Zone `_ on GCP, etc.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Identifies location of where either Envoy runs or where upstream hosts run."
    },
    "Node": {
      "type": "object",
      "properties": {
        "locality": {
          "$ref": "#/$defs/Locality",
          "description": "Locality specifying where the Envoy instance is running."
        },
        "userAgentName": {
          "description": "Free-form string that identifies the entity requesting config. E.g. \"envoy\" or \"grpc\"",
          "type": "string"
        },
        "clientFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Client feature support list. These are well known features described in the Envoy API repository for a given major version of an API. Client features use reverse DNS naming scheme, for example ``com.acme.feature``. See :ref:`the list of features ` that xDS client may support."
        },
        "dynamicParameters": {
          "type": "object",
          "description": "Map from xDS resource type URL to dynamic context parameters. These may vary at runtime (unlike other fields in this message). For example, the xDS client may have a shard identifier that changes during the lifetime of the xDS client. In Envoy, this would be achieved by updating the dynamic context on the Server::Instance's LocalInfo context provider. The shard ID dynamic parameter then appears in this field during future discovery requests.",
          "additionalProperties": {
            "$ref": "#/$defs/ContextParams"
          }
        },
        "listeningAddresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Address"
          },
          "description": "Known listening ports on the node as a generic hint to the management server for filtering :ref:`listeners ` to be returned. For example, if there is a listener bound to port 80, the list can optionally contain the SocketAddress ``(0.0.0.0,80)``. The field is optional and just a hint.",
          "deprecated": true
        },
        "cluster": {
          "type": "string",
          "description": "Defines the local service cluster name where Envoy is running. Though optional, it should be set if any of the following features are used: :ref:`statsd `, :ref:`health check cluster verification `, :ref:`runtime override directory `, :ref:`user agent addition `, :ref:`HTTP global rate limiting `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this message or via :option:`--service-cluster`."
        },
        "extensions": {
          "type": "array",
          "description": "List of extensions and their versions supported by the node.",
          "items": {
            "$ref": "#/$defs/Extension"
          }
        },
        "metadata": {
          "description": "Opaque metadata extending the node identifier. Envoy will pass this directly to the management server.",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        },
        "userAgentBuildVersion": {
          "$ref": "#/$defs/BuildVersion",
          "description": "Structured version of the entity requesting config."
        },
        "userAgentVersion": {
          "type": "string",
          "description": "Free-form string that identifies the version of the entity requesting config. E.g. \"1.12.2\" or \"abcd1234\", or \"SpecialEnvoyBuild\""
        },
        "id": {
          "description": "An opaque node identifier for the Envoy node. This also provides the local service node name. It should be set if any of the following features are used: :ref:`statsd `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this message or via :option:`--service-node`.",
          "type": "string"
        }
      },
      "description": "Identifies a specific Envoy instance. The node identifier is presented to the management server, which may use this identifier to distinguish per Envoy configuration for serving. [#next-free-field: 13]"
    },
    "NodeMatcher": {
      "type": "object",
      "properties": {
        "nodeMetadatas": {
          "items": {
            "$ref": "#/$defs/StructMatcher"
          },
          "type": "array",
          "description": "Specifies match criteria on the node metadata."
        },
        "nodeId": {
          "$ref": "#/$defs/StringMatcher",
          "description": "Specifies match criteria on the node id."
        }
      },
      "description": "Specifies the way to match a Node. The match follows AND semantics."
    },
    "NullMatch": {
      "type": "object",
      "description": "NullMatch is an empty message to specify a null value.",
      "properties": {}
    },
    "OrMatcher": {
      "type": "object",
      "properties": {
        "valueMatchers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ValueMatcher"
          }
        }
      },
      "description": "Specifies a list of alternatives for the match."
    },
    "PathSegment": {
      "properties": {
        "key": {
          "description": "If specified, use the key to retrieve the value in a Struct.",
          "type": "string"
        }
      },
      "description": "Specifies the segment in a path to retrieve value from Struct.",
      "type": "object"
    },
    "Pipe": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "integer",
          "format": "uint32",
          "description": "The mode for the Pipe. Not applicable for abstract sockets."
        },
        "path": {
          "description": "Unix Domain Socket path. On Linux, paths starting with '@' will use the abstract namespace. The starting '@' is replaced by a null byte by Envoy. Paths starting with '@' will result in an error in environments other than Linux.",
          "type": "string"
        }
      }
    },
    "RegexMatcher": {
      "properties": {
        "regex": {
          "type": "string",
          "description": "The regex match string. The string must be supported by the configured engine. The regex is matched against the full string, not as a partial match."
        },
        "googleRe2": {
          "$ref": "#/$defs/GoogleRE2",
          "description": "Google's RE2 regex engine."
        }
      },
      "description": "A regex matcher designed for safety when used with untrusted input.",
      "type": "object"
    },
    "SemanticVersion": {
      "description": "Envoy uses SemVer (https://semver.org/). Major/minor versions indicate expected behaviors and APIs, the patch version field is used only for security fixes and can be generally ignored.",
      "type": "object",
      "properties": {
        "patch": {
          "format": "uint32",
          "type": "integer"
        },
        "majorNumber": {
          "type": "integer",
          "format": "uint32"
        },
        "minorNumber": {
          "type": "integer",
          "format": "uint32"
        }
      }
    },
    "SocketAddress": {
      "type": "object",
      "properties": {
        "portValue": {
          "format": "uint32",
          "type": "integer"
        },
        "ipv4Compat": {
          "type": "boolean",
          "description": "When binding to an IPv6 address above, this enables `IPv4 compatibility `_. Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4 addresses mapped into IPv6 space as ``::FFFF:``."
        },
        "protocol": {
          "type": "string",
          "enum": [
            "TCP",
            "UDP"
          ]
        },
        "address": {
          "type": "string",
          "description": "The address for this socket. :ref:`Listeners ` will bind to the address. An empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any address. [#comment:TODO(zuercher) reinstate when implemented: It is possible to distinguish a Listener address via the prefix/suffix matching in :ref:`FilterChainMatch `.] When used within an upstream :ref:`BindConfig `, the address controls the source address of outbound connections. For :ref:`clusters `, the cluster type determines whether the address must be an IP (``STATIC`` or ``EDS`` clusters) or a hostname resolved by DNS (``STRICT_DNS`` or ``LOGICAL_DNS`` clusters). Address resolution can be customized via :ref:`resolver_name `."
        },
        "namedPort": {
          "type": "string",
          "description": "This is only valid if :ref:`resolver_name ` is specified below and the named resolver is capable of named port resolution."
        },
        "networkNamespaceFilepath": {
          "description": "Filepath that specifies the Linux network namespace this socket will be created in (see ``man 7 network_namespaces``). If this field is set, Envoy will create the socket in the specified network namespace. .. note:: Setting this parameter requires Envoy to run with the ``CAP_SYS_ADMIN`` capability. .. attention:: Network namespaces are only configurable on Linux. Otherwise, this field has no effect.",
          "type": "string"
        },
        "resolverName": {
          "description": "The name of the custom resolver. This must have been registered with Envoy. If this is empty, a context dependent default applies. If the address is a concrete IP address, no resolution will occur. If address is a hostname this should be set for resolution other than DNS. Specifying a custom resolver with ``STRICT_DNS`` or ``LOGICAL_DNS`` will generate an error at runtime.",
          "type": "string"
        }
      },
      "description": "[#next-free-field: 8]"
    },
    "StringMatcher": {
      "type": "object",
      "properties": {
        "contains": {
          "description": "The input string must have the substring specified here. .. note:: Empty contains match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc.def``",
          "type": "string"
        },
        "exact": {
          "description": "The input string must match exactly the string specified here. Examples: * ``abc`` only matches the value ``abc``.",
          "type": "string"
        },
        "suffix": {
          "description": "The input string must have the suffix specified here. .. note:: Empty suffix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc``",
          "type": "string"
        },
        "safeRegex": {
          "$ref": "#/$defs/RegexMatcher",
          "description": "The input string must match the regular expression specified here."
        },
        "custom": {
          "$ref": "#/$defs/TypedExtensionConfig",
          "description": "Use an extension as the matcher type. [#extension-category: envoy.string_matcher]"
        },
        "ignoreCase": {
          "description": "If ``true``, indicates the exact/prefix/suffix/contains matching should be case insensitive. This has no effect for the ``safe_regex`` match. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if this option is set to ``true``.",
          "type": "boolean"
        },
        "prefix": {
          "description": "The input string must have the prefix specified here. .. note:: Empty prefix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``abc.xyz``",
          "type": "string"
        }
      },
      "description": "Specifies the way to match a string. [#next-free-field: 9]"
    },
    "StructMatcher": {
      "type": "object",
      "description": "StructMatcher provides a general interface to check if a given value is matched in google.protobuf.Struct. It uses ``path`` to retrieve the value from the struct and then check if it's matched to the specified value. For example, for the following Struct: .. code-block:: yaml fields: a: struct_value: fields: b: struct_value: fields: c: string_value: pro t: list_value: values: - string_value: m - string_value: n The following MetadataMatcher is matched as the path [a, b, c] will retrieve a string value \"pro\" from the Metadata which is matched to the specified prefix match. .. code-block:: yaml path: - key: a - key: b - key: c value: string_match: prefix: pr The following StructMatcher is matched as the code will match one of the string values in the list at the path [a, t]. .. code-block:: yaml path: - key: a - key: t value: list_match: one_of: string_match: exact: m An example use of StructMatcher is to match metadata in envoy.v*.core.Node.",
      "properties": {
        "path": {
          "description": "The path to retrieve the Value from the Struct.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PathSegment"
          }
        },
        "value": {
          "$ref": "#/$defs/ValueMatcher",
          "description": "The StructMatcher is matched if the value retrieved by path is matched to this value."
        }
      }
    },
    "TypedExtensionConfig": {
      "properties": {
        "name": {
          "description": "The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.",
          "type": "string"
        },
        "typedConfig": {
          "type": "object",
          "description": "The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview ` for further details.",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL."
          }
        }
      },
      "type": "object",
      "description": "Message type for extension configuration."
    },
    "ValueMatcher": {
      "description": "Specifies the way to match a Protobuf::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 8]",
      "properties": {
        "orMatch": {
          "$ref": "#/$defs/OrMatcher",
          "description": "If specified, a match occurs if and only if any of the alternatives in the match accept the value."
        },
        "listMatch": {
          "$ref": "#/$defs/ListMatcher",
          "description": "If specified, a match occurs if and only if the target value is a list value and is matched to this field."
        },
        "nullMatch": {
          "$ref": "#/$defs/NullMatch",
          "description": "If specified, a match occurs if and only if the target value is a NullValue."
        },
        "presentMatch": {
          "description": "If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.",
          "type": "boolean"
        },
        "doubleMatch": {
          "$ref": "#/$defs/DoubleMatcher",
          "description": "If specified, a match occurs if and only if the target value is a double value and is matched to this field."
        },
        "stringMatch": {
          "$ref": "#/$defs/StringMatcher",
          "description": "If specified, a match occurs if and only if the target value is a string value and is matched to this field."
        },
        "boolMatch": {
          "type": "boolean",
          "description": "If specified, a match occurs if and only if the target value is a bool value and is equal to this field."
        }
      },
      "type": "object"
    }
  }
}