list
Use greymatter list to list objects and their configurations in the Grey Matter mesh. Objects can be zone, proxy, domain, route, shared_rules, cluster, catalog-mesh, and catalog-service.

Usage

1
greymatter [GLOBAL OPTIONS] list [OPTIONS] <object type> [field_name=field_value]...
Copied!

Sample Usage

1
$ greymatter list cluster
2
[info] 2019/07/10 03:24:43 Preferring --api.key for authentication
3
[
4
{
5
"cluster_key": "cluster-dashboard",
6
"zone_key": "zone-default-zone",
7
"name": "dashboard",
8
"instances": [
9
{
10
"host": "dashboard",
11
"port": 1337,
12
"metadata": null
13
}
14
],
15
"circuit_breakers": null,
16
"outlier_detection": null,
17
"health_checks": null,
18
"checksum": "52ff049a34702c34f5262d2be15e921b3a14ca6a2dc88849707035da8d7c6588"
19
},
20
{
21
"cluster_key": "cluster-catalog",
22
"zone_key": "zone-default-zone",
23
"name": "catalog",
24
"instances": [
25
{
26
"host": "catalog",
27
"port": 8080,
28
"metadata": null
29
}
30
],
31
"circuit_breakers": null,
32
"outlier_detection": null,
33
"health_checks": null,
34
"checksum": "5dd9355e9ebbe59b7ef3782263f5ab58029eb2246114e39662dee65242bd69da"
35
},
36
{
37
"cluster_key": "cluster-example-service",
38
"zone_key": "zone-default-zone",
39
"name": "example-service",
40
"instances": [
41
{
42
"host": "example-service",
43
"port": 3000,
44
"metadata": null
45
}
46
],
47
"circuit_breakers": null,
48
"outlier_detection": null,
49
"health_checks": null,
50
"checksum": "0508a23ae92afea8b5d6a3a9e8c9b3fce60f1f5e0a76c76412fa70ddc12d9304"
51
}
52
]
Copied!

Filter

Use greymatter list [...] <attribute type>=<attribute value> to list objects with specified attribute values.
1
$ greymatter list --format=summary shared_rules name=catalog
2
SharedRulesKey Name Zone
3
shared-rules-catalog catalog test-zone
4
edge-catalog-shared-rules catalog test-zone
5
6
$ greymatter list --format=summary listener zone_key=test-zone
7
ListenerKey Name IP:Port Protocol ActiveNetworkFilters ActiveHttpFilters Zone
8
listener-control-api-egress control-api 127.0.0.1:10909 http_auto 0 0 test-zone
9
listener-data-internal data-internal 0.0.0.0:10808 http_auto 0 2 test-zone
10
listener-slo slo 0.0.0.0:10808 http_auto 0 2 test-zone
11
listener-dashboard dashboard 0.0.0.0:10808 http_auto 0 2 test-zone
12
listener-internal-jwt-security-egress internal-jwt-security 127.0.0.1:10909 http_auto 0 0 test-zone
13
listener-jwt-security jwt-security 0.0.0.0:10808 http_auto 0 2 test-zone
14
listener-slo-egress slo 127.0.0.1:10909 http_auto 0 0 test-zone
15
listener-jwt-security-egress jwt-security 127.0.0.1:10909 http_auto 0 0 test-zone
16
listener-prometheus-egress prometheus 127.0.0.1:10909 http_auto 0 0 test-zone
17
listener-prometheus prometheus 0.0.0.0:10808 http_auto 0 2 test-zone
18
listener-dashboard-egress dashboard 127.0.0.1:10909 http_auto 0 0 test-zone
19
listener-data-internal-egress data-internal 127.0.0.1:10909 http_auto 0 0 test-zone
20
listener-internal-jwt-security internal-jwt-security 0.0.0.0:10808 http_auto 0 2 test-zone
21
edge-listener edge 0.0.0.0:10808 http_auto 0 5 test-zone
22
edge-listener-egress edge 127.0.0.1:10909 http_auto 0 0 test-zone
23
listener-catalog-egress catalog 127.0.0.1:10909 http_auto 0 0 test-zone
24
listener-catalog catalog 0.0.0.0:10808 http_auto 0 2 test-zone
25
listener-control-api control-api 0.0.0.0:10808 http_auto 0 2 test-zone
Copied!
Options
Use greymatter list --show-filter-fields to list filterable object attributes.
1
$ greymatter list --show-filter-fields listener
2
Listing results may be filtered by setting attributes of a service.ListenerFilter
3
4
The filterable attribute names and their types:
5
NAME TYPE
6
proxy_key string
7
listener_key string
8
name string
9
domain_keys slice<string>
10
zone_key string
11
org_key string
Copied!

Help

To list available commands run with the global help flag:
1
greymatter list --help
Copied!

Questions

Need help with the CLI?
Create an account at Grey Matter Support to reach our team.
Last modified 1yr ago
Export as PDF
Copy link