Gitlab api download archive
Restores project marked for deletion. Upload a file Uploads a file to the specified project to be used in an issue or merge request description, or a comment. GitLab versions To upload a file from your file system, use the --form argument. In Markdown contexts, the link is expanded when the format in markdown is used.
Max attachment size enforcement Introduced in GitLab GitLab To disable this enforcement: In Omnibus installations: Enter the Rails console: sudo gitlab-rails console Disable the feature flag: Feature. To upload an avatar from your file system, use the --form argument. Delete a shared project link within a group Unshare the project from the group. Returns and no content on success. Hooks Also called Project Hooks and Webhooks.
These are different for System Hooks that are system-wide. List project hooks Get a list of project hooks.
Get project hook Get a specific hook for a project. Edit project hook Edits a hook for a specified project. Delete project hook Removes a hook from a project. This is an idempotent method and can be called multiple times. Either the hook is available or not. Note the JSON response differs if the hook is available or not.
Fork relationship Allows modification of the forked relationship between existing projects. Available only for project owners and administrators. Search for projects by name Search for projects by name which are accessible to the authenticated user. Push Rules Get project push rules Get the push rules of a project. Edit project push rule Edits a push rule for a specified project. Removes a push rule from a project. Either the push rule is available or not. Transfer a project to a new namespace Introduced in GitLab Project members Read more in the Project members documentation.
Project vulnerabilities Read more in the Project vulnerabilities documentation. Configure pull mirroring for a project Version history Introduced in GitLab Moved to GitLab Premium in Configure pull mirroring while creating a new project or updating an existing project using the API if the remote repository is publicly accessible or via username:token authentication.
If you are an administrator, you or your application can authenticate as a specific user. See OAuth2 token documentation for examples requesting a new access token using a refresh token.
A default refresh setting of two hours is tracked in this issue. The primary user of this authentication method is the web frontend of GitLab itself. The web frontend can use the API as the authenticated user to get a list of projects without explicitly passing an access token. Impersonation tokens Impersonation tokens are a type of personal access token. They can be created only by an administrator, and are used to authenticate with the API as a specific user.
The Sudo feature. For more information, see the users API documentation. Disable impersonation Introduced in GitLab By default, impersonation is enabled. To re-enable impersonation, remove this configuration, and then reconfigure GitLab. To re-enable impersonation, remove this configuration, and then restart GitLab. The API requests are executed with the permissions of the impersonated user.
As an administrator , pass the sudo parameter either by using query string or a header with an ID or username case insensitive of the user you want to perform the operation as. If passed as a header, the header name must be Sudo. This way, if a request results in an error, you can get insight into what went wrong. The following table gives an overview of how the API functions generally behave.
The modified result is returned as JSON. The following table shows the possible return codes for API requests. For example, the title of an issue is not given. A valid user token is necessary.
For example, creating a project with a name that already exists. This can happen if the If-Unmodified-Since header is provided when trying to delete a resource, which was modified in between. Pagination GitLab supports the following pagination methods: Offset-based pagination. This is the default method and is available on all endpoints. Keyset-based pagination. Show and post comments to review and give feedback about this page.
Product Create an issue if there's something you don't like about this feature. Propose functionality by submitting a feature request. Join First Look to help shape new features. Feature availability and product trials View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days. Get Help If you didn't find what you were looking for, search the docs. If you want help with something specific and could use community support, post on the GitLab forum. For problems setting up or using this feature depending on your GitLab subscription. What's new?
0コメント