Retrieves the organizations of an authorized user.
Operation description
Notifications can be sent in the following situations:
When a special task execution is waiting for approval. If a template contains an Approve task and the template execution reaches the task corresponding to Approve, the execution switches to a waiting state. You can call this API operation to confirm whether to continue to execute.
When debugging in debug pattern. After an execution is created or a task execution is completed, use this API operation to specify the next task execution to proceed with.
When a risky operation task execution is waiting for approval. You can call this API operation to confirm whether to continue to execute.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:ListGitOrganizations |
list |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. The value is generated by the client. |
550e8400-e29b-41d4-a716-446655440000 |
| Platform |
string |
Yes |
The Git platform. Valid values: GitHub, GitLab. |
github |
| Owner |
string |
Yes |
The logon account name. |
geegenw-j-imwinmtuej |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| BindType |
string |
No |
The binding type. Default value: user. Valid values:
Valid values:
|
user |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9E011F98-4EE5-5E3A-8FA3-D38F2C531C1F |
| GitOrgs |
array<object> |
The list of organizations. |
|
|
object |
|||
| OrgName |
string |
The organization name. |
aliyun-computenest |
| OrgId |
string |
The organization ID. |
dfj3535 |
| Count |
integer |
The total number of organizations. |
1 |
Examples
Success response
JSON format
{
"RequestId": "9E011F98-4EE5-5E3A-8FA3-D38F2C531C1F",
"GitOrgs": [
{
"OrgName": "aliyun-computenest",
"OrgId": "dfj3535"
}
],
"Count": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.