forked from canonical/charm-relation-interfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.json
74 lines (74 loc) · 2.39 KB
/
provider.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://canonical.github.io/charm-relation-interfaces/interfaces/opensearch_client/schemas/provider.json",
"title": "`opensearch_client` provider schema",
"description": "The `opensearch_client` root schema comprises the entire provider databag for this interface.",
"type": "object",
"default": {},
"required": [
"index",
"username",
"password",
"endpoints"
],
"additionalProperties": true,
"properties": {
"index": {
"$id": "#/properties/index",
"title": "Relation Index",
"description": "Index that has been made available to the relation user. Name defined in the Requirer's index field.",
"type": "string",
"default": "",
"examples": [
"myindex"
]
},
"username": {
"$id": "#/properties/username",
"title": "Relation User Username",
"description": "Username for connecting to the requested index",
"type": "string",
"default": "",
"examples": [
"opensearch-client_0_user"
]
},
"password": {
"$id": "#/properties/password",
"title": "Relation User Password",
"description": "Password for connecting to the requested index",
"type": "string",
"default": "",
"examples": [
"alphanum-32byte-random"
]
},
"endpoints": {
"$id": "#/properties/endpoints",
"title": "Relation endpoints",
"description": "A list of endpoints used to connect to the index",
"type": "string",
"default": "",
"examples": [
"unit-1:9200,unit-2:9200"
]
},
"version": {
"$id": "#/properties/version",
"title": "Version",
"description": "The version of opensearch",
"type": "string",
"default": "",
"examples": [
"8.0.27-18"
]
}
},
"examples": [{
"username": "opensearch-client_0_user",
"password": "alphanum-32byte-random",
"index": "myapp",
"endpoints": "ip-1:9200,ip-2:9200",
"version": "8.0.27-18"
}]
}