Lists the Git accounts authorized by the current Alibaba Cloud user for Application Management.
Operation description
Ensure that you have the required permissions to manage the relevant KMS secret before you call this operation.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
oos:ListGitAccounts | list | *All Resource
|
| None |
Request parameters
Parameter | Type | Required | Description | Example |
ClientToken | string | No | A token to ensure the idempotence of the request. | 550e8400-e29b-41d4-a716-446655440000 |
Platform | string | Yes | The Git platform. Valid value:
| github |
RegionId | string | No | The region ID. | cn-hangzhou |
RoleName | string | No | The name of the role. This parameter specifies the attachment type of the Git account. The default value is account. Valid values:
| role |
BindType | string | No | The attachment type. The default value is user. Valid values:
| user |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 1457F46C-7AAE-59FA-BD12-0BDB3751E6F8 |
| GitAccounts | array<object> | The attached Git accounts. | |
object | An attached Git account. | ||
Owner | string | The name of the attached account. | LYH-RAIN |
IsActive | boolean | Indicates whether the account is active. | true |
Count | integer | The number of entries. | 1 |
Examples
Success response
JSON format
{
"RequestId": "1457F46C-7AAE-59FA-BD12-0BDB3751E6F8",
"GitAccounts": [
{
"Owner": "LYH-RAIN",
"IsActive": true
}
],
"Count": 1
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.