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
Copy file name to clipboardExpand all lines: content/operate/rs/references/rest-api/requests/modules/_index.md
-308Lines changed: 0 additions & 308 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,6 @@ weight: $weight
16
16
|--------|------|-------------|
17
17
|[GET](#list-modules)|`/v1/modules`| List available modules |
18
18
|[GET](#get-module)|`/v1/modules/{uid}`| Get a specific module |
19
-
|[POST](#post-module)|`/v1/modules`| Upload a new module (deprecated) |
20
-
|[POST](#post-module-v2)|`/v2/modules`| Upload a new module |
21
-
|[DELETE](#delete-module)|`/v1/modules/{uid}`| Delete a module (deprecated) |
22
-
|[DELETE](#delete-module-v2)|`/v2/modules/{uid}`| Delete a module |
23
19
24
20
## List modules {#list-modules}
25
21
@@ -105,307 +101,3 @@ Returns a [module object]({{< relref "/operate/rs/references/rest-api/objects/mo
105
101
|------|-------------|
106
102
|[200 OK](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1)| No error |
107
103
|[404 Not Found](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5)| Module does not exist. |
108
-
109
-
## Upload module v1 {#post-module}
110
-
111
-
```sh
112
-
POST /v1/modules
113
-
```
114
-
115
-
{{<note>}}
116
-
`POST /v1/modules` is deprecated as of Redis Enterprise Software version 7.2. Use [`POST /v2/modules`](#post-module-v2) instead.
117
-
{{</note>}}
118
-
119
-
Uploads a new module to the cluster.
120
-
121
-
The request must contain a Redis module, bundled using [RedisModule
122
-
Packer](https://github.com/RedisLabs/RAMP). For modules in Redis Stack, download the module from the [download center](https://redis.io/downloads/).
123
-
124
-
See [Install a module on a cluster]({{< relref "/operate/oss_and_stack/stack-with-enterprise/install/add-module-to-cluster#rest-api-method" >}}) for more information.
| Content-Length | integer | Length of the request body in octets |
147
-
| Expect | 100-continue | Requires particular server behaviors |
148
-
| Content-Type | multipart/form-data | Media type of request/response body |
149
-
150
-
### Response {#post-response}
151
-
152
-
Returns a status code. If an error occurs, the response body may include an error code and message with more details.
153
-
154
-
#### Error codes {#post-error-codes}
155
-
156
-
The server may return a JSON object with `error_code` and `message` fields that provide additional information. The following are possible `error_code` values:
157
-
158
-
| Code | Description |
159
-
|------|-------------|
160
-
| no_module | Module wasn't provided or could not be found |
161
-
| invalid_module | Module either corrupted or packaged files are wrong |
162
-
| module_exists | Module already in system |
163
-
| min_redis_pack_version | Module isn't supported yet in this Redis pack |
164
-
| unsupported_module_capabilities | The module does not support required capabilities|
165
-
| os_not_supported | This module is not supported for this operating system |
166
-
| dependencies_not_supported | This endpoint does not support dependencies, see v2 |
167
-
168
-
#### Status codes {#post-status-codes}
169
-
170
-
| Code | Description |
171
-
|------|-------------|
172
-
|[400 Bad Request](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1)| Either missing module file or an invalid module file. |
Asynchronously uploads a new module to the cluster.
213
-
214
-
The request must contain a Redis module bundled using [RedisModule Packer](https://github.com/RedisLabs/RAMP).
215
-
216
-
For modules in Redis Stack, download the module from the [download center](https://redis.io/downloads/). See [Install a module on a cluster]({{< relref "/operate/oss_and_stack/stack-with-enterprise/install/add-module-to-cluster#rest-api-method" >}}) for more information.
| Accept | application/json | Accepted media type |
342
-
343
-
#### URL parameters
344
-
345
-
| Field | Type | Description |
346
-
|-------|------|-------------|
347
-
| uid | integer | The module's unique ID. |
348
-
349
-
### Response {#delete-response}
350
-
351
-
Returns a status code to indicate module deletion success or failure.
352
-
353
-
#### Error codes {#delete-error-codes}
354
-
355
-
| Code | Description |
356
-
|------|-------------|
357
-
| dependencies_not_supported | You can use the following API endpoint to delete this module with its dependencies: [`/v2/modules/<uid>`](#delete-module-v2)|
358
-
359
-
#### Status codes {#delete-status-codes}
360
-
361
-
| Code | Description |
362
-
|------|-------------|
363
-
|[200 OK](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1)| Success, the module is deleted. |
364
-
|[404 Not Found](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5)| Attempting to delete a nonexistent module. |
365
-
|[406 Not Acceptable](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7)| The request is not acceptable. |
0 commit comments