docs/static/v0.5/reference/graphql-apis/index.html
Self-generated API documentation for Meshery’s GraphQL API. The API can be explored interactively using the GraphQL Playground. Documentation is generated from Meshery’s GraphQL schema. Each table below documents a GraphQL type.
WARNING: Fields that are deprecated are marked with {warning-solid}.
Query typeThe Query type contains the API’s top-level entry points for all executable queries.
Query.connectToNatsCheck is Meshey Server is connected to NATS, if not connect to the NATS Server.
Status!.| Name | Type | Description |
|---|---|---|
k8scontextID | String! |
Query.deployMeshsyncCheck the Meshsync Status and deploy if not enabled.
Status!.| Name | Type | Description |
|---|---|---|
k8scontextID | String! | what to do in-order to deploy meshsync on multiple clusters/contexts. |
Query.fetchAllResultsQuery for fetching all results for profile ID.
PerfPageResult!.| Name | Type | Description |
|---|---|---|
selector | PageFilter! |
Query.fetchPatternsQuery for fetching all patterns with selector.
PatternPageResult!.| Name | Type | Description |
|---|---|---|
selector | PageFilter! |
Query.fetchResultsQuery for fetching all results for profile ID.
PerfPageResult!.| Name | Type | Description |
|---|---|---|
profileID | String! | |
selector | PageFilter! |
Query.getAvailableAddonsQuery details about Addons available (Eg. Prometheus and Grafana).
[AddonList!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Select Mesh Type. |
Query.getAvailableNamespacesQuery available Namesapces in your cluster.
[NameSpace!]!.| Name | Type | Description |
|---|---|---|
k8sClusterIDs | [String!] |
Query.getControlPlanesQuery Control Plane data for a Service Mesh (or all) in your cluster.
[ControlPlane!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Filter Control Plane Query. |
Query.getDataPlanesQuery Data Plane information for a Service Mesh (or all) in your cluster.
[DataPlane!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Filter Control Plane Query. |
Query.getKubectlDescribeQuery for getting kubectl describe details with meshkit.
KctlDescribeDetails!.| Name | Type | Description |
|---|---|---|
kind | String! | |
name | String! | |
namespace | String! |
Query.getMeshsyncStatusCheck the Meshsync Status.
OperatorControllerStatus!.| Name | Type | Description |
|---|---|---|
k8scontextID | String! |
Query.getNatsStatusCheck is Meshey Server is connected to NATS.
OperatorControllerStatus!.| Name | Type | Description |
|---|---|---|
k8scontextID | String! |
Query.getOperatorStatusQuery status of Meshery Operator in your cluster.
OperatorStatus.| Name | Type | Description |
|---|---|---|
k8scontextID | String! |
Query.getPerfResultQuery for performance result.
MesheryResult.| Name | Type | Description |
|---|---|---|
id | ID! |
Query.getPerformanceProfilesQuery for fetching all results for profile ID.
PerfPageProfiles!.| Name | Type | Description |
|---|---|---|
selector | PageFilter! |
Query.getScopesQuery for getting scopes.
[OAMCapability].| Name | Type | Description |
|---|---|---|
id | ID | |
name | String | |
trim | Boolean |
Query.getTraitsQuery for getting traits.
[OAMCapability].| Name | Type | Description |
|---|---|---|
id | ID | |
name | String | |
trim | Boolean |
Query.getWorkloadsQuery for getting workloads.
[OAMCapability].| Name | Type | Description |
|---|---|---|
id | ID | |
name | String | |
trim | Boolean |
Query.resyncClusterQuery to resync the cluster discovery.
Status!.| Name | Type | Description |
|---|---|---|
k8scontextID | String! | |
selector | ReSyncActions | Selector to control several resync actions. |
Mutation typeThe Mutation type contains all the mutations you can execute.
All mutations receive their arguments in a single input object named input.
Mutation.changeOperatorStatusChange the Operator Status.
OperatorStatusInput| Name | Type | Description |
|---|---|---|
contextID | String! | |
targetStatus | Status! | Desired status for Meshery Operator. |
Status!.Subscription typeThe Subscription type contains all the Subscriptions you can listen to.
Subscription.listenToAddonStateListen to changes in status of Addons available (Eg. Prometheus and Grafana).
[AddonList!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Select Mesh Type. |
Subscription.listenToControlPlaneStateListen to changes in Control Plane data for a Service Mesh (or all) in your cluster.
[ControlPlane!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Filter Control Plane Query. |
Subscription.listenToDataPlaneStateListen to changes in Data Plane data for a Service Mesh (or all) in your cluster.
[DataPlane!]!.| Name | Type | Description |
|---|---|---|
filter | ServiceMeshFilter | Filter Control Plane Query. |
Subscription.listenToMeshSyncEventsListen to changes in the list of available Namesapces in your cluster.
OperatorControllerStatusPerK8sContext.| Name | Type | Description |
|---|---|---|
k8scontextIDs | [String!] |
Subscription.listenToOperatorStateListen to changes in status of Meshery Operator in your cluster.
OperatorStatusPerK8sContext.| Name | Type | Description |
|---|---|---|
k8scontextIDs | [String!] |
Subscription.subscribeBrokerConnectionListen to changes in Broker (NATS) Connection.
Boolean!.Subscription.subscribePerfProfilesListen to changes in Performance Profiles.
PerfPageProfiles!.| Name | Type | Description |
|---|---|---|
selector | PageFilter! |
Subscription.subscribePerfResultsListen to all results for profile ID.
PerfPageResult!.| Name | Type | Description |
|---|---|---|
profileID | String! | |
selector | PageFilter! |
Object types represent the resources that the Meshery GraphQL API can return. They contain fields. Each field has its own type, which will either be one of the basic GraphQL scalar types (e.g.: String or Boolean) or other object types. Fields may have arguments. Fields with arguments are exactly like top-level queries, and are listed beneath the table of fields for each object type.
For more information, see Object Types and Fields on graphql.org.
AddonListDeatils about the Addon Component.
| Name | Type | Description |
|---|---|---|
name | String! | Name. |
owner | String! | Owner. |
Container| Name | Type | Description |
|---|---|---|
containerName | String! | |
controlPlaneMemberName | String! | |
image | String! | |
ports | [Container_Port] | args: NOT IMPLEMENTED. |
resources | Any | env: NOT IMPLEMENTED,. |
status | Container_Status |
Container_Port| Name | Type | Description |
|---|---|---|
containerPort | Int! | |
name | String | |
protocol | String! |
Container_Status| Name | Type | Description |
|---|---|---|
containerID | Any | |
containerStatusName | String! | |
image | String! | |
imageID | Any | |
lastState | Any | |
ready | Boolean! | |
restartCount | Any | |
started | Boolean! | image: String! imageID: String! containerID: String!. |
state | Any |
ControlPlaneControl Plane data for a particular Mesh.
| Name | Type | Description |
|---|---|---|
members | [ControlPlaneMember!]! | Members of the Mesh. |
name | String! | Service Mesh Name. |
ControlPlaneMemberMember Details.
| Name | Type | Description |
|---|---|---|
component | String! | Component. |
data_planes | [Container!] | DataPlanes. |
name | String! | Name. |
namespace | String! | Namespace. |
version | String! | Version. |
DataPlaneData Plane for a particular Mesh.
| Name | Type | Description |
|---|---|---|
name | String! | Service Mesh Name. |
proxies | [Container!]! | Members of the Mesh. |
Error| Name | Type | Description |
|---|---|---|
code | String! | Error Code. |
description | String! | Error Details. |
KctlDescribeDetails| Name | Type | Description |
|---|---|---|
ctxid | String | |
describe | String |
MesheryResult| Name | Type | Description |
|---|---|---|
created_at | String | |
mesh | String | |
meshery_id | String | |
name | String | |
performance_profile | String | |
runner_results | Map | |
server_board_config | String | |
server_metrics | String | |
test_id | String | |
test_start_time | String | |
updated_at | String | |
user_id | String |
NameSpaceType to define a k8s Namespace.
| Name | Type | Description |
|---|---|---|
namespace | String! | Namespace Name. |
OAMCapability| Name | Type | Description |
|---|---|---|
host | String | |
id | String | |
metadata | Any | |
oam_definition | Any | |
oam_ref_schema | String | |
restricted | Boolean |
OperatorControllerStatusControllers of Meshery Operator.
| Name | Type | Description |
|---|---|---|
contextID | String! | |
error | Error | Controller Error Log. |
name | String! | Controller Name. |
status | Status! | Controller Status. |
version | String! | Controller Verison. |
OperatorControllerStatusPerK8sContext| Name | Type | Description |
|---|---|---|
OperatorControllerStatus | OperatorControllerStatus! | |
contextID | String! |
OperatorStatusStatus of Meshery Operator and its controllers.
| Name | Type | Description |
|---|---|---|
contextID | String! | |
controllers | [OperatorControllerStatus!]! | Details about various Controllers of Meshery Operator. |
error | Error | Error Logs encountered by Meshery Operator. |
status | Status! | Status of Meshery Operator. |
version | String! | Verion of Meshery Operator. |
OperatorStatusPerK8sContext| Name | Type | Description |
|---|---|---|
contextID | String! | |
operatorStatus | OperatorStatus! |
PatternLocation| Name | Type | Description |
|---|---|---|
branch | String | |
host | String | |
path | String | |
type | String |
PatternPageResult| Name | Type | Description |
|---|---|---|
page | Int! | |
page_size | Int! | |
patterns | [PatternResult] | |
total_count | Int! |
PatternResult| Name | Type | Description |
|---|---|---|
canSupport | Boolean! | |
created_at | String | |
errmsg | String | |
id | ID! | |
location | PatternLocation! | |
name | String! | |
pattern_file | String! | |
updated_at | String | |
user_id | String! |
PerfPageProfiles| Name | Type | Description |
|---|---|---|
page | Int! | |
page_size | Int! | |
profiles | [PerfProfile] | |
total_count | Int! |
PerfPageResult| Name | Type | Description |
|---|---|---|
page | Int! | |
page_size | Int! | |
results | [MesheryResult] | |
total_count | Int! |
PerfProfile| Name | Type | Description |
|---|---|---|
concurrent_request | Int! | |
content_type | String | |
created_at | String | |
duration | String! | |
endpoints | [String] | |
id | String! | |
last_run | String | |
load_generators | [String] | |
name | String | |
qps | Int | |
request_body | String | |
request_cookies | String | |
request_headers | String | |
service_mesh | String | |
total_results | Int | |
updated_at | String | |
user_id | String! |
Also called Enums, enumeration types are a special kind of scalar that is restricted to a particular set of allowed values.
For more information, see Enumeration Types on graphql.org.
MeshTypeService Mesh Types.
| Value | Description |
|---|---|
ALL_MESH | All meshes that Meshery supports. |
APP_MESH | AWS App Mesh. |
CILIUM_SERVICE_MESH | Cilium Service Mesh. |
CITRIX_SERVICE_MESH | Citrix Service Mesh. |
CONSUL | Consul by HashiCorp. |
INVALID_MESH | Invalid Mesh. |
ISTIO | Istio Service Mesh. |
KUMA | Kuma. |
LINKERD | LinkerD Service Mesh. |
NETWORK_SERVICE_MESH | Network Service Mesh. |
NGINX_SERVICE_MESH | NGINX Service Mesh. |
OCTARINE | Octarine Mesh. |
OPEN_SERVICE_MESH | Open Service Mesh. |
TANZU | VMware Tanzu Service Mesh. |
TRAEFIK_MESH | Traefik Mesh. |
Status| Value | Description |
|---|---|
CONNECTED | Connected (Applicable only for NATS status for now). |
DISABLED | Disabled. |
ENABLED | Enabled. |
PROCESSING | Processing. |
UNKNOWN | Unknown. |
Scalar values are atomic values, and do not have fields of their own. Basic scalars include strings, boolean values, and numbers. This schema also defines various custom scalar values, such as types for times and dates.
This schema includes custom scalar types for identifiers, with a specific type for each kind of object.
For more information, read about Scalar Types on graphql.org.
AnyBooleanRepresents true or false values.
IDRepresents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
IntRepresents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
MapStringRepresents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
TimeTypes that may be used as arguments (all scalar types may also be used as arguments).
Only general use input types are listed here. For mutation input types, see the associated mutation type above.
For more information, read about Scalar Types on graphql.org.
AddonStatusInputInput for changing Addon Status.
| Name | Type | Description |
|---|---|---|
k8scontextID | String! | kubernetes context ID. |
selector | MeshType | Filter by Serice Mesh. |
targetStatus | Status! | Desired Status. |
PageFilter| Name | Type | Description |
|---|---|---|
from | String | |
order | String | |
page | String! | |
pageSize | String! | |
search | String | |
to | String |
ReSyncActionsType ReSyncActions define the actions involved during resync.
| Name | Type | Description |
|---|---|---|
ReSync | String! | |
clearDB | String! | |
hardReset | String! |
ServiceMeshFilterFilter Control Plane Query.
| Name | Type | Description |
|---|---|---|
k8sClusterIDs | [String!] | |
type | MeshType | Filter by Service Mesh. |