All Products
Search
Document Center

CloudOps Orchestration Service:ListGitAccounts

Last Updated:Nov 19, 2025

Lists the Git accounts authorized by the current Alibaba Cloud user for Application Management.

Operation description

Ensure that you have the permissions to manage the relevant KMS secret before you call this operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

A token that you can use to ensure the idempotence of the request.

-

Platform

string

Yes

The Git platform.

github

RegionId

string

No

The region ID.

cn-hangzhou

RoleName

string

No

The name of the role. If you specify this parameter, the operation returns the Git accounts that are attached to the role.

roleName

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

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.