AssociateRenderingProjectInstances
Associates cloud application service instances with a project.
Operation description
Request description
This operation associates instances that meet specific conditions with a specified project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vs:AssociateRenderingProjectInstances |
update |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
string |
Yes |
The project ID. |
project-422bc38dfgh5eb44149f135ef76304f63b |
| RenderingInstanceIds |
array |
Yes |
The instance IDs of the cloud application service. |
|
|
string |
No |
The instance ID of the cloud application service. |
render-4523e7b93ca246febd10cd12347d70c0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
BEA5625F-8FCF-48F4-851B-CA63946DA664 |
| SuccessInstanceCount |
string |
The number of successfully associated cloud application service instances. |
5 |
| FailedInstanceCount |
string |
The number of cloud application service instances that failed to be associated. |
0 |
| SuccessInstances |
array<object> |
The list of successfully associated instances. |
|
|
object |
The instance ID of the cloud application service and the description of the associate result. |
||
| RenderingInstanceId |
string |
The instance ID of the cloud application service. |
render-5130e2feb23f442fb9456a3d977f03d4 |
| Message |
string |
The description. |
SUCCESS |
| FailedInstances |
array<object> |
The list of instances that failed to be associated. |
|
|
object |
The instance ID of the cloud application service and the information about the failed associate operation. |
||
| RenderingInstanceId |
string |
The instance ID of the cloud application service. |
render-b45f28650ffe4591bf4c5c95996a428c |
| Message |
string |
The cause of the failure. |
invalid id |
Examples
Success response
JSON format
{
"RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664",
"SuccessInstanceCount": "5",
"FailedInstanceCount": "0",
"SuccessInstances": [
{
"RenderingInstanceId": "render-5130e2feb23f442fb9456a3d977f03d4",
"Message": "SUCCESS"
}
],
"FailedInstances": [
{
"RenderingInstanceId": "render-b45f28650ffe4591bf4c5c95996a428c",
"Message": "invalid id"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.