Obtaining an Authorization Redirection URL
Function
This API is used to obtain an authorization redirection URL.
URI
GET /v1/{project_id}/git/auths/{repo_type}/redirect
Table 1 describes the parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Tenant's project ID. |
repo_type |
String |
Yes |
Repository type. Value: github, gitlab, gitee, or bitbucket. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tag |
String |
No |
Site tag. |
Request
Request parameters
None
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
url |
String |
Authorization redirection URL. |
Example
Example request
None
Example response
{ "url": "string" }
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