CloneLaboratory
Clones a specified laboratory to a specified environment and specifies whether to clone the experiment groups under the laboratory.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:CloneLaboratory |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/laboratories/{LaboratoryId}/action/clone HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LaboratoryId |
string |
Yes |
The ID of the laboratory. You can call the ListLaboratories operation to obtain the ID. |
3 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceId |
string |
Yes |
Instance ID of the instance. You can call the ListInstances operation to obtain instance ID. |
pairec-cn-abcdefg1234 |
| Environment |
string |
Yes |
The runtime environment. Valid values: ● Daily: daily environment ● Pre: staging environment ● Prod: production environment |
Daily |
| CloneExperimentGroup |
boolean |
Yes |
Specifies whether to clone the experiment groups. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
01D22D08-BA20-5F35-8302-99115F288220 |
| LaboratoryId |
string |
The ID of the cloned laboratory. |
3 |
Examples
Success response
JSON format
{
"RequestId": "01D22D08-BA20-5F35-8302-99115F288220",
"LaboratoryId": "3"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.