Checks whether a file exists in a repository.
Operation description
Ensure that you have the permissions to manage the corresponding KMS secret before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:CheckGitRepoFileExists |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. The client generates this value, which must be globally unique. The token can be up to 64 characters in length and can contain letters, digits, hyphens (-), and underscores (_). |
- |
| Platform |
string |
Yes |
The Git platform. |
gitee |
| Owner |
string |
Yes |
The logon account name. |
hujue |
| RepoFullName |
string |
Yes |
The full name of the repository. |
alibaba/fastjson |
| FilePath |
string |
Yes |
The file path. |
src/main/resources/config/promql_capacity.yaml |
| Branch |
string |
No |
The branch name. |
test |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| OrgId |
string |
No |
The organization ID. This parameter is required only for Codeup. |
5f9f9f6122a8c7ff3934f99a |
| RepoId |
integer |
No |
The repository ID. This parameter is required only for Codeup. |
2835387 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A5320F1D-92D9-44BB-A416-5FC525ED6D57 |
| FileExists |
boolean |
Indicates whether the file exists. |
true |
Examples
Success response
JSON format
{
"RequestId": "A5320F1D-92D9-44BB-A416-5FC525ED6D57",
"FileExists": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.