CreateGitRepository
Creates a code repository configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:CreateGitRepository |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The workspace ID. |
1 |
| ConnectionPropertiesMode |
string |
Yes |
The authentication mode. Only SshKeyMode is supported. Valid values:
|
SshKeyMode |
| ConnectionProperties |
string |
Yes |
The connection configuration in JSON format, which includes the SSH private key. |
{} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
request-id |
| Id |
string |
The ID of the newly created resource. |
example |
Examples
Success response
JSON format
{
"RequestId": "request-id",
"Id": "example"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.