forked from canonical/charm-relation-interfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.json
85 lines (85 loc) · 2.84 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
75
76
77
78
79
80
81
82
83
84
85
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://canonical.github.io/charm-relation-interfaces/interfaces/postgresql_client/schemas/provider.json",
"title": "`postgresql_client` provider schema",
"description": "The `postgresql_client` root schema comprises the entire provider databag for this interface.",
"type": "object",
"default": {},
"required": [
"database",
"username",
"password",
"endpoints"
],
"additionalProperties": true,
"properties": {
"username": {
"$id": "#/properties/username",
"title": "Database User Username",
"description": "Username for connecting to the requested database",
"type": "string",
"default": "",
"examples": [
"relation-14"
]
},
"password": {
"$id": "#/properties/password",
"title": "Database User Password",
"description": "Password for connecting to the requested database",
"type": "string",
"default": "",
"examples": [
"alphanum-32byte-random"
]
},
"database": {
"$id": "#/properties/database",
"title": "Database Name",
"description": "The database name delivered by the provider. Might not be the same as requested by the requirer",
"type": "string",
"default": "",
"examples": [
"myapp"
]
},
"endpoints": {
"$id": "#/properties/endpoints",
"title": "Database Endpoints",
"description": "A list of database endpoints used to connect to the database",
"type": "string",
"default": "",
"examples": [
"unit-1:port,unit-2:port"
]
},
"read-only-endpoints": {
"$id": "#/properties/read-only-endpoints",
"title": "Read-Only Database Endpoints",
"description": "A list of endpoints used to connect to the database in read-only mode.",
"type": "string",
"default": "",
"examples": [
"unit-1:port,unit-2:port"
]
},
"version": {
"$id": "#/properties/version",
"title": "Version",
"description": "The version of the database engine",
"type": "string",
"default": "",
"examples": [
"8.0.27-18"
]
}
},
"examples": [{
"username": "relation-14",
"password": "alphanum-32byte-random",
"database": "myapp",
"endpoints": "unit-1:port,unit-2:port",
"read-only-endpoints": "unit-1:port,unit-2:port",
"version": "8.0.27-18"
}]
}