Retrieves the managed platform accounts that the current Alibaba Cloud user has authorized in application management.
Operation description
Make sure that you have the permissions to operate on the corresponding 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 |
The idempotency token. |
550e8400-e29b-41d4-a716-446655440000 |
| Platform |
string |
Yes |
The Git platform. Valid values:
|
github |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| RoleName |
string |
No |
The role name. If you specify a role name, the role is bound to the corresponding Git account. Default value: account. Valid values:
|
role |
| BindType |
string |
No |
The binding type. Default value: 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 bound Git accounts. |
|
|
object |
The bound Git accounts. |
||
| Owner |
string |
The name of the bound account. |
LYH-RAIN |
| IsActive |
boolean |
Indicates whether the account is active. |
true |
| Count |
integer |
The total number of accounts. |
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.