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 label. Example: ?tag=intl, which indicates an international site. |
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
| HTTP Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
Error code must be in the format of SVCSTG.REPO.[Error_ID]. Example: SVCSTG.REPO.0401. See ServiceStage Error Codes.
Last Article: Obtaining a Git Repository Authorization List
Next Article: Creating OAuth Authorization
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.