Databases
Clone database.
Roles: RESOURCE_ADMIN
User access: Yes.
Service account access: Yes.
POST
/
api
/
v1
/
databases
/
{databaseId}
/
clone
Clone database.
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/{databaseId}/clone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {},
"audit": true,
"name": "<string>",
"suffix": "<string>",
"includeItems": true,
"includeData": true,
"includePartitions": true,
"category": "<string>",
"desc": "<string>",
"tags": [
"<string>"
],
"restricted": true,
"groups": [
"<string>"
],
"users": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {},
audit: true,
name: '<string>',
suffix: '<string>',
includeItems: true,
includeData: true,
includePartitions: true,
category: '<string>',
desc: '<string>',
tags: ['<string>'],
restricted: true,
groups: ['<string>'],
users: ['<string>']
})
};
fetch('https://api.revoengine.com/api/v1/databases/{databaseId}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/{databaseId}/clone"
payload = {
"metadata": {},
"audit": True,
"name": "<string>",
"suffix": "<string>",
"includeItems": True,
"includeData": True,
"includePartitions": True,
"category": "<string>",
"desc": "<string>",
"tags": ["<string>"],
"restricted": True,
"groups": ["<string>"],
"users": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"accepted": true,
"databaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceDatabaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cloneId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"includeItems": true,
"includePartitions": true,
"audit": true,
"message": "<string>"
}Body
application/json
Response
⌘I
Clone database.
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/{databaseId}/clone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {},
"audit": true,
"name": "<string>",
"suffix": "<string>",
"includeItems": true,
"includeData": true,
"includePartitions": true,
"category": "<string>",
"desc": "<string>",
"tags": [
"<string>"
],
"restricted": true,
"groups": [
"<string>"
],
"users": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {},
audit: true,
name: '<string>',
suffix: '<string>',
includeItems: true,
includeData: true,
includePartitions: true,
category: '<string>',
desc: '<string>',
tags: ['<string>'],
restricted: true,
groups: ['<string>'],
users: ['<string>']
})
};
fetch('https://api.revoengine.com/api/v1/databases/{databaseId}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/{databaseId}/clone"
payload = {
"metadata": {},
"audit": True,
"name": "<string>",
"suffix": "<string>",
"includeItems": True,
"includeData": True,
"includePartitions": True,
"category": "<string>",
"desc": "<string>",
"tags": ["<string>"],
"restricted": True,
"groups": ["<string>"],
"users": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"accepted": true,
"databaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceDatabaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cloneId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"includeItems": true,
"includePartitions": true,
"audit": true,
"message": "<string>"
}
