ListCrossProjectDeploymentEnvironments
Queries cross-workspace deployment environments.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListCrossProjectDeploymentEnvironments |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The workspace ID. |
10 |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of items per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The operation response. |
{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","Success":true,"Data":{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","PageNumber":1,"PageSize":10,"TotalCount":1,"DeploymentEnvironments":[{"DeploymentEnvironmentId":101,"Name":"environment-101","SourceProjectId":10,"TargetProjectId":20,"TargetProjectName":"target","Status":"Enabled"}]}} |
|
| RequestId |
string |
The request ID used to locate and troubleshoot this API call. |
735894D1-D5E5-50B8-8A6D-041C90A98B23 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
object |
The response data. |
{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","PageNumber":1,"PageSize":10,"TotalCount":1,"DeploymentEnvironments":[{"DeploymentEnvironmentId":101,"Name":"environment-101","SourceProjectId":10,"TargetProjectId":20,"TargetProjectName":"target","Status":"Enabled"}]} |
| RequestId |
string |
The request ID. |
735894D1-D5E5-50B8-8A6D-041C90A98B23 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of items per page. |
10 |
| TotalCount |
integer |
The total number of records. |
1 |
| DeploymentEnvironments |
array<object> |
The list of enabled cross-workspace deployment environments in the source workspace. |
[{"DeploymentEnvironmentId":101,"Name":"environment-101","SourceProjectId":10,"TargetProjectId":20,"TargetProjectName":"target","Status":"Enabled"}] |
|
object |
The list of enabled cross-workspace deployment environments in the source workspace. |
{"DeploymentEnvironmentId":101,"Name":"environment-101","SourceProjectId":10,"TargetProjectId":20,"TargetProjectName":"target","Status":"Enabled"} |
|
| DeploymentEnvironmentId |
integer |
The ID of the cross-workspace deployment environment. |
101 |
| Name |
string |
The name of the environment. |
environment-101 |
| SourceProjectId |
integer |
The ID of the source workspace. |
10 |
| TargetProjectId |
integer |
The ID of the target workspace. |
20 |
| TargetProjectName |
string |
The name of the target workspace. |
target |
| Status |
string |
The status of the environment. |
Enabled |
Examples
Success response
JSON format
{
"RequestId": "735894D1-D5E5-50B8-8A6D-041C90A98B23",
"Success": true,
"Data": {
"RequestId": "735894D1-D5E5-50B8-8A6D-041C90A98B23",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"DeploymentEnvironments": [
{
"DeploymentEnvironmentId": 101,
"Name": "environment-101",
"SourceProjectId": 10,
"TargetProjectId": 20,
"TargetProjectName": "target",
"Status": "Enabled"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.