ListGitOrganizations
Retrieves the Git organizations for an authorized user.
Operation description
This API is used in the following scenarios:
A 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
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
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. | 550e8400-e29b-41d4-a716-446655440000 |
Platform | string | Yes | The Git platform. Valid values: GitHub and GitLab. | github |
Owner | string | Yes | The logon account name. | geegenw-j-imwinmtuej |
RegionId | string | No | The region ID. | cn-hangzhou |
BindType | string | No | The attach type. The default value is 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 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 for a complete list.
Release notes
See 变更详情 for a complete list.