-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from kuzzleio/feat/assetsMigrateTenant
feat/assets migrate tenant
- Loading branch information
Showing
10 changed files
with
574 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: migrateTenant | ||
description: Migrates a list of assets and their attached devices to another tenant | ||
--- | ||
|
||
# update | ||
|
||
This action allow to migrates a list of assets and their attached devices to another tenant. | ||
|
||
|
||
## Query Syntax | ||
|
||
### HTTP | ||
|
||
```http | ||
URL: http://kuzzle:7512/_/device-manager/:engineId/assets/_migrateTenant | ||
Method: POST | ||
``` | ||
|
||
### Other protocols | ||
|
||
```js | ||
{ | ||
"controller": "device-manager/assets", | ||
"action": "migrateTenant", | ||
"engineId": "<engineId>", | ||
"body": { | ||
"assetsList": ["<assetId>"], | ||
"newEngineId": "<newEngineId>" | ||
} | ||
} | ||
``` | ||
|
||
--- | ||
|
||
## Arguments | ||
|
||
- `engineId`: Engine ID | ||
|
||
## Body properties | ||
|
||
- `assetsList`: An array containing a list of asset ids to migrate | ||
- `newEngineId`: The id of the engine you want to migrate the assets to | ||
|
||
--- | ||
|
||
## Response | ||
|
||
```js | ||
{ | ||
"status": 200, | ||
"error": null, | ||
"controller": "device-manager/assets", | ||
"action": "migrateTenant", | ||
"requestId": "<unique request identifier>", | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.