Obtaining a Git Repository Authorization List
Function
This API is used to obtain a Git repository authorization list.
Request
Request parameters
None
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
authorizations |
Array<Object> |
Authorization structure. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Authorization name. |
repo_type |
String |
Repository type. Value: github, gitlab, gitee, or bitbucket. |
repo_host |
String |
Repository address. |
repo_home |
String |
Repository homepage. |
repo_user |
String |
Repository username. |
avartar |
String |
Avatar. |
token_type |
String |
Authorization mode. |
create_time |
Long |
Creation time. |
update_time |
Long |
Update time. |
status |
Integer |
Status. |
Example
Example request
None
Example response
{ "authorizations": [ { "name": "string", "repo_type": "string", "repo_host": "string", "repo_home": "string", "repo_user": "string", "avartar": "string", "token_type": "string", "create_time": 0, "update_time": 0, "status": 0 } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
Error Code
Error code must be in the format of SVCSTG.REPO.[Error_ID]. Example: SVCSTG.REPO.0401. See ServiceStage Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot