get
Use greymatter get to retrieve a specific object and its 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] get [OPTIONS] <object type> <object key>
Copied!

Sample Usage

Cluster

1
$ ./greymatter get cluster example-service
2
[info] 2019/07/10 03:31:06 Preferring --api.key for authentication
3
{
4
"cluster_key": "example-service",
5
"zone_key": "zone-default-zone",
6
"name": "example-service",
7
"instances": [
8
{
9
"host": "example-service",
10
"port": 3000,
11
"metadata": null
12
}
13
],
14
"circuit_breakers": null,
15
"outlier_detection": null,
16
"health_checks": null,
17
"checksum": "0508a23ae92afea8b5d6a3a9e8c9b3fce60f1f5e0a76c76412fa70ddc12d9304"
18
}
Copied!

Route

1
$ greymatter get route route-/
2
[info] 2019/07/10 03:32:15 Preferring --api.key for authentication
3
{
4
"route_key": "route-/",
5
"domain_key": "domain-*",
6
"zone_key": "zone-default-zone",
7
"path": "/",
8
"prefix_rewrite": "/",
9
"redirects": null,
10
"shared_rules_key": "shared-rules-edge",
11
"rules": null,
12
"response_data": {},
13
"cohort_seed": null,
14
"retry_policy": null,
15
"checksum": "19f76e8bad1fa5bd4c6408b4086fc445d6c11880dfa9a2c70e977a454e8819e9"
16
}
Copied!

Help

To list available commands run with the global help flag:
1
greymatter get --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