You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Locally configured Bearer token** for API machine-to-machine access. Default credentials: `Bearer cm9vdF9hcGlfdG9rZW4=:dG9rZW5fc2VjcmV0` or `Bearer root_api_token:token_secret` after base64 decoding.
-**Locally configured Bearer token** for API machine-to-machine access. Default credentials: `Bearer cm9vdF9hcGlfdG9rZW4=:dG9rZW5fc2VjcmV0` or `Bearer root_api_token:token_secret` after base64 decoding.
16
16
17
17
You can change default credentials via Registry UI, in the `Auth entities` page, or via API.
Atomic config updates can be performed using the `PUT /api/v1/config` endpoint. Resource data will be replaced completely (except few keys, such as `adminNotes` or `l10nManifest`). If the `namespace` key is specified in app or route, all resources that are not listed in the config payload with same namespace value will be automatically removed. Below is an example of a JSON request body:
80
+
81
+
```json
82
+
{
83
+
"apps": [
84
+
{
85
+
"name": "Application name",
86
+
"assetsDiscoveryUrl": "Url to fetch assets location",
87
+
"ssr": {
88
+
"src": "SSR url",
89
+
"timeout": 3000
90
+
},
91
+
"props": {
92
+
"key": "value"
93
+
},
94
+
"ssrProps": {
95
+
"key": "value"
96
+
},
97
+
"configSelector": ["sharedPropertiesKey"],
98
+
"kind": "primary",
99
+
"discoveryMetadata": {},
100
+
"namespace": "Application namespace, used to as a part of unique identifier (application name and namespace). All apps, that are not listed in the config payload under this namespace will be automatically removed."
101
+
}
102
+
],
103
+
"routes": [
104
+
{
105
+
"route": "/route/*",
106
+
"slots": {
107
+
"body": {
108
+
"appName": "Application name",
109
+
"props": {
110
+
"key": "value"
111
+
}
112
+
}
113
+
},
114
+
"namespace": "Route namespace, used to as a part of unique identifier (route value, domainId and namespace). All routes, that are not listed in the config payload under this namespace will be automatically removed."
115
+
}
116
+
],
117
+
"sharedLibs": [
118
+
{
119
+
"name": "Library name",
120
+
"assetsDiscoveryUrl": "Url to fetch assets location"
121
+
}
122
+
]
123
+
}
124
+
```
125
+
126
+
There might be cases where you want to test your configuration before deploying services or simply perform a dry run of the config update action. To do this, call the `POST /api/v1/config/validate` endpoint with the same request body as the config update. This API returns a response in the following format:
127
+
128
+
```json
129
+
{
130
+
"valid": false,
131
+
"details": "Error details"
132
+
}
133
+
```
134
+
135
+
Note, that this API is available only if using PostgreSQL database.
0 commit comments