Retrieves the Git organizations for an authorized user.
Operation description
This API is used in the following scenarios:
A special task execution is pending approval. If a template contains an Approve task, the status of the task execution changes to Pending when it reaches that task. You can then use this API to confirm whether to continue the execution.
When you are debugging a template, you can use this API to specify the next task to execute after a task execution is created or completed.
A risky operation task is pending approval. You can use this API to confirm whether to continue the execution.
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 | A client-generated token that ensures the idempotence of the request. | - |
Platform | string | Yes | The Git platform. | github |
Owner | string | Yes | The logon account name. | geegenw-j-imwinmtuej |
RegionId | string | No | The region ID. | cn-hangzhou |
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 name of the organization. | aliyun-computenest |
OrgId | string | The ID of the organization. | dfj3535 |
Count | integer | The number of returned 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.