Checks whether a file exists in a repository.
Operation description
Make sure that you have the permissions to operate on the corresponding KMS secret before calling 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 |
The client token that is used to ensure the idempotence of the request. The value is generated by the client and must be globally unique. The value 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 username. |
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.